/dev:design-review-iterativefrom dev
Runs iterative design document review with diminishing fix thresholds using three parallel reviewer agents (Principal Engineer, Senior SDE, Domain Expert). Useful for getting structured feedback on design docs.
Ships in dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run up to 4 review-fix iterations with 3 parallel reviewer agents (PE, Sr SDE, Domain Expert). Each iteration raises the bar for what gets fixed, converging quickly to a solid design.
By default, review the most recently written or edited design doc in docs/. If the user specifies a file, use that instead.
Set iteration = 1. Identify the design doc to review. Read it fully before launching reviewers.
Dispatch 3 agents simultaneously, each reviewing the same design doc from a different perspective. Every agent MUST categorize each finding as exactly one of: BLOCKER, HIGH, MEDIUM, LOW, NIT.
Agent 1 — Principal Engineer (PE):
Review this design document as a Principal Engineer. Focus on: architectural soundness, scalability, extensibility, abstraction boundaries, coupling/cohesion, performance implications, operational complexity, security posture, and whether the approach will hold up under real-world load and evolution. Flag missing trade-off analysis, unclear decision rationale, and unaddressed failure modes. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT.
Stay in your lane: You own AST/IR representation, grammar ambiguity analysis, parser/compiler architecture, and performance. Do NOT rule on whether a domain concept is semantically valid — that is the Domain Expert's call. If you think a domain assumption is wrong, flag it as a question for the Domain Expert, not as a finding.
Agent 2 — Senior SDE:
Review this design document as a Senior Software Engineer who will implement this. Focus on: implementation feasibility, missing technical details, gaps between design and codebase reality, unclear interfaces or contracts, missing error handling strategy, ambiguous naming, incomplete data flow, missing edge cases, and whether the milestones/tasks are actually achievable as scoped. Cross-reference with existing code patterns in the repo. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT.
Stay in your lane: You own implementation feasibility, code-level concerns, and codebase consistency. Do NOT rule on domain semantics or make assumptions about what is valid in the problem domain. If a design decision seems wrong but is labeled as domain-driven, flag it as a question for the Domain Expert rather than overriding it.
Agent 3 — Domain Expert:
Review this design document as a domain expert for this project. Read CLAUDE.md and existing docs to understand the project context. Focus on: requirements completeness, whether the design actually solves the stated problem, missing use cases, incorrect assumptions about the domain, gaps in the testing strategy, missing rollback/migration concerns, and whether the milestones deliver testable value incrementally. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT.
Stay in your lane: You own domain correctness — whether the proposed syntax reads naturally, whether semantic assumptions match the domain reality, whether the right entities/concepts are modeled, and whether conditions are valid. Do NOT rule on parser implementation strategy, AST representation choices, or grammar ambiguity resolution — those are the PE's domain. If you see an implementation concern, flag it as a question for the PE.
Merge findings from all 3 agents. Deduplicate (same issue found by multiple reviewers = single finding at highest severity). Apply the fix threshold for the current iteration:
| Iteration | Fix Threshold | What Gets Fixed |
|---|---|---|
| 1 | BLOCKER, HIGH, MEDIUM, LOW, NIT | Everything |
| 2 | BLOCKER, HIGH, MEDIUM | Skip LOW, NIT |
| 3 | BLOCKER, HIGH | Skip MEDIUM and below |
| 4 | BLOCKER only | Skip HIGH and below |
Present the consolidated findings to the user in a table:
## Design Review Iteration {N} — Findings
| # | Severity | Reviewer | Section | Finding | Fix? |
|---|----------|----------|---------|---------|------|
| 1 | BLOCKER | PE | Architecture | ... | Yes |
| 2 | HIGH | Sr SDE | Data Flow | ... | Yes |
| 3 | NIT | Domain | Milestones | ... | No (below threshold) |
Fixing N of M findings this iteration.
Apply all fixes at or above the threshold directly to the design document. For each fix:
Count how many findings were fixed this iteration.
iteration = iteration + 1, go to Step 1.When the loop exits, print:
## Design Review Complete
| Iteration | Findings | Fixed | Threshold |
|-----------|----------|-------|-----------|
| 1 | N | N | All |
| 2 | N | N | MEDIUM+ |
| ... | ... | ... | ... |
Total iterations: N
Total findings: N
Total fixed: N
Remaining (below final threshold): N
Then update the design doc's frontmatter status from draft to review (if it was draft) or from review to active (if review is complete with no remaining blockers).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mayank-io/mstack --plugin dev13 skills in this plugin
/apply-feedbackApply tagged review comments (e.g. [REV], [EXT]) in the current document immediately, using per-tag interpretation rules from `~/.mstack/dev/feedback-tags.json`. Use when the user says "apply feedback", "apply REV comments", "apply review notes", "apply my edits", or wants tagged comments incorporated directly into a document without an approval gate./code-review-iterativeRun iterative code review with diminishing fix thresholds. Use when the user says "review my code", "iterative review", "code review", "review this iteratively", or after completing a feature implementation./complete-statusUse when the user says "status", "status?", "complete status", "complete-status", "full status", or asks where the project stands, and whenever a session that owns a project reports an event (a landing, a failure, a finished review, a new blocker). Produces the complete status report for the whole project the session owns - milestones, backlog, landing tables, decisions, blockers with time estimates, paused items, next project - re-read from source, never from memory.