milestone-review
Skill4 starsChanged 8 months agoMITView on GitHub
Iterative review-fix loop for accumulated milestone/branch changes. Runs parallel reviewers, fixes findings autonomously, repeats until clean. Use after multiple tasks merge to a milestone branch, or before merging to main. Invoke with /milestone-review --base-branch main. Supports --dry-run and --max-iterations.
- Installs packages
- Commits and pushes
11 other projects use a version of this.
Adopted by
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Sep 29, 2026
- dawn840705/codex-code-studiostheir own version, first seen Aug 28, 2026
- mertefesensoy/Ephesustheir own version, first seen Aug 26, 2026
- striderZA/OpenCodeGameStudiostheir own version, first seen Aug 10, 2026
- zajca/pohunektheir own version, first seen Jun 29, 2026
Used with
Projects with it also use asset-spec, create-control-manifest and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cenconq25Skillasset-spec
Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.
Also in 5 projects that use this
cenconq25Skillcreate-control-manifest
Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.
Also in 5 projects that use this
- +10 more from cenconq25
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- pixel-cellar/Claude-Code-Game-Studios★ 338same name
- striderZA/OpenCodeGameStudios★ 90same name
- tranhieutt/software_development_department★ 72same name
- cenconq25/claude-code-app-studio★ 41same name
- CoralGame/Claude-Code-Game-Studios★ 19same name
- dawn840705/codex-code-studios★ 17same name
- timjrobinson/Claude-Code-Construction-Manager★ 4same name
- zajca/pohunek★ 4same name
- mertefesensoy/Ephesus★ 2same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- auto-runSkill
- benchmarkSkill
- claudemd-auditSkill
- debugSkill
- deep-planSkill
- design-shotgunSkill
- dispatchSkill
- finish-taskSkill
- humanizerSkill
- multi-reviewSkill
- orientSkill
- plan-design-reviewSkill
- plan-eng-reviewSkill
- product-reviewSkill
- qaSkill
- reconcile-summarySkill
- retroSkill
- specSkill
- start-taskSkill
- summarize-sessionSkill
- verifySkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 7 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
If no changes, exit early: "Nothing to review — branch is identical to <base-branch>."
- Distinctive: line 49
Read the full diff for reviewer context:
- Very specific: line 83
Codex integration (config-only): If review.json contains "codex": { "enabled": true }:
- Very specific: line 86
Verify codex CLI: which codex && codex --version
- Very specific: line 87
If missing, log: "Codex CLI not found — skipping codex review.
- Distinctive: line 100
Use the Task tool to spawn parallel review agents.
- Very specific: line 118
Model selection: Follow multi-review's tier-based logic.
- Very specific: line 153
If $CODEX_ADVERSARIAL, use review prompt: "Perform an adversarial review.
- Very specific: line 158
When changed files include frontend patterns (.tsx, .jsx, .vue, .svelte, .html, .css, .scss):
- Very specific: line 160
If --dry-run, skip browser testing.
- Very specific: line 195
If --dry-run: report findings and exit.
- Distinctive: line 199
Verify: Read actual code at file:line — confirm the finding is real.
- Distinctive: line 222
If your fix caused it, adjust the fix (don't just revert and give up)
- Very specific: line 223
Only move to deferred if the fix genuinely can't be made to work without human guidance
- Distinctive: line 243
Clean enough: All findings were dropped as false positives → EXIT
- Distinctive: line 253
If the diff exceeds ~40 changed files, batch the review:
- Distinctive: line 255
Run reviewers on each batch sequentially to stay within context limits
- Very specific: line 300
Write a standard session summary to docs/session_summaries/milestone-review_<timestamp>.txt for orchestrator reconciliation.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Milestone Review: Iterative Review-Fix Loop
You are running an autonomous review-fix loop on accumulated branch changes. Unlike /multi-review (which is interactive), you fix ALL verified findings yourself — iterating until the branch is clean.
Section 1: Parse Arguments
Arguments: $ARGUMENTS
Parse the following flags:
--max-iterations N— Maximum review-fix cycles (default: 5)--base-branch <branch>— Compare against this branch (default: main)--severity <level>— Minimum severity to fix:critical,important,suggestions(default: important — fixes Critical + Important)--dry-run— Report findings without fixing anything
Section 2: Validate Environment
- Confirm there are changes vs base:
git diff <base-branch>...HEAD --stat - If no changes, exit early: "Nothing to review — branch is identical to
<base-branch>." - Log scope:
MILESTONE REVIEW STARTING Branch: <current branch> Base: <base-branch> Files changed: <count> Lines changed: +<added> -<removed> Max iterations: <N> Severity threshold: <level>
Section 3: Review-Fix Loop
Iterate from 1 to max_iterations. Track findings across iterations to detect plateaus.
Step 3.1: Compute Diff
git diff <base-branch>...HEAD --name-onlyRead the full diff for reviewer context:
git diff <base-branch>...HEADStep 3.2: Select Reviewers
Replicate multi-review's reviewer selection logic (Steps 1.5–3 of /multi-review):
- Load
.claude/review.jsonif present - Auto-detect frameworks from file patterns:
File Patterns Agent *.tsx,*.jsx,next.config.*,middleware.tsnextjs-reviewer*.css,tailwind.*,components/ui/**tailwind-reviewer*.py,alembic/**python-backend-reviewerroutes/**,api/**,endpoints/**,controllers/**api-security-reviewer*.tsx,*.jsx,*.vue,*.svelte,components/**,pages/**ux-reviewer*.tsx,*.jsx,*.css,next.config.*,package.jsonfrontend-performance-reviewer - Always include (milestone review is about cross-cutting concerns):
code-simplicity-reviewerpattern-recognition-specialistarchitecture-strategist
- Conditionally include based on change types and risk tiers:
security-sentinel— auth, input handling, secrets, user dataperformance-oracle— database queries, loops, cachingagent-native-reviewer— agent definitions, skill files, system promptsdata-integrity-guardian— database migrations, schema changesdata-migration-expert— data backfills, ID mappings
- Apply
reviewers.exclude/reviewers.includeoverrides from review config if present - Codex integration (config-only): If review.json contains
"codex": { "enabled": true }:- Set
$CODEX_ENABLED = true - Set
$CODEX_ADVERSARIAL = trueif"codex": { "adversarial": true } - Verify codex CLI:
which codex && codex --version - If missing, log: "Codex CLI not found — skipping codex review. Install:
npm install -g @openai/codex" and set$CODEX_ENABLED = false
- Set
Select 3–7 reviewers total (codex is additional, does not count toward this limit).
Step 3.3: Read Agent Definitions
For each selected reviewer:
cat ~/.claude/agents/review/<agent-name>.mdStep 3.4: Launch Parallel Reviews
Use the Task tool to spawn parallel review agents. Each reviewer gets:
- The full diff context
- Contents of key changed files
- Instruction to return findings in standard format:
## [Agent Name] Findings
### Critical Issues
- [file:line] Issue description - Confidence: X%
### Important Issues
- [file:line] Issue description - Confidence: X%
### Suggestions
- [file:line] Issue description - Confidence: X%Model selection: Follow multi-review's tier-based logic. Default to Sonnet. Use Opus for security-sentinel and architecture-strategist when risk tier is critical.
Codex reviewer (if $CODEX_ENABLED):
Launch an additional Agent in parallel with the Claude reviewers above:
N+1. Agent: codex-reviewer
- Subagent type: general-purpose
- Model: sonnet
- Prompt:
You are a review output normalizer. Your job:
1. Run codex to perform a code review via Bash (timeout: 300000ms):
codex review --base <base-branch> "<review prompt>"
2. Capture the stdout output.
3. Parse each finding and normalize into this format:
## Codex Reviewer Findings
### Critical Issues
- [file:line] [CODEX] Issue description - Confidence: X%
### Important Issues
- [file:line] [CODEX] Issue description - Confidence: X%
### Suggestions
- [file:line] [CODEX] Issue description - Confidence: X%
4. Map codex severity: Critical/Blocker/Bug/Security → Critical,
Warning/Should-fix/Improvement → Important, Suggestion/Nit/Style → Suggestions
5. If no confidence given: Critical 90%, Important 80%, Suggestions 70%
6. If no file:line references, use file path only.
7. Return ONLY the normalized findings.If $CODEX_ADVERSARIAL, use review prompt: "Perform an adversarial review. Challenge design decisions, surface hidden assumptions, question tradeoffs, and pressure-test the approach."
Otherwise: "Review for security vulnerabilities, correctness bugs, performance issues, and code quality. Format findings by severity."
Step 3.5b: Browser Workflow Testing (Parallel with Code Reviews)
When changed files include frontend patterns (.tsx, .jsx, .vue, .svelte, .html, .css, .scss):
- If
--dry-run, skip browser testing. - Read
docs/browser-testing-protocol.mdand follow Phases 1-6 (first iteration only):- Pre-flight checks — verify Playwright MCP available, dev server running (Phase 1)
- Infer workflows from diff — classify changed files, propose to user via
AskUserQuestionfor confirmation (Phase 2) - Navigate → clear cache/storage → reload — ensures fresh state, not stale cache (Phase 3)
- Handle auth if page redirects to login (Phase 4)
- Execute workflow-type checklists — interact, verify outcomes, verify persistence via reload (Phase 5)
- Responsive check at desktop (1280x800) + mobile (375x812) and report findings (Phase 6)
- Include browser findings in the aggregated results alongside code review findings. Classify as Critical/Important/Minor per the protocol's Phase 6 severity table.
Milestone-review specific: Cache the user's URL response and workflow list — don't re-ask on subsequent iterations. On iterations 2+, re-run only the workflows that touched files modified by fixes.
Step 3.5: Aggregate and Filter Findings
Process reviewer results using escalating thresholds — be aggressive early, tighten each iteration:
| Iteration | Severities | Min Confidence | Scope |
| 1 | Critical + Important | >= 80% | All findings |
| 2 | Critical + Important | >= 85% | Net-new findings only (not flagged in iteration 1) |
| 3+ | Critical only | >= 90% | Net-new findings only |
Constant rules (all iterations):
- Security findings (
security-sentinel,api-security-reviewer) always included regardless of confidence or iteration - Include Suggestions only if
--severity suggestionswas passed (and only in iteration 1) - Deduplicate findings that multiple reviewers flagged (keep the highest-confidence version)
Net-new detection: A finding is "net-new" if no finding from the previous iteration references the same file:line range (within 5 lines) for the same category of issue. If a reviewer flags the same area for the same reason, it's a re-flag — skip it.
Step 3.6: Autonomous Fix Evaluation
This is the key differentiator from /multi-review. Multi-review splits findings into "auto-fixable" and "manual review recommended" and asks the user. Milestone-review rejects this distinction. You treat every verified finding as your responsibility to fix, regardless of complexity.
If --dry-run: report findings and exit. Do not fix anything.
For EACH Critical/Important finding:
- Verify: Read actual code at file:line — confirm the finding is real. Reviewers hallucinate.
- Evaluate: Is this a real issue? Drop ONLY if:
- The finding is a false positive (code doesn't actually have the problem)
- The finding is purely speculative/theoretical with no practical impact
- Fixing it would require a human architectural decision (e.g., "should we use library X or Y?")
- Fix: Implement the complete fix. Not a superficial patch — the real fix that fully resolves the issue. If the finding says "these 3 files have inconsistent error handling patterns," fix all 3 files.
- Track each finding into one of:
fixed[]— issue was real, fix implementeddropped[]— issue was false positive or speculative (log reason)deferred[]— issue is real but requires human decision (log what decision is needed)
Important: The bar for deferring is HIGH. "This is complex" is NOT a valid reason to defer. "This requires choosing between two valid architectural approaches" IS.
Step 3.7: Run Tests After Fixes
Auto-detect and run the project's test command:
pyproject.toml→uv run pytestpackage.json→pnpm test(ornpm testif no pnpm-lock)Makefilewithrun-checks→make run-checksMakefilewithtest→make test
If tests fail:
- Diagnose the failure
- If your fix caused it, adjust the fix (don't just revert and give up)
- Only move to
deferredif the fix genuinely can't be made to work without human guidance
Tests must pass before committing.
Step 3.8: Commit Fixes
git add <specific files changed>
git commit -m "fix: address milestone review findings (iteration N)
- <list of issues fixed>
Co-Authored-By: Claude <noreply@anthropic.com>"Step 3.9: Check Exit Conditions
Evaluate in this order (first match wins):
- Clean: Zero findings passed the threshold filter this iteration → EXIT
- Clean enough: All findings were dropped as false positives → EXIT
- Diminishing returns: Fewer than 3 net-new findings this iteration AND zero Critical → EXIT (you've hit the long tail — remaining nits aren't worth another full review cycle)
- Plateau: Net-new findings count >= previous iteration's count (not converging) → EXIT (fixes are creating as many issues as they resolve — stop the churn)
- Limit: Max iterations reached → EXIT (report deferred items)
- Otherwise: Next iteration
On exit, log the reason so the report explains why the loop stopped (e.g., "Exited after iteration 2: diminishing returns (1 net-new Important, 0 Critical)").
Step 3.10: Large Diff Handling
If the diff exceeds ~40 changed files, batch the review:
- Group related files by directory or feature area
- Run reviewers on each batch sequentially to stay within context limits
- Fixes still accumulate into a single commit per iteration
Section 4: Push and Report
git pushGenerate the final report:
═══════════════════════════════════════════
MILESTONE REVIEW COMPLETE
═══════════════════════════════════════════
Branch: <branch>
Base: <base-branch>
Iterations: N
Exit reason: <clean|clean enough|diminishing returns|plateau|limit>
Findings evaluated: X
Fixed: Y
Dropped (false positive): Z
Deferred (needs human): W
PER-ITERATION BREAKDOWN:
Iteration 1: <N> findings (threshold: Important+ >= 80%) → <M> fixed
Iteration 2: <N> findings (threshold: Important+ >= 85%, net-new only) → <M> fixed
...
FIXED:
- [file:line] issue (iteration N)
- ...
DEFERRED (if any):
- [file:line] issue — what human decision is needed
- ...
DROPPED:
- [file:line] issue — why it's a false positive
- ...
═══════════════════════════════════════════Section 5: Session Summary
Write a standard session summary to docs/session_summaries/milestone-review_<timestamp>.txt for orchestrator reconciliation. Include:
- Branch name and base branch
- Iteration count
- Full list of fixed, dropped, and deferred findings
- Test results
- Any deferred items that need human attention
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

