Skip to content
Skills Library
Programming · Review & audit

review-plan

/review-plan

Use when a Plan is complete and ready for review. Two-stage review -- spec contract compliance first, code quality second. Block on contract failure before reviewing code.

Repository
lazyspec ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when a Plan is complete and ready for review. Two-stage review -- spec contract compliance first, code quality second. Block on contract failure before reviewing code.

Original author description

Use when a Plan is complete and ready for review. Two-stage review -- spec contract compliance first, code quality second. Block on contract failure before reviewing code.

How it works

  1. Workflow Position
  2. Modes
  3. Preflight
  4. The Gate
  5. Workflow
  6. Stage 1: Contract Compliance
  7. Stage 2: Code Quality
  8. Failure Handling
  9. Red Flags
  10. Verification
Original SKILL.md headings · 167 lines, 992 words
SKILL.md preview
---
name: review-plan
description: Use when a Plan is complete and ready for review. Two-stage review -- spec contract compliance first, code quality second. Block on contract failure before reviewing code.
---

```
NO APPROVAL WITHOUT FRESH VERIFICATION EVIDENCE
```

If you haven't run the tests in this session, you cannot claim they pass.

<HARD-GATE>
Do NOT approve without running verification commands in this session.
Stage 1 (contract compliance) MUST pass before entering Stage 2 (code quality).
If contracts fail during a `/build` per-task review, dispatch a fix subagent.
If contracts fail during a standalone review, use `/create-plan` to re-plan.
</HARD-GATE>

> [!IMPORTANT]
> Read `_common.md` in the skills directory for CLI usage, forbidden actions, and subagent tiers.

<NEVER>
- Do NOT approve without running tests in the current session. Do NOT trust prior test reports.
</NEVER>

# Review Plan

## Workflow Position

```d2
lazy -> write-rfc -> create-spec -> resolve-context -> create-plan -> build -> review-plan

review-plan.style.fill: "#4A9EFF"
review-plan.style.font-color: "#FFFFFF"
lazy.style.opacity: 0.4
write-rfc.style.opacity: 0.4
create-spec.style.opacity: 0.4
resolve-context.style.opacity: 0.4
create-lazy.style.opacity: 0.4
build.style.opacity: 0.4
```

## Modes

This skill operates in two modes:

**Per-task review** (dispatched as a reviewer subagent by `/build` after each task):

- Scoped to the contracts relevant to the completed task
- Same two-stage process (contract compliance first, code quality second)
- On failure: report back to `/build` orchestrator, which dispatches a fix subagent

**Full review** (dispatched by `/build` as final gate, or used standalone):

- Checks ALL Spec contracts against the complete implementation
- On failure during `/build`: targeted fix subagents for specific gaps
- On failure standalone: report to user

## Preflight

1. Resolve the chain with `lazyspec context <plan-id> --json` to see RFC -> Spec -> Plan
2. Read the plan body with `lazyspec show <plan-id> --json`
3. Read the parent Spec contracts with `lazyspec show <spec-id> --json`
4. Do NOT begin review until both documents are loaded into context

## The Gate

```
BEFORE claiming review passes:

1. IDENTIFY: Which Spec contracts does this plan cover?
2. RUN: Execute the FULL test suite (fresh, in this session)
3. READ: Full output, check exit code, count failures
4. VERIFY: Does each claimed contract have a passing test?
   - If NO: State which contracts are unmet. Return to create-plan.
   - If YES: Proceed to Stage 2 (code quality)
5. ONLY THEN: Approve

Skip any step = not a review
```

## Workflow

```d2
Read plan doc -> Read parent spec contracts -> Run full test suite -> All contracts satisfied?

All contracts satisfied?.shape: diamond
All contracts satisfied? -> Fix (see failure handling below): no
All contracts satisfied? -> Code quality review: yes

Code quality review -> Critical issues?

Critical issues?.shape: diamond
Critical issues? -> Fix (see failure handling below): yes
Critical issues? -> Approve: no

Approve.shape: double_circle
```

## Stage 1: Contract Compliance

1. Run `lazyspec context <plan-id> --json` to see the full chain.
2. Run `lazyspec show <plan-id> --json` to read the plan body.
3. Run `lazyspec show <spec-id> --json` to read the Spec's contracts.
4. Run the full test suite. Show the output.
5. For each contract the plan claims to cover: verify the test exists and passes.
6. If any contract is not satisfied, state which contracts are unmet. See Failure Handling below for what to do next.

## Stage 2: Code Quality

Only enter this stage if all contracts are satisfied.

1. Review the code changes for correctness and clarity.
2. Verify no unnecessary complexity (YAGNI -- only what was asked for).
3. Check for real duplication worth extracting (DRY).
4. Check for security issues.
5. Evaluate test quality against these properties:

   | Property              | What to check                                              |
   | --------------------- | ---------------------------------------------------------- |
   | Behavioral            | Tests assert on behavior, not implementation details       |
   | Structure-insensitive | A refactor preserving behavior shouldn't break tests       |
   | Isolated              | No order dependence, no shared mutable state between tests |
   | Deterministic         | No flaky results from timing, randomness, or global state  |
   | Readable              | Motivation for each test is obvious to the reader          |
   | Specific              | When a test fails, the cause is obvious                    |
   | Writable              | Test complexity is proportional to code complexity         |

   These properties conflict. If a test trades one for another (e.g. an
   integration test that sacrifices Fast/Isolated for Predictive/Inspiring),
   the tradeoff should be noted. Flag unjustified tradeoffs to the collaborator.

## Failure Handling

The response to a failed review depends on context:

**During `/build` per-task review:** Report the specific failures back to the `/build` orchestrator. The build skill will dispatch a fresh implementer subagent with the failure details. Do NOT re-plan or use `/create-plan`.

**During `/build` final review:** If individual contracts are unmet, the build skill dispatches targeted fix subagents. If the failures indicate a fundamental planning problem (wrong approach, missing tasks), escalate to the user.

**Standalone review (not during build):** Report failures to the user. The user decides whether to use `/create-plan` to re-plan or fix directly.

## Red Flags

| Red Flag                     | Reality                                                              |
| ---------------------------- | -------------------------------------------------------------------- |
| "The agent says tests pass"  | Run them yourself. Trust is not evidence.                            |
| "I ran them earlier"         | Earlier is stale. Run them now, in this session.                     |
| "The code looks right to me" | Code review before contract compliance is backwards. Check contracts first. |
| "It mostly works"            | Mostly = some contracts aren't met. Return to implementation.        |

## Verification

Before claiming this review is approved:

- [ ] Test suite has been run in this session with full output shown
- [ ] Every claimed contract has a corresponding passing test
- [ ] Code quality review completed (only after Stage 1 passes)
- [ ] `lazyspec validate --json` passes

## Status Updates

When a review passes (both stages), follow the status promotion steps in `_common.md`.

## Rules

- Never review code quality before contract compliance
- The Spec is the source of truth -- if the code satisfies the contracts, it's correct by definition
- If contracts are ambiguous, that's a Spec problem, not a Plan problem
- Always update document statuses after a successful review

Versions

RepositoryScoreLicence
This page · jkaloger/lazyspec100MIT
dosatos/minimise100MIT
penpot/penpot100MPL-2.0
sydasif/web-search-mcp100MIT
ghassenazzouz/claude-qa-agent100MIT
rube-de/cc-skills100MIT
paultyng/skill-issue100MIT
florianbuetow/claude-code100MIT
atomicinnovation/accelerator95MIT

Database snapshot: 13.11.2026 · package version 75b88eb621d6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100review
    Two-stage code review: spec compliance first, then code quality. Auto-triggered after implementation. Also available as /review.
  • 100ql-review
    Part of the quantum-loop autonomous development pipeline (brainstorm \u2192 spec \u2192 plan \u2192 execute \u2192 review \u2192 verify). Two-stage code review. Spec compliance first, then code quality. Use after implementation or before merge. Triggers on: review code, code…
  • 100code-review
    Use to review code changes with a two-stage process - first checking spec/requirements compliance, then code quality. Works on staged changes, branches, or PRs.
  • 100code-review
    Performs two-stage code reviews (spec compliance, then code quality) with severity-ranked findings. Use when asked to "review code", "review this PR", "check this diff", "review before merge", or mentions reviewing, auditing, or critiquing code changes, pull requests, or diffs.
  • 90shipyard-review
    Use when reviewing code under Codex — verifying spec compliance, conducting quality review after a build, or checking that an implementation matches its plan. Trigger when the user says "review this", "review the implementation", "does this match the plan", "check the code…
  • 93code-quality
    two-stage review (spec compliance first, then code quality), refactoring, and quality improvement. Use when reviewing code, eliminating code smells, reducing technical debt, refactoring methods, running self-critique loops, or improving maintainability and readability.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.