/dev:ml-design-review-iterativefrom dev
Runs iterative ML design review with 3 parallel reviewer agents (ML Engineer, Applied Scientist, ML Ops). Detects statistical flaws, data leakage, overfitting, and metric validity issues in ML system designs.
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 (Principal ML Engineer, Sr Applied Scientist, ML Ops Engineer). Each iteration raises the bar for what gets fixed, converging quickly to a statistically sound and practically deployable 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. Also read CLAUDE.md and any referenced prior designs or experiment logs to understand the project context.
Dispatch 3 agents simultaneously, each reviewing the same design doc from a different perspective. Every agent MUST:
Agent 1 — Principal ML Engineer:
Review this design document as a Principal ML Engineer with deep experience in AutoML, neural architecture search, and automated research systems. Focus on: evaluation methodology soundness, metric design (can the optimization target be Goodharted?), overfitting risks given the dataset size, data leakage vectors, search space design, whether the evaluation is deterministic and reproducible, whether baselines are sufficient to validate the harness, and whether the system will actually find real signal vs. noise. Research any referenced frameworks (e.g., autoresearch, optuna, ray tune) to verify the design faithfully adapts their principles. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT with a confidence score.
Stay in your lane: You own ML methodology, evaluation design, and search architecture. Do NOT rule on domain-specific assumptions about the data (e.g., whether a financial feature is meaningful) — that is the Applied Scientist's domain. Do NOT rule on infrastructure choices — that is ML Ops' domain. If you see a concern outside your lane, flag it as a question for the relevant reviewer.
Agent 2 — Senior Applied Scientist:
Review this design document as a Senior Applied Scientist with expertise in quantitative finance, backtesting methodology, and statistical validation. Focus on: statistical power of the evaluation (is N large enough?), walk-forward / cross-validation methodology, multiple comparisons bias, constraint calibration (are thresholds well-chosen or arbitrary?), whether the scoring function rewards real edge vs. artifacts, fill model realism, temporal split correctness, feature leakage risks, and whether the design accounts for non-stationarity in financial data. Verify claims about dataset size, available features, and existing infrastructure against the actual codebase. Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT with a confidence score.
Stay in your lane: You own statistical methodology, domain data assumptions, and quantitative correctness. Do NOT rule on ML architecture choices (model selection, search space design) — that is the Principal ML Engineer's domain. Do NOT rule on deployment infrastructure — that is ML Ops' domain. If you see a concern outside your lane, flag it as a question for the relevant reviewer.
Agent 3 — ML Ops / Production Engineer:
Review this design document as an ML Ops Engineer who will deploy and monitor this system. Focus on: reproducibility (can results be recreated?), experiment tracking and versioning, compute budget and wall-clock constraints, failure modes and recovery (what happens when strategy.py crashes?), data pipeline reliability, result storage and querying, how the human reviews and approves candidates, monitoring for the autonomous loop, and whether the system degrades gracefully under edge cases (empty data days, NaN features, zero trades). Categorize every finding as BLOCKER, HIGH, MEDIUM, LOW, or NIT with a confidence score.
Stay in your lane: You own deployment, monitoring, infrastructure, and operational concerns. Do NOT rule on ML methodology (model choice, evaluation design) — that is the Principal ML Engineer's domain. Do NOT rule on statistical validity — that is the Applied Scientist's domain. If you see a concern outside your lane, flag it as a question for the relevant reviewer.
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:
## ML Design Review Iteration {N} — Findings
| # | Severity | Confidence | Reviewer | Section | Finding | Fix? |
|---|----------|------------|----------|---------|---------|------|
| 1 | BLOCKER | 95 | ML Eng | Scoring | ... | Yes |
| 2 | HIGH | 88 | Appl Sci | Walk-Forward | ... | Yes |
| 3 | NIT | 70 | ML Ops | Tracking | ... | 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:
## ML 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
Other plugins' skills for the same job
13 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./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.npx claudepluginhub mayank-io/mstack --plugin dev