All skills
Skillintermediate

review process 2

Copy this checklist and check off items as you complete them:

Claude Code Knowledge Pack7/10/2026

Overview

Workflow

Copy this checklist and check off items as you complete them:

Implementation Review Progress:
- [ ] Step 1: Load feature documents and detect profiles
- [ ] Step 2: Determine review scope
- [ ] Step 3: Per-task verification
- [ ] Step 4: Cross-cutting concerns
- [ ] Step 5: Self-check and confidence assessment
- [ ] Step 6: Present findings
- [ ] Step 7: Index confirmed deviations
- [ ] Step 8: Verify outputs

Step 1: Load feature documents and detect profiles

  • Read tasks.md from /docs/wip/[feature-name]/
  • Read the linked design.md and implementation.md
  • If the feature name is not provided or ambiguous, list /docs/wip/ contents and ask the user which feature to review
  • If no WIP docs exist, inform the user and ask if they want to point to alternative documentation
  • Detect active profiles using shared-profile-detection.md. For each active profile that populates a review-spec/ phase slot, load its index.md and resolve always-load and matching conditional entries. Load resolved profile content before proceeding to per-task verification.

Step 2: Determine review scope

Parse tasks.md for task statuses and determine the review mode:

  • Mid-implementation mode: Only review tasks with status done or in-progress. Note pending tasks as out-of-scope. Summarize what percentage of the feature is reviewable.
  • Post-implementation mode: All tasks are done. Review everything.

Build and present a checklist of tasks that will be reviewed.

Step 3: Per-task verification

IaC profile semantics. When an IaC profile is active (e.g., Kubernetes), declarative artifacts are the implementation. Apply the profile's type-mapping guidance loaded in Step 1: a design-specified resource whose manifest is absent is MISSING_IMPL (not DOC_INCON); a field-value mismatch between manifest and design is SPEC_DEV; an undocumented manifest resource is EXTRA_IMPL. See the loaded profile content for domain-specific verification patterns (resource-level, field-level, relationship-chain checks).

For each in-scope task:

  1. Read the spec section — follow the Docs: link in the task to the specific section of implementation.md or design.md
  2. Read the code — use serena MCP (semantic code analysis), grep, and Read to find and examine the implemented code. Follow file paths and function names mentioned in the task subtasks.
  3. Compare systematically:
    • For each subtask marked [x]: verify the code actually does what the subtask describes
    • For each requirement in the linked doc section: verify code implements it
    • For each piece of code in the relevant area: check if it matches what the docs describe
  4. Record findings — for each mismatch, capture:
    • Finding type (MISSING_IMPL, EXTRA_IMPL, SPEC_DEV, DOC_INCON, OUTDATED_DOC, AMBIGUOUS)
    • Severity (P0–P3)
    • Preliminary confidence score
    • File and line reference in code
    • Section reference in docs
    • Description of the mismatch

Step 4: Cross-cutting concerns

After per-task review, check for broader issues:

  • Doc consistency: Does design.md align with implementation.md? Do task descriptions in tasks.md match both?
  • Completeness: Are there design decisions or requirements in docs that don't map to any task?
  • Emergent gaps: Did implementation introduce behavior or requirements not captured in docs?
  • Integration points: Do the implemented tasks work together as the design intended?

Step 5: Self-check and confidence assessment

This is the critical verification step. For each finding from Steps 3–4:

  1. Re-read the relevant spec section and code independently
  2. Ask: "Could I be misreading the spec?" — check for implicit requirements, context from other sections, or alternative interpretations
  3. Ask: "Could I be misreading the code?" — trace execution paths, check for configuration or runtime behavior that might satisfy the spec differently
  4. Ask: "Is the spec or the code more likely correct?" — consider which direction the finding points (code bug vs doc bug)
  5. Assign final confidence score (1–10) with explicit reasoning documenting:
    • What was verified
    • What evidence supports the finding
    • What uncertainty remains
  6. Downgrade or remove findings that don't survive the self-check

Step 6: Present findings

Structure the output as follows:

## Implementation Review: [Feature Name]

**Scope:** [X of Y tasks reviewed] | Mode: [mid-implementation / post-implementation]
**Documents reviewed:**

- Design: [path]
- Implementation: [path]
- Tasks: [path]

**Summary:** [X findings: N critical, N high, N medium, N low]

---

## Findings

### Missing Implementation (MISSING_IMPL)

- **[P1] Brief title**
  - **Spec says:** [quote or paraphrase from docs, with file:section reference]
  - **Code status:** [what was found or not found, with file:line reference]
  - **Confidence:** 8/10 — [reasoning: checked X, verified Y, uncertainty about Z]
  - **Recommendation:** [what to do]

### Spec Deviation (SPEC_DEV)

...

### Outdated Doc (OUTDATED_DOC)

- **[P2] Brief title**
  - **Code does:** [what the code actually does, with file:line]
  - **Doc says:** [what the doc says, with file:section]
  - **Confidence:** 9/10 — [reasoning]
  - **Recommendation:** Update [doc file] section [X] to reflect [Y]

### Doc Inconsistency (DOC_INCON)

...

### Ambiguous Spec (AMBIGUOUS)

...

### Extra Implementation (EXTRA_IMPL)

...

---

## Clean Areas

[List tasks/areas that passed verification with no findings — confirms what was checked.]

---

## Doc Update Suggestions

[Consolidated list of documentation changes needed, separate from code changes.]

After presenting findings, ask the user how to proceed:

---

## Next Steps

Found X issues across Y tasks (P0: ..., P1: ..., P2: ..., P3: ...).

**How would you like to proceed?**

1. **Fix code issues** — Address findings where code doesn't match spec
2. **Fix doc issues** — Update documentation to match implementation reality
3. **Fix both** — Address all findings
4. **Fix P0/P1 only** — Address critical and high priority issues
5. **Fix specific items** — Tell me which findings to address
6. **No changes** — Review complete, no action needed

Please choose an option or provide specific instructions.

Important: Do NOT implement any changes until the user explicitly confirms.

Step 7: Index confirmed deviations

After the user responds to the next steps prompt, index any SPEC_DEV or EXTRA_IMPL findings that the user confirms as intentional as kk:arch-decisions. This prevents the same deviation from being flagged in future reviews.

  • For each confirmed intentional deviation: call capy_index with source kk:arch-decisions and a concise summary of the decision and rationale.
  • If the user confirms no deviations as intentional, or there are no SPEC_DEV/EXTRA_IMPL findings, explicitly note "No deviations to index" and move on.
  • This step is mandatory — do not skip it even if all findings are rejected.

Step 8: Verify outputs

Before declaring the review complete, check each item in the Required Outputs section of SKILL.md:

  • Review report presented to user
  • User-confirmed intentional SPEC_DEV/EXTRA_IMPL findings indexed as kk:arch-decisions (or explicitly noted "No deviations to index")
  • Next steps confirmation from user

If any item is unchecked, go back and complete it before proceeding.