/dev:code-review-iterativefrom dev
Runs 3 parallel reviewer agents (PE, Sr SDE, QA) over git diff with diminishing fix thresholds across up to 4 iterations. Converges quickly to clean code.
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, QA). Each iteration raises the bar for what gets fixed, converging quickly to clean code.
By default, review unstaged changes from git diff. If the user specifies files, a branch, or a PR, use that scope instead.
Set iteration = 1. Determine the review scope (git diff, specific files, or user-specified).
Dispatch 3 agents simultaneously, each reviewing the same code 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 code as a Principal Engineer. Focus on: architecture, design patterns, abstraction quality, API contracts, performance implications, scalability concerns, and whether the approach is fundamentally sound. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT. Include file path and line number for each.
Stay in your lane: You own architecture, AST/IR design, parser/compiler structure, and performance. Do NOT rule on whether a domain concept is semantically valid or whether a condition should accept certain inputs from a domain perspective — that is the Domain Expert's call. If you think a domain assumption in the code is wrong, flag it as a question rather than a finding.
Agent 2 — Senior SDE:
Review this code as a Senior Software Engineer. Focus on: correctness, edge cases, error handling, null/undefined safety, race conditions, resource leaks, naming, readability, DRY violations, and adherence to project conventions (check CLAUDE.md). Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT. Include file path and line number for each.
Stay in your lane: You own implementation correctness, code quality, and codebase consistency. Do NOT rule on domain semantics or override domain-driven design decisions. If a pattern seems wrong but is documented as a domain requirement, flag it as a question rather than a finding.
Agent 3 — QA Engineer:
Review this code as a QA Engineer. Focus on: test coverage gaps, untested edge cases, missing error path tests, input validation, integration risks, regression potential, and observable behavior correctness. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT. Include file path and line number for each.
Stay in your lane: You own test coverage, test quality, and behavioral correctness. Do NOT rule on architectural decisions or domain semantics. If you see missing test cases that depend on domain knowledge (e.g., "should this condition accept lord references?"), flag it as a question for the Domain Expert rather than asserting the answer.
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:
## Review Iteration {N} — Findings
| # | Severity | Reviewer | File:Line | Finding | Fix? |
|---|----------|----------|-----------|---------|------|
| 1 | BLOCKER | PE | src/x.rs:45 | ... | Yes |
| 2 | HIGH | Sr SDE | src/y.rs:12 | ... | Yes |
| 3 | NIT | QA | src/z.rs:99 | ... | No (below threshold) |
Fixing N of M findings this iteration.
Implement all fixes at or above the threshold. For each fix:
Count how many findings were fixed this iteration.
iteration = iteration + 1, go to Step 1.When the loop exits, print:
## 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
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./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./design-review-iterativeRun iterative design document review with diminishing fix thresholds. Use when the user says "review my design", "design review", "review this design doc", "review the design iteratively", or after completing a design document./explain-flowsGenerate an interactive, single-page HTML map of how an application's packages and components collaborate to complete its workflows, driven by a flows.json document. Clicking a flow ("Invite new user", "todesktop build", "POST /v1/invites", "/notes:clip <url>") highlights the path through the components and annotates what is passed at each hop. Works for UI/monorepo apps, API-first apps invoked via REST or CLI, and apps built from Claude Code skills/plugins. Use when the user says "explain the flows", "map the workflows", "document how the packages talk to each other", "flow diagram of the app", "how does X travel through the system", or wants an onboarding map of an unfamiliar codebase./finish-work-on-local-worktreeThis skill should be used when the user says "finish worktree", "close out worktree", "merge and close milestone", "finish this worktree", "done with worktree", "wrap up worktree", or when a worktree branch is complete and needs to be merged into main AND related documentation status, project plan, and next-milestone recommendations need updating. Combines local merge (via git-worktree:local-merge), doc status updates, project plan updates, and next-milestone recommendation into one workflow. Prefer this over plain local-merge when doc and plan updates are needed./ml-design-review-iterativeRun iterative ML design review with diminishing fix thresholds. Use when reviewing designs for ML systems, evaluation harnesses, automated search systems, scoring functions, data pipelines, or any design where statistical soundness, data leakage, overfitting risks, and metric validity are primary concerns.