Plan reviewer

From KjellKod/quest · View interactive version

Plan reviewer is an AI agent skill from the GitHub repository KjellKod/quest. Review implementation plans, PR specifications, and feature documentation to ensure acceptance criteria are testable, validation is complete, and integration risks are surfaced before coding begins.

How to use this skill

Skill file

Plan Reviewer

At activation, announce the skill name and scope in one line. Example: [plan-reviewer] reviewing .quest/example/phase_01_plan/plan.md.

See .skills/review-anti-patterns.md for the shared rule set.

Minimum required inputs from the plan (reviewer gate)

Before reviewing details, confirm the plan includes these minimum inputs. If any are missing, request edits to the plan rather than guessing.

Review implementation plans, PR specifications, and feature documentation before coding begins.

This skill focuses on:

It is designed to produce actionable deltas, not a perfect plan.


When to Use This Skill

Use this skill when reviewing:

Do not use this skill for:


Definition of Done (Stop Conditions)

A plan review is “done” when:

  1. Every acceptance criterion is testable

Each acceptance criterion maps to at least one validation step.

  1. Validation is complete enough to start coding

Manual validation covers key scenarios, and automated tests are specified or explicitly deferred.

  1. Integration points are explicit and validated

Anything the change touches has a corresponding verification step.

  1. Open questions are documented

Any ambiguity is called out as a decision, not silently assumed.

  1. Top risks are listed with mitigations

At least the top 3 risks are identified and tied to validation.

Once these five conditions are met, stop expanding.


Core Review Process (Always Run)

Step 1: Acceptance Criteria Testability

For each acceptance criterion, check:

Common gaps to flag

Rule: Do not invent new product requirements.

Only make existing requirements testable, or flag them as ambiguous.


Step 2: Manual Validation Completeness

Manual validation should cover:

Manual validation steps should include:


Step 3: Automated Test Expectations (Actionable)

Convert vague testing statements into explicit expectations:

Examples:

Naming guidance

Use descriptive names, consistent with existing patterns:


Step 4: Integration Points and Required Validations

List the systems touched by this change, then for each one specify:

Examples of integration points:

Outcome: a short “integration validation checklist” tied to the plan.


Optional Modules (Only If Relevant)

Use these checklists when the plan includes the relevant domain.

Module: Configuration and Precedence

Verify:

Add validations:


Module: Backward Compatibility and Safe Defaults

Verify:

(KISS, SRP, DRY, YAGNI - prefer to keep logic simple)

Add validations:


Module: External Dependency Failure

Verify:

Add validations:


Module: UI Workflow (If Applicable)

Verify:

Add validations:


Module: Security and Secrets Hygiene

Verify:

Add validations:


Risk Scoring (PM + Principal Engineer Friendly)

For each major risk, record:

Example:

Impact: High

Likelihood: Medium

Mitigation: integration test with old payload, contract tests

Keep this list short: top 3 to 5 risks.


Default Review Output (Short)

Use this structure by default:

# Plan Review: [Feature Name]

## 1. Readiness Verdict
- Verdict: ✅ Ready to implement / 🟡 Ready after fixes / 🔴 Not ready
- Why: [1 to 3 bullets]

## 2. Open Questions To Resolve Before Coding (Decisions needed)
- [ ] Item 1
- [ ] Item 2

## 3. Open Requirements
### Must resolve before coding (blocking)
- Numbered findings in current-review order: `[N] Must fix - plan.md:section - acceptance criterion is missing, ambiguous, or untestable`

### Resolve during implementation (non-blocking)
- Numbered findings in current-review order: `[N] Should fix - plan.md:section - the WHAT is clear, but the exact HOW is an implementation detail`
- Example: "a test seam is needed for year injection" is non-blocking if the AC already says "rejects non-2026 year before writes"
- Example: "which exact mock library to use" is non-blocking

Finding numbers are review-local indices. Use `[N]` format for every finding so the planner, arbiter, and builder can refer to findings unambiguously.

## 4. Validation Plan Summary
### Manual
- Scenario: ...
   - [ ] Item 1
   - [ ] Item 2
   ...
- Scenario: ...
   ...

### Automated
- Unit: ...
   - [ ] Item 1
   - [ ] Item 2
   ...
- Integration: ...
   - [ ] Item 1
   - [ ] Item 2
   ...
- UI (if applicable): ...
   - [ ] Item 1
   - [ ] Item 2
   ...

## 5. Top Risks and Mitigations
- Risk: ...
  - Impact: ...
  - Likelihood: ...
  - Mitigation: ...

Expanded Output (Only When Requested)

If the reviewer requests a full deep dive, expand into:


Principles

  1. Testability first: Every acceptance criterion must be testable
  2. Specificity over generality: “Test X” is not enough, specify what and how
  3. Stop conditions matter: Finish when the plan is shippable, not perfect
  4. Integration awareness: Verify what could break outside the happy path
  5. Do not invent requirements: Flag ambiguity, do not hallucinate scope
  6. Prefer actionable deltas: Smallest set of changes that unblock coding

Automated Test Expectations

Requirement: For each Acceptance Criterion, provide at least one explicit example test case when feasible. If a criterion cannot be reasonably automated, mark it as Deferred and include the reason and what manual validation will cover.

When a test approach requires codebase investigation to determine the mechanism (e.g., how to inject a test seam, which mock strategy to use), classify it as "resolve during implementation" rather than blocking — as long as the plan states the acceptance criterion the test must satisfy.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.