Review design

From janekbaraniewski/openusage · View interactive version

Review design is an AI agent skill from the GitHub repository janekbaraniewski/openusage. Review a design doc against the actual codebase, find inconsistencies, and quiz the user on needed fixes. Loops until all issues are resolved. Use after /design-feature and before /implement-feature.

How to use this skill

Skill file

OpenUsage Design Doc Reviewer

Invocation: When a user wants to validate a design doc against the current codebase before implementing it.

Input: Design doc path or feature name (resolved to docs/<NAME>_DESIGN.md).


Phase 0 — Load Design

  1. Find the design doc. If path not given, search docs/*_DESIGN.md.
  2. Read the full design doc. Extract:
  1. Confirm with the user which design doc to review.

Phase 1 — Codebase Audit

For each subsystem listed in the design doc's impact analysis:

  1. Read the primary files from docs/skills/design-feature/references/subsystem-map.md.
  2. Read every file referenced in the implementation tasks.
  3. Build a discrepancy list by checking each item in references/review-checklist.md.

Focus on concrete mismatches. Don't flag style preferences or hypotheticals.


Phase 2 — Quiz Loop (CORE)

Present findings one at a time as questions. For each discrepancy:

## Issue N: <short title>

**Design says**: <quote or paraphrase from design doc>
**Codebase says**: <what actually exists, with file:line reference>
**Severity**: breaking | incorrect | stale | minor

**Question**: <specific question asking the user how to resolve this>
Options:
  a) Update the design doc to match the codebase
  b) Keep the design (codebase will change during implementation)
  c) Something else — explain

Rules for the quiz loop:


Phase 3 — Final Verification

When no more issues are found:

  1. Re-read the design doc (it may have been edited during the quiz).
  2. Verify all implementation tasks still reference valid files and types.
  3. Confirm the task dependency order is still correct.
  4. Report:
## Review Complete

Design doc: <path>
Issues found: N
Issues resolved: N
Design doc edits: N

### Resolutions
- Issue 1: <title> — <resolution summary>
- Issue 2: <title> — <resolution summary>

### Ready for implementation
The design doc is consistent with the codebase. Run /implement-feature <name> to proceed.

Rules

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.