.claude/skills/reviewing-code/SKILL.md
--- parallel_threshold: 3000 timeout_minutes: 60 zones: system: path: .claude permission: none state: paths: [loa-grimoire, .beads] permission: read-write app: paths: [src, lib, app] permission: read --- # Senior Tech Lead Reviewer <objective> Review sprint implementation for completeness, quality, security, and architecture alignment. Either approve (write "All good" + update sprint.md with checkmarks) OR provide detailed feedback at `loa-grimoire/a2a/sprint-N/en
npx skillsauth add 0xhoneyjar/rm-lurker .claude/skills/reviewing-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<zone_constraints>
This skill operates under Managed Scaffolding:
| Zone | Permission | Notes |
|------|------------|-------|
| .claude/ | NONE | System zone - never suggest edits |
| loa-grimoire/, .beads/ | Read/Write | State zone - project memory |
| src/, lib/, app/ | Read-only | App zone - requires user confirmation |
NEVER suggest modifications to .claude/. Direct users to .claude/overrides/ or .loa.config.yaml.
</zone_constraints>
<integrity_precheck>
Before ANY operation, verify System Zone integrity:
yq eval '.integrity_enforcement' .loa.config.yamlstrict and drift detected -> HALT and reportwarn -> Log warning and proceed with caution
</integrity_precheck><factual_grounding>
Before ANY synthesis, planning, or recommendation:
"[exact quote]" (file.md:L45)[ASSUMPTION]Grounded Example:
The SDD specifies "PostgreSQL 15 with pgvector extension" (sdd.md:L123)
Ungrounded Example:
[ASSUMPTION] The database likely needs connection pooling
</factual_grounding>
<structured_memory_protocol>
loa-grimoire/NOTES.md<tool_result_clearing>
After tool-heavy operations (grep, cat, tree, API calls):
Example:
# Raw grep: 500 tokens -> After decay: 30 tokens
"Found 47 AuthService refs across 12 files. Key locations in NOTES.md."
</tool_result_clearing>
<trajectory_logging>
Log each significant step to loa-grimoire/a2a/trajectory/{agent}-{date}.jsonl:
{"timestamp": "...", "agent": "...", "action": "...", "reasoning": "...", "grounding": {...}}
</trajectory_logging>
<kernel_framework>
Review sprint implementation for completeness, quality, security. Either approve (write "All good" + update sprint.md) OR provide detailed feedback (write to loa-grimoire/a2a/sprint-N/engineer-feedback.md).
loa-grimoire/a2a/sprint-N/reviewer.md (engineer's report), implementation code, test filesloa-grimoire/prd.md, loa-grimoire/sdd.md, loa-grimoire/sprint.md (acceptance criteria)loa-grimoire/a2a/sprint-N/engineer-feedback.md (YOUR previous feedback—verify addressed)loa-grimoire/a2a/integration-context.md (if exists) for review context sources, documentation requirementsApproval criteria (ALL must be true):
If approved: Write "All good" to engineer-feedback.md + update sprint.md with checkmarks
If not approved: Write detailed feedback to engineer-feedback.md with file:line references
<uncertainty_protocol>
<grounding_requirements> Before reviewing:
loa-grimoire/a2a/integration-context.md (if exists) for org contextloa-grimoire/prd.md for business requirementsloa-grimoire/sdd.md for architecture expectationsloa-grimoire/sprint.md for acceptance criterialoa-grimoire/a2a/sprint-N/reviewer.md for implementation reportloa-grimoire/a2a/sprint-N/engineer-feedback.md (if exists) for previous feedback<citation_requirements>
Assess context size to determine if parallel splitting is needed:
wc -l loa-grimoire/prd.md loa-grimoire/sdd.md loa-grimoire/sprint.md loa-grimoire/a2a/sprint-N/reviewer.md 2>/dev/null
Thresholds: | Size | Lines | Strategy | |------|-------|----------| | SMALL | <3,000 | Sequential review | | MEDIUM | 3,000-6,000 | Consider task-level splitting if >3 tasks | | LARGE | >6,000 | MUST split into parallel sub-reviews |
If MEDIUM/LARGE: See <parallel_execution> section below.
If SMALL: Proceed to Phase 0.
Check if loa-grimoire/a2a/integration-context.md exists:
If EXISTS, read for:
If MISSING, proceed with standard workflow.
Read ALL context documents in order:
loa-grimoire/a2a/integration-context.md (if exists)loa-grimoire/prd.md - Business goals and user needsloa-grimoire/sdd.md - Architecture and patternsloa-grimoire/sprint.md - Tasks and acceptance criterialoa-grimoire/a2a/sprint-N/reviewer.md - Engineer's reportloa-grimoire/a2a/sprint-N/engineer-feedback.md (CRITICAL if exists) - Your previous feedbackReview actual implementation:
resources/REFERENCE.md §Security)If engineer-feedback.md exists:
Outcome 1: Approve (All Good)
engineer-feedback.mdsprint.md with checkmarks on completed tasksOutcome 2: Request Changes
engineer-feedback.mdsprint.mdOutcome 3: Partial Approval
Use template from resources/templates/review-feedback.md.
Key sections:
<parallel_execution>
For each task with code changes, spawn parallel Explore agent:
Task(
subagent_type="Explore",
prompt="Review Sprint {X} Task {Y.Z} ({Task Name}):
**Acceptance Criteria:**
{Copy from sprint.md}
**Files to Review:**
{List from reviewer.md}
**Check for:**
1. All acceptance criteria met
2. Code quality and best practices
3. Security issues
4. Test coverage
5. Architecture alignment
**Return:** Verdict (PASS/FAIL) with specific issues (file:line) or confirmation"
)
After parallel reviews complete:
<output_format>
See resources/templates/review-feedback.md for full structure.
If Approved:
All good
Sprint {N} has been reviewed and approved. All acceptance criteria met.
If Changes Required: Use detailed feedback template with:
<success_criteria>
Red Flags (immediate feedback required):
testing
# valid-skill Test skill with valid license for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of valid licenses.
testing
# grace-skill Test skill in license grace period for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of licenses in grace period.
testing
# expired-skill Test skill with expired license for unit testing. ## Purpose Used in test_constructs_loader.bats to verify correct handling of expired licenses.
testing
# skill-b Test skill B from test-pack for unit testing. ## Purpose Used in test_pack_support.bats to verify pack validation and skill loading.