story-done
Skill26k starsChanged 2 months agoMITView on GitHub
End-of-story completion review — verifies each acceptance criterion, checks GDD/ADR deviations, prompts code review, updates status.
5 other projects use a version of this, 3 of them edited; 3 of 3 edited versions we compared changed its rules.
How people change it
3 of 3 edited versions changed its rules, and some changes recur.
Of the 3 edited versions we compared: 3 made changes of their own.
Rules people drop
- Every
AskUserQuestioncall follows.claude/docs/automation-modes.md(collaborative asks always · guided major-only · autonomous logs and proceeds;automation_always_askcategories always prompt).dropped by 3 of 3 - Test file check: if a test file path is mentioned, confirm the file exists with
Glob. Do not run it — this skill establishes existence only (see the note under Test Evidence Requirement), so report "test file present", never "test passes".dropped by 3 of 3 - Retained screenshot: if the criterion names something on screen and a retained image under
production/qa/evidence/[story-slug]/shows it (theRun result: OBSERVEDfrom/dev-storyPhase 6 step 4), count that as covered — put the image path in the …dropped by 3 of 3 - Only
trueandfalse(case-insensitive) are recognized at steps 1–2. A key that is present but holds any other value —maybe,1,yes, etc. — is treated as unset: continue to the next step, and surface the unrecognized value to the user.dropped by 3 of 3 - If none found: flag at the resolved gate level (same rule as Logic).dropped by 3 of 3
- No screenshot: "No visual evidence found. Capture a screenshot of each screen or effect this story touched and save it under
production/qa/evidence/before final closure." For Visual/Feel add: "then record sign-off in …dropped by 3 of 3 - If none: flag at the resolved gate level — "No smoke check report found. Run
/smoke-check."dropped by 3 of 3 - ADR constraints check: Use the ADR's
## Decisionsection already loaded in Phase 2 — do not read the ADR file again. Check for forbidden patterns fromdocs/architecture/control-manifest.md(if it exists). …dropped by 3 of 3
Rules people add
- If
--review [full|lean|solo]was passed → use thatadded by 3 of 3 - Read the *current*
requirementtext from the registry entry. This is the source of truth for what the GDD required — do not use any requirement text that may be quoted inline in the story (it may be stale).added by 3 of 3 - Test pass check: if a test file path is mentioned, run it via
Bash.added by 3 of 3 - If none found: flag as BLOCKING (same rule as Logic).added by 3 of 3
- If none: flag as ADVISORY — "No smoke check report found. Run
/smoke-check."added by 3 of 3 - ADR constraints check: Read the referenced ADR's Decision section. Check for forbidden patterns from
docs/architecture/control-manifest.md(if it exists).Grepfor patterns explicitly forbidden in the ADR.added by 3 of 3 - COMPLETE WITH NOTES: all criteria pass, advisory deviations documentedadded by 3 of 3
- After updating the story file, silently append to
production/session-state/active.md:added by 3 of 3
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- HunLuanZhiZhu/Game-Studios-Pluginedited, first seen Oct 5, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- dawn840705/codex-code-studiosedited, first seen Aug 28, 2026
- striderZA/OpenCodeGameStudiosedited, first seen Aug 10, 2026
- cenconq25/claude-code-app-studiotheir own version, first seen May 3, 2026
Who's talking about Donchitos/Claude-Code-Game-Studios
- @woody-ai-tools.bsky.social“【GitHubトレンド調査】 Claude Codeをゲーム開発スタジオに変貌させる「Claude-Code-Game-Studios」が登場。…”Bluesky · Apr 19, 2026 · 10 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 9,860 (+523) 🗒 Shell Turn …”Bluesky · Apr 15, 2026 · 4 likes
- @impossible.bsky.social“This is the project in question. github.com/Donchitos/Cl... Most of these projects feel like toys or …”Bluesky · May 19, 2026 · 3 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 13,024 (+828) 🗒 Shell Turn …”Bluesky · Apr 19, 2026 · 3 likes
- @thestackradar.bsky.social“Claude-Code-Game-Studios — Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, …”Bluesky · Nov 1, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub and Bluesky (53 times).
On GitHub · 41
- Nov 19, 2026GF-ARCH-12: Studio Intelligence inspirado em Graphify, Game Studios e DeepSeek Harness — jogoiarexx-blip/gameforge-ia0 reactions
- Nov 19, 2026chore(architecture): share game-dev agents and skills — OliverRomhagen/vrigstad-joyride0 reactions · 9 comments
- Nov 15, 2026Sync upstream v1.3.0 — spirit986/Claude-Code-Game-Studios0 reactions
- Nov 13, 2026add links — rumca-js/rumca-js.github.io0 reactions
- Nov 12, 2026[추적] GDD 문서 책임과 생성 에이전트 역할 분리 — arch-spatula/isekai-generator0 reactions
36 more on GitHub
- Nov 10, 2026research: GitHub 오픈소스 10종 심층 비교 및 JARVIS 개발 세션 인계 (2026-11-10) — coddddin/jarvis-mcp0 reactions
- Nov 9, 2026feat(chaos-engine): game-studio follow-up from the 2026-11-09 study — ShaftHQ/SHAFT_ENGINE0 reactions · 2 comments
- Nov 9, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.2.0 → 1.3.0 — sudosubin/agents.nix0 reactions
- Nov 9, 2026Research: inventory external Unity game-dev skills for project-local adoption — AlvaGonz/A-B-Revival0 reactions · 1 comment
- Nov 9, 2026PROJECT MASTER DIRECTIVE — Dr-sOuL7/PlayGround0 reactions · 3 comments
- Nov 8, 2026[Future Isles] Reuse and validate upstream GameDev Skills (Phaser, game systems, Blender) — alston-personal/agentmanager0 reactions · 5 comments
- Nov 6, 2026[P1] Save the text of the golden pages to evals/golden/ — minhtran3124/mnemo0 reactions · 1 comment
- Nov 3, 2026[edition] 2026-11-03 18:00 — leoneoo/ai-lianmeng0 reactions · 1 comment
- Nov 3, 2026🔥 GitHub Trending AI 早报 · 2026-11-03 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 3, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49个agent+74技能按真实工作室层级把Claude Code变游戏团队 — web1992/github-trending0 reactions
- Nov 2, 2026🔥 GitHub Trending AI 早报 · 2026-11-03 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 2, 2026🔥 GitHub Trending AI 早报 · 2026-11-02 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 2, 2026day-035: Claude Code Game Studios — CLAUDE.md auto-discoveryを発見 — Matsushima-A-830/ai-100days0 reactions
- Nov 2, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49个agent+74技能按真实工作室层级把Claude Code变游戏团队 — web1992/github-trending0 reactions
- Nov 1, 2026today: Day 035にClaude Code Game Studiosを設定 — Matsushima-A-830/ai-100days0 reactions
- Nov 1, 2026research: 2026-11-01分のネタ候補5件をbacklog.mdに追記 — Matsushima-A-830/ai-100days0 reactions
- Nov 1, 2026🔥 GitHub Trending AI 早报 · 2026-11-02 · Top 6 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 1, 2026🔥 GitHub Trending AI 早报 · 2026-11-01 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Nov 1, 2026Github trending [Donchitos/Claude-Code-Game-Studios] 49子代理打造完整游戏工作室 — web1992/github-trending0 reactions
- Oct 31, 2026🔥 GitHub Trending AI 早报 · 2026-11-01 · Top 7 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Oct 30, 2026Donchitos 'Claude-Code-Game-Studios' — 49개 에이전트·74개 스킬로 Claude Code를 게임 개발 스튜디오로, 일간 트렌딩 진입 (10/29, GitHub) — roomedia/ax-trend0 reactions
- Oct 25, 2026Import Claude Code Game Studios into .claude — RoxorLoops1337/Games0 reactions · 1 comment
- Oct 21, 2026Skill mới cho agent: soát cân bằng, chống gian lận, soak/perf, bot chập chờn, phân loại chơi thử — nguyenbinhanltv/soul-land-mmo0 reactions
- Oct 19, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.3 → 1.2.0 — sudosubin/agents.nix0 reactions
- Oct 15, 2026研究作者列出的 16 個遊戲引擎與 AI 專案;新增 economy-balance skill — a91453/railway-game-ios0 reactions
- Oct 13, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.2 → 1.1.3 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.donchitos.claude-code-game-studios: 1.1.0 → 1.1.2 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.donchitos.claude-code-game-studios: init at 1.1.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026Add Game Studios, rohitg00, BaseGold, and MineSwap — CryptoSuess/FoutainOfYouth0 reactions
- Aug 6, 2026技能侦察 2026-08-06 01:00Z:+8 精选(220) — NyphSan/CursorSkill0 reactions
- Aug 5, 2026技能侦察 DIGEST 2026-08-05 21:00Z:+8 一致性/体素/动画与 AngelScript·Art Bible — NyphSan/CursorSkill0 reactions
- Apr 30, 2026docs: add shields.io badges to README.md / README.ja.md — kirin0198/aphelion-agents0 reactions
- Apr 18, 2026📱 SNS 콘텐츠 - 2026-04-18 16:10 KST — leaf468/autothreads0 reactions
- Apr 18, 2026🤖 AI 트렌드 리포트 - 2026-04-18 16:10 KST — leaf468/autothreads0 reactions
- Apr 6, 2026Audit candidate: Donchitos/Claude-Code-Game-Studios — xiaolai/nlpm0 reactions · 2 comments
- Mar 22, 2026Add game studio agent support to agent-tools (adapted from Claude-Code-Game-Studios) — Unwrenchable/agent-tools0 reactions
On Bluesky · 12
- Apr 19, 2026【GitHubトレンド調査】 Claude Codeをゲーム開発スタジオに変貌させる「Claude-Code-Game-Studios」が登場。… — @woody-ai-tools.bsky.social10 likes and reposts
- Apr 15, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 9,860 (+523) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social4 likes and reposts · 1 reply
- May 19, 2026This is the project in question. github.com/Donchitos/Cl... Most of these projects feel like toys or performance art masquerading as useful… — @impossible.bsky.social3 likes and reposts · 2 replies
- Apr 19, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 13,024 (+828) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Nov 1, 2026Claude-Code-Game-Studios — Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination… — @thestackradar.bsky.social2 likes and reposts
7 more on Bluesky
- Nov 1, 2026An entire game dev studio in one Claude session? 🎮 Claude-Code-Game-Studios turns Claude Code into an AI production studio: 49 agents, 72… — @thestackradar.bsky.social1 likes and repost
- Oct 31, 2026今日のGitHubトレンド Donchitos/Claude-Code-Game-Studios Claude Codeのセッションを擬似的なゲーム開発スタジオとして運用するためのツールです。… — @dailygithubtrends.bsky.social1 likes and repost
- May 19, 2026It was this one: github.com/Donchitos/Cl... — @dphrygian.com1 likes and repost · 1 reply
- Apr 21, 2026https://github.com/Donchitos/Claude-Code-Game-Studios — @tom-doerr.bsky.social1 likes and repost
- Apr 1, 2026Un studio de 48 agents IA spécialisés dans Claude Code : hiérarchie complète (directors, leads, specialists), workflows automatisés et… — @camilleroux.com1 likes and repost
- Nov 2, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 33,084 (+1,380) 🗒 Shell Turn Claude Code into a full game… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 29, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 Donchitos / Claude-Code-Game-Studios ⭐ 28,645 (+538) 🗒 Shell Turn Claude Code into a full game dev… — @github-trending.bsky.social0 likes and reposts · 1 reply
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- striderZA/OpenCodeGameStudios★ 9038% same
- dawn840705/codex-code-studios★ 1733% same
- HunLuanZhiZhu/Game-Studios-Plugin★ 136% same
Wrote their own version · 2
- cenconq25/claude-code-app-studio★ 41same name
- gonimar/claude-web-studio★ 5same name
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 repository78 other files it gives its agents.
- CCGS Skill Testing Framework/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- design/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- adoptSkill
- architecture-decisionSkill
- architecture-reviewSkill
- art-bibleSkill
- asset-auditSkill
- asset-specSkill
- balance-checkSkill
- brainstormSkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- code-reviewSkill
- consistency-checkSkill
- content-auditSkill
- create-architectureSkill
- create-control-manifestSkill
- create-epicsSkill
- create-storiesSkill
- day-one-patchSkill
- design-reviewSkill
- design-systemSkill
- dev-storySkill
- estimateSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- launch-checklistSkill
- localizeSkill
- map-systemsSkill
- milestone-reviewSkill
- onboardSkill
- patch-notesSkill
- perf-profileSkill
- playtest-reportSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- qa-planSkill
- quick-designSkill
- regression-suiteSkill
- release-checklistSkill
- retrospectiveSkill
- reverse-documentSkill
- review-all-gddsSkill
- scope-checkSkill
- security-auditSkill
- settingsSkill
- setup-engineSkill
- skill-improveSkill
- skill-testSkill
- smoke-checkSkill
- soak-testSkill
- sprint-planSkill
- sprint-statusSkill
- startSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
60 rules. 21 are common, 4 are distinctive, and 35 are very specific to this project.
21
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
35
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Every AskUserQuestion call follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and …
- Very specific: line 70
Check production/session-state/active.md for the currently active story.
- Very specific: line 71
If not found there, read the most recent file in production/sprints/ and look for stories marked IN PROGRESS.
- Very specific: line 73
If multiple in-progress stories are found, use AskUserQuestion:
- Common: line 76
If no story can be found, ask the user to provide the path.
- Common: line 82
Read the full story file. Extract and hold in context:
- Very specific: line 122
Test file check: if a test file path is mentioned, confirm the file exists with Glob.
- Common: line 130
Dependency check: if a criterion says "depends on X", check that X exists.
- Very specific: line 160
After completing the pass/fail/deferred check above, map each acceptance criterion to the test that covers it:
- Common: line 165
Ask: is there a test — unit, integration, or confirmed manual playtest — that directly verifies this criterion?
- Very specific: line 167
Unit test: check tests/unit/ for a test file or function name that matches the criterion's subject (use Glob and Grep)
- Very specific: line 169
Integration test: check tests/integration/ similarly
- Very specific: line 170
Manual confirmation: if the criterion was verified via AskUserQuestion above with a "Yes — passes" answer, count that as a manual test
- Very specific: line 172
Retained screenshot: if the criterion names something on screen and a retained image under production/qa/evidence/[story-slug]/ shows it …
- Common: line 196
If >50% of criteria are UNTESTED: escalate to BLOCKING — test coverage is insufficient to confirm the story is actually done.
- Common: line 199
If some (≤50%) criteria are UNTESTED: remain ADVISORY — does not block completion, but must appear in Completion Notes.
- Common: line 201
If all criteria are COVERED: no action needed beyond including the table in the report.
- Very specific: line 240
Only true and false (case-insensitive) are recognized at steps 1–2.
- Common: line 291
For Integration stories: read the story's Test Evidence section for the exact required path.
- Distinctive: line 295
If none found: flag at the resolved gate level (same rule as Logic).
- Very specific: line 308
No screenshot: "No visual evidence found.
- Very specific: line 336
For Config/Data stories: check for any production/qa/smoke-*.md file.
- Very specific: line 337
If none: flag at the resolved gate level — "No smoke check report found.
- Common: line 365
Run these checks automatically:
- Common: line 376
If they match → pass silently.
- Very specific: line 377
If the story's version is older → flag as ADVISORY: ADVISORY: Story was written against manifest v[story-date].
- Common: line 380
If control-manifest.md does not exist → skip this check.
- Very specific: line 382
ADR constraints check: Use the ADR's ## Decision section already loaded in Phase 2 — do not read the ADR file again.
- Very specific: line 415
After completing the deviation checks in Phase 4, spawn qa-lead via Agent using gate QL-TEST-COVERAGE …
- Common: line 419
Test file paths found during Phase 3 (exact paths, or "none found")
- Common: line 458
If REJECT, do not proceed to Phase 6 verdict until the issues are resolved.
- Distinctive: line 459
If NOT ASSESSED, name the input the gate said was missing and never treat it as APPROVE: supply it and re-run the gate, or carry it to …
- Common: line 461
If the story has no implementation files yet (verdict is being run before coding is done), skip this phase and note: "LP-CODE-REVIEW …
- Common: line 467
Before updating any files, present the full report:
- Common: line 505
COMPLETE: all criteria pass, no blocking deviations
- Very specific: line 506
COMPLETE WITH NOTES: every criterion passes or is DEFERRED (Phase 3 — evaluable, awaiting a playtest), with advisory deviations or deferred …
- Common: line 565
If the verdict is BLOCKED: do not *automatically* proceed to Phase 7.
- Very specific: line 594
Use AskUserQuestion before writing anything:
- Very specific: line 602
If "Close", "Close and log tech debt", or "Accept deviations": edit the story file.
- Very specific: line 603
If "Close and log tech debt": after updating the story file, also append the advisory deviations to docs/tech-debt-register.md (create the …
- Distinctive: line 604
If "Fix first": stop here and list what the user flagged.
- Very specific: line 606
Update the status field: Status: Complete
- Very specific: line 607
Update the Last Updated: field in the story header to today's date (format: YYYY-MM-DD).
- Very specific: line 608
Add a ## Completion Notes section at the bottom:
- Very specific: line 619
If the user chose "Close and log tech debt": append each advisory deviation to docs/tech-debt-register.md as one row of /tech-debt's …
- Very specific: line 628
Update the top-level updated field
- Very specific: line 643
After updating the story file, silently update the checkpoint in production/session-state/active.md — overwrite the <!-- CHECKPOINT --> … …
- Very specific: line 660
If active.md does not exist, create it from the template.
- Distinctive: line 669
After completion, help the developer keep momentum.
- Very specific: line 678
Run bash .claude/scripts/story-status.sh, from the project root — after Phase 7's story-file write, so this story's new status is in it.
- Very specific: line 707
add the next stories from the brief with /create-stories
- Very specific: line 708
if the game has outgrown a one-page brief, /settings to raise modes.rigor
- Very specific: line 724
Read the current sprint plan from production/sprints/.
- Common: line 727
Not blocked by other incomplete stories
- Common: line 742
If no more Must Have stories remain in this sprint (all are Complete or Blocked):
- Common: line 759
If there are Should Have stories still unstarted, surface them alongside the close-out sequence so the user can choose: close the sprint …
- Common: line 761
If no more stories are ready but Must Have stories are still In Progress (not Complete): "No more stories ready to start — [N] Must Have …
- Very specific: line 783
Use AskUserQuestion for the code review prompt and for batching manual criteria confirmations.
- Very specific: line 792
If a sprint plan exists and all its Must Have stories are complete: run /smoke-check sprint → /team-qa sprint → /gate-check
- Very specific: line 793
If tech debt was logged: track it via /tech-debt to keep the register current
“Common” is measured: kept by at least 6 in 10 of the 5 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
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys review_mode,automation,workflow,story_granularity,qa.level,testing.strict,system_overrides
Resolved above — use as-is; --review overrides review_mode. No block →
defaults in .claude/docs/config-resolution.md.
Story Done
This skill closes the loop between design and implementation. Run it at the end of implementing any story. It ensures every acceptance criterion is verified before the story is marked done, GDD and ADR deviations are explicitly documented rather than silently introduced, code review is prompted rather than forgotten, and the story file reflects actual completion status.
Output: Updated story file (Status: Complete) + surfaced next story.
Phase 1: Find the Story
See .claude/docs/director-gates.md for the full check pattern. Individual gate definitions live in .claude/docs/director-gates/[gate-id].md — the spawned agent reads its own gate file; do not read it in the parent session.
Every AskUserQuestion call follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Workflow tier: resolved per the story's system (per
.claude/docs/workflow-modes.md) — the GDD filename stem of the story's
GDD: path (design/gdd/<stem>.md → <stem>), with the [system] segment of
its TR-[system]-NNN ID accepted only as a fallback alias: use the
system_overrides row for that system if the block lists one, else the
project value. It governs which Phase 4 deviation checks run — see Phase 4.
Workflow companion — modes.story_granularity (resolved above — supplied by
modes.rigor unless set explicitly): cadence expectation only — story-done fires every 3–5 days at
coarse, every 1–2 days at balanced, multiple times/day at fine. It
does not change any completion check.
qa.level: controls whether test evidence is required, where
testing.strict controls whether a failure blocks and workflow controls which
docs exist. modes.rigor sets qa.level and workflow together; set either
explicitly to vary it alone. testing.strict is not fronted by rigor at all.
At minimal, no test evidence is required → skip the Logic, Integration and
Config/Data evidence checks (Phase 3), the >50%-untested traceability escalation,
and the Phase 4b QA gate; the acceptance-criteria verification still runs, and so
do the Visual/Feel and UI screenshot gate and the Run result: check for other
story types — the look is never waived. At
standard, the story's own type requires evidence; at full, every type does.
testing.strict then decides whether present-but-failing evidence blocks.
(rigor: minimal sets both; qa.level: minimal on its own leaves the workflow
tier where it was.)
If a file path is provided (e.g., /story-done production/epics/core/story-damage-calculator.md):
read that file directly.
If no argument is provided:
- Check
production/session-state/active.mdfor the currently active story. - If not found there, read the most recent file in
production/sprints/and look for stories marked IN PROGRESS. - If multiple in-progress stories are found, use
AskUserQuestion:- "Which story are we completing?"
- Options: list the in-progress story file names.
- If no story can be found, ask the user to provide the path.
Phase 2: Read the Story
Read the full story file. Extract and hold in context:
- Story name and ID
- GDD Requirement TR-ID(s) referenced (e.g.,
TR-combat-001) - Manifest Version embedded in the story header (e.g.,
2026-03-10) - ADR reference(s) referenced
- Acceptance Criteria — the complete list (every checkbox item)
- Implementation files — files listed under "files to create/modify"
- Story Type — the
Type:field from the story header (Logic / Integration / Visual/Feel / UI / Config/Data) - Engine notes — any engine-specific constraints noted
- Definition of Done — if present, the story-level DoD
- Estimated vs actual scope — if an estimate was noted
Also read:
docs/architecture/tr-registry.yaml— grep the story's TR-IDs (Grep pattern="id: <each TR-ID>" path="docs/architecture/tr-registry.yaml" output_mode="content" -A 6), not a full read of the registry. Read the currentrequirementtext from each matched entry. This is the source of truth for what the GDD required — do not use any requirement text that may be quoted inline in the story (it may be stale).- The referenced GDD section — just the acceptance criteria and key rules, not the full document. Use this to cross-check the registry text is still accurate.
- The referenced ADR(s) — just the
## Decisionand## Consequencessections, never an unbounded full read. Map headings first (Grep pattern="^## " path="docs/architecture/[adr-file].md" output_mode="content" -n), then bounded-Readonly those two spans. This is the exact same content Phase 4 item 3's ADR constraints check needs — hold it here, do not re-read it there. docs/architecture/control-manifest.mdheader — extract the currentManifest Version:date (used in Phase 4 staleness check)
Phase 3: Verify Acceptance Criteria
For each acceptance criterion in the story, attempt verification using one of three methods:
Automatic verification (run without asking)
- File existence check:
Globfor files the story said would be created. - Test file check: if a test file path is mentioned, confirm the file exists
with
Glob. Do not run it — this skill establishes existence only (see the note under Test Evidence Requirement), so report "test file present", never "test passes". - No hardcoded values check:
Grepfor numeric literals in gameplay code paths that should be in config files. - No hardcoded strings check:
Grepfor player-facing strings in the code root (resolve per.claude/docs/code-root-resolution.md). If the code root is unresolved, reportNOT ASSESSED — code root unresolvedrather than zero hits. that should be in localization files. - Dependency check: if a criterion says "depends on X", check that X exists.
Manual verification with confirmation (use AskUserQuestion)
- Criteria about subjective qualities ("feels responsive", "animations play correctly")
- Criteria about gameplay behaviour ("player takes damage when...", "enemy responds to...") — these are asked, never marked verified from reading the code: the code says what should happen, not what the build does
- Performance criteria ("completes within Xms") — ask if profiled or accept as assumed
Batch up to 4 manual verification questions into a single AskUserQuestion call:
question: "Does [criterion]?"
options: "Yes — passes", "No — fails", "Not tested yet"Map each answer: Yes — passes → confirmed; No — fails → FAILS;
Not tested yet → not evaluated — UNTESTED in the traceability table below, and
the verdict is NOT ASSESSED (Phase 6) until someone checks it. If the criterion
genuinely needs a full-build playtest, mark it DEFERRED — requires playtest
session instead.
Unverifiable (flag without blocking)
- Criteria that require a full game build to test (end-to-end gameplay scenarios)
- Mark as:
DEFERRED — requires playtest session
Test-Criterion Traceability
After completing the pass/fail/deferred check above, map each acceptance criterion to the test that covers it:
For each acceptance criterion in the story:
- Ask: is there a test — unit, integration, or confirmed manual playtest — that
directly verifies this criterion?
- Unit test: check
tests/unit/for a test file or function name that matches the criterion's subject (useGlobandGrep) - Integration test: check
tests/integration/similarly - Manual confirmation: if the criterion was verified via
AskUserQuestionabove with a "Yes — passes" answer, count that as a manual test - Retained screenshot: if the criterion names something on screen and a
retained image under
production/qa/evidence/[story-slug]/shows it (theRun result: OBSERVEDfrom/dev-storyPhase 6 step 4), count that as covered — put the image path in the Test column. A visual criterion verified by looking is not UNTESTED; without this row every UI story reads as >50% untested and false-escalates. "Shows it" means you opened the image withReadand saw it; a checkpoint'sRun result: OBSERVED — <text>is/dev-story's description, to quote as such, not yours. Never describe an image you have not opened.
- Unit test: check
- Produce a traceability table:
| Criterion | Test | Status |
|-----------|------|--------|
| AC-1: [criterion text] | tests/unit/test_foo.gd::test_bar | COVERED |
| AC-2: [criterion text] | Manual playtest confirmation | COVERED |
| AC-3: [criterion text] | production/qa/evidence/[slug]/01-shop-open.png | COVERED |
| AC-4: [criterion text] | — | UNTESTED |Apply these escalation rules (skip entirely at
qa.level: minimal— no evidence is required, so untested criteria never escalate):- If >50% of criteria are UNTESTED: escalate to BLOCKING — test coverage is insufficient to confirm the story is actually done. The verdict in Phase 6 cannot be COMPLETE until coverage improves.
- If some (≤50%) criteria are UNTESTED: remain ADVISORY — does not block completion, but must appear in Completion Notes.
- If all criteria are COVERED: no action needed beyond including the table in the report.
- For any ADVISORY untested criteria, add to the Completion Notes in Phase 7:
"Untested criteria: [AC-N list]. Recommend adding tests in a follow-up story."
Test Evidence Requirement
First apply qa.level (resolved in Phase 1). At minimal, no test
evidence is required — skip the Logic, Integration and Config/Data checks below.
But still run the Visual/Feel and UI check and the Run result: check: the look
is not waived at minimal, only the tests are. At standard, require evidence
for the story's own type. At full, require evidence for every story type. The
testing.strict resolution below applies to every check that runs.
Based on the Story Type extracted in Phase 2, check for required evidence.
Resolve the gate level for this story's type. A gate level is either
BLOCKING (a gap prevents the COMPLETE verdict in Phase 6) or ADVISORY (a gap is
noted in the Completion Notes but does not block). Resolve it from the
testing.strict block already resolved in the resolved-config block at the top of this skill — not by reading
project.yaml yourself:
- Map the Story Type to a
testing.strictkey — Logic→logic, Integration→integration, Visual/Feel→visual, UI→ui, Config/Data→config. Taketesting.strict.<key>from that resolved block. If its value istrue(case-insensitive) → BLOCKING; iffalse→ ADVISORY;unset→ fall through. - Else read
testing.strictas a plain boolean (legacy single-value form). If its value istrue→ BLOCKING orfalse→ ADVISORY, it applies to every type. - Else use the default in the table below.
Use that resolved block, never
project.yamldirectly.testing.strict.*is on the/settings --localwhitelist, so a developer can settesting.strict.logic=falseinproject.local.yamlfor fast WIP commits —effects-map.mdspecifies exactly this ("stricter dev's local/story-doneblocks earlier"). Readingproject.yamlalone silently ignores that file: the setting is accepted, displayed by/settings, and has no effect. Theresolve_configblock at the top of this skill already merges local over base.
Only true and false (case-insensitive) are recognized at steps 1–2. A key
that is present but holds any other value — maybe, 1, yes, etc. — is
treated as unset: continue to the next step, and surface the unrecognized value
to the user.
| Story Type | Required Evidence | Default Gate Level |
| Logic | Automated unit test in tests/unit/[system]/ — must exist and pass (this skill verifies existence; see the note below Phase 3) | BLOCKING |
| Integration | Integration test in tests/integration/[system]/ OR playtest doc | BLOCKING |
| Visual/Feel | Retained screenshot + sign-off in production/qa/evidence/ | BLOCKING |
| UI | Retained screenshot of each screen touched, in production/qa/evidence/ | BLOCKING |
| Config/Data | Smoke check pass report in production/qa/smoke-*.md | ADVISORY |
The Default Gate Level column applies when testing.strict is unset (the
common case). When testing.strict is configured, the resolved value from
steps 1–2 overrides it. Visual/Feel and UI default to BLOCKING because for a
game the rendered result is the product; set testing.strict.visual or
testing.strict.ui to false for an advisory gate.
Exception —
/smoke-check. The ADVISORY default for Config/Data above governs per-story evidence gates, which is what this skill checks./smoke-checkis a build-health gate, not a per-story evidence gate, so its own unset default fortesting.strict.configis BLOCKING — see.claude/skills/smoke-check/SKILL.md§ "Resolve the gate enforcement level". The divergence is intentional; do not "fix" either side to match the other.
This phase checks that evidence EXISTS. It does not run anything. The
Default Gate Leveltable above, and.claude/docs/coding-standards.md, both say a Logic story's test "must exist and pass". The checks below establish only the first half — every one of them is aGlobor aGrep. A unit test that exists and fails, or that contains no assertions, satisfies them.Say which half you verified when you report. "Test file present at
<path>" is the honest claim; "tests pass" is not one this phase can make. Pass/fail is established by/gate-check(runs the suite at a phase gate) and/smoke-check(runs it before QA hand-off), both of which do execute.Unlike
/regression-suiteand/launch-checklist, which stop at existence because theirallowed-toolshas noBash, this skill HASBash— the limit here is the instruction, not the grant. Running the story's own test before closing it is a live option; it is not enabled because it needs a configured runner and a decision about what a missing runner should mean.
For Logic stories: first read the story's Test Evidence section to extract the
exact required file path. Use Glob to check that exact path. If the exact path is not
found, also search tests/unit/[system]/ broadly (the file may have been placed at a
slightly different location). If no test file is found at either location:
- Flag at the resolved gate level: "Logic story has no unit test file. Story
requires it at
[exact-path-from-Test-Evidence-section]. Create and run the test before marking this story Complete."
For Integration stories: read the story's Test Evidence section for the exact
required path. Use Glob to check that exact path first, then search
tests/integration/[system]/ broadly, then check production/session-logs/ for a
playtest record referencing this story.
If none found: flag at the resolved gate level (same rule as Logic).
For Visual/Feel and UI stories: glob production/qa/evidence/ for a
retained screenshot for this story (*.png, *.jpg, *.gif) and for an
evidence doc referencing it. What closes the story follows the evidence table
in .claude/docs/coding-standards.md, the same at every qa.level:
- A UI story is satisfied by the retained screenshot of each screen it touched. No evidence doc or sign-off is required; note one if it exists.
- A Visual/Feel story also needs the sign-off: the evidence doc
(
production/qa/evidence/[story-slug]-evidence.md, from the test-evidence template) with every sign-off row[x] Approved.
Flag at the resolved gate level:
- No screenshot: "No visual evidence found. Capture a screenshot of each screen or effect this story touched and save it under
production/qa/evidence/before final closure." For Visual/Feel add: "then record sign-off inproduction/qa/evidence/[story-slug]-evidence.mdusing the test-evidence template." - An evidence doc but no screenshot retained beside it: "Evidence doc found at
[path]but no screenshot is retained. A described check is an assertion, not evidence — capture the screen and save the image underproduction/qa/evidence/before final closure." - Visual/Feel with a screenshot but no evidence doc: "Screenshot found but no sign-off is recorded. Create
production/qa/evidence/[story-slug]-evidence.mdusing the test-evidence template and obtain sign-off before final closure." - Visual/Feel sign-off rows still unchecked — grep the doc for
| .* | .* | .* | \[ \] Approved: "Evidence file found at[path]but [N] sign-off(s) are still pending (shown as[ ] Approvedin the sign-off table). Obtain required sign-offs before final closure. Note: for solo developers, all roles may be signed off by the same person."
Otherwise note "Retained screenshot found[, sign-offs complete] — gate satisfied."
The retained image is the Run result: OBSERVED from /dev-story Phase 6
step 4 (.claude/docs/run-and-observe.md); its absence means the run was
NOT VERIFIED or never happened, and the flag above is the consequence. The
run is not waived at qa.level: minimal.
For every other story type, read the Run result: line from the
/dev-story checkpoint in production/session-state/active.md — only when its
Current task names this story; a later /dev-story overwrites it — or from
the story's ## Completion Notes. OBSERVED with a retained path: note
it. N/A — <reason>: accept only if the reason names why nothing is
observable — "it's a Logic story" is not a reason. NOT VERIFIED — <reason>
on a story whose acceptance criteria name anything on screen: flag at the
resolved gate level for the story's type. No Run result: line at all: flag
as ADVISORY — "the implementation summary carries no run result; confirm the
build was launched and looked at before closure." The exception: when the
acceptance criteria name something on screen and no retained image for this
story is under production/qa/evidence/, nothing observed the story — a user's
Yes — passes to such a criterion is an assertion, not the retained observation
.claude/docs/run-and-observe.md requires — so flag it at the resolved gate
level for the story's type, as for NOT VERIFIED.
For Config/Data stories: check for any production/qa/smoke-*.md file.
If none: flag at the resolved gate level — "No smoke check report found. Run /smoke-check."
If no Story Type is set: flag as ADVISORY —
"Story Type not declared. Add Type: [Logic|Integration|Visual/Feel|UI|Config/Data]
to the story header to enable test evidence gate enforcement in future stories."
Any BLOCKING test evidence gap prevents the COMPLETE verdict in Phase 6.
Phase 4: Check for Deviations
Compare the implementation against the design documents.
Workflow tier adjustment (resolved in Phase 1, per the story's system). Checks 1 (GDD rules) and 3 (ADR constraints) below are the
fullbaseline:
full— run both: full GDD traceability against the current TR text + the ADR constraints check.standard— run the GDD rules check against the 5 required sections; run the ADR constraints check only where a critical ADR governs the story.minimal— acceptance-criteria check only: skip checks 1 and 3 (no GDD/ADR traceability expected). Checks 2 (manifest), 4 (hardcoded values), and 5 (scope) still run as written.This adjustment governs only the Phase 4 deviation checks. The test-evidence gates (Phase 3 traceability, Phase 4b QA coverage) are governed by
qa.levelandtesting.strict, notworkflow— they run independently of the tier here.
Run these checks automatically:
- GDD rules check: Using the current requirement text from
tr-registry.yaml(looked up by the story's TR-ID), check that the implementation reflects what the GDD actually requires now — not what it required when the story was written.Grepthe implemented files for key function names, data structures, or class names mentioned in the current GDD section. - Manifest version staleness check: Compare the
Manifest Version:date embedded in the story header against theManifest Version:date in the currentdocs/architecture/control-manifest.mdheader.- If they match → pass silently.
- If the story's version is older → flag as ADVISORY:
ADVISORY: Story was written against manifest v[story-date]; current manifest is v[current-date]. New rules may apply. Run /story-readiness to check. - If control-manifest.md does not exist → skip this check.
- ADR constraints check: Use the ADR's
## Decisionsection already loaded in Phase 2 — do not read the ADR file again. Check for forbidden patterns fromdocs/architecture/control-manifest.md(if it exists).Grepfor patterns explicitly forbidden in the ADR. - Hardcoded values check:
Grepthe implemented files for numeric literals in gameplay logic that should be in data files. - Scope check: Did the implementation touch files outside the story's stated scope? (files not listed in "files to create/modify")
For each deviation found, categorize:
- BLOCKING — implementation contradicts the GDD or ADR (must fix before marking complete)
- ADVISORY — implementation drifts slightly from spec but is functionally equivalent (document, user decides)
- OUT OF SCOPE — additional files were touched beyond the story's stated boundary (flag for awareness — may be valid or scope creep)
Phase 4b: QA Coverage Gate
Skip this phase entirely at qa.level: minimal (resolved in Phase 1) — no
test evidence is required, so there is no coverage to review. Note: "QL-TEST-COVERAGE
skipped — qa.level minimal." Proceed to Phase 5.
Review mode check — apply before spawning QL-TEST-COVERAGE:
solo→ skip. Note: "QL-TEST-COVERAGE skipped — Solo mode." Proceed to Phase 5.lean→ skip (not a PHASE-GATE). Note: "QL-TEST-COVERAGE skipped — Lean mode." Proceed to Phase 5.full→ spawn as normal.
After completing the deviation checks in Phase 4, spawn qa-lead via Agent using gate QL-TEST-COVERAGE (.claude/docs/director-gates/ql-test-coverage.md).
Pass:
- The story file path and story type
- Test file paths found during Phase 3 (exact paths, or "none found")
- The story's
## QA Test Casessection (the pre-written test specs from story creation) - The story's
## Acceptance Criterialist - The GDD acceptance criteria and Edge Cases for the story's system, from the GDD
section read in Phase 2 — or "no GDD for this system" when there is none (at
workflow: minimalthe story's own criteria are the spec); an absent GDD is information for the gate, not a missing input
The qa-lead reviews whether the tests actually cover what was specified — not just whether files exist.
Apply the verdict:
- ADEQUATE → proceed to Phase 5
- GAPS → flag as ADVISORY: "QA lead identified coverage gaps: [list]. Story can complete but gaps should be addressed in a follow-up story."
- INADEQUATE → flag as BLOCKING: "QA lead: critical logic is untested. Verdict cannot be COMPLETE until coverage improves. Specific gaps: [list]."
- NOT ASSESSED [missing input] → no judgement was made; never read it as ADEQUATE. Name the missing input — supply it and re-run the gate, or carry it to Phase 6, where it keeps the verdict at best NOT ASSESSED.
Skip this phase for Config/Data stories (no code tests required).
Phase 5: Lead Programmer Code Review Gate
Review mode check — apply before spawning LP-CODE-REVIEW:
solo→ skip. Note: "LP-CODE-REVIEW skipped — Solo mode." Proceed to Phase 6 (completion report).lean→ useAskUserQuestionbefore proceeding:- Prompt: "Code review is skipped in lean mode. Did you run
/code-reviewon the implemented files?" - Options:
Yes — /code-review passed or was approved with suggestionsNo — skipping code review for this storyNo — I'll run /code-review before the sprint close-out
- Record the answer in the completion notes (Phase 7). All three options proceed to Phase 6.
- Prompt: "Code review is skipped in lean mode. Did you run
full→ spawn as normal.
Spawn lead-programmer via Agent using gate LP-CODE-REVIEW (.claude/docs/director-gates/lp-code-review.md).
Pass: implementation file paths, story file path, relevant GDD section, governing ADR.
Present the verdict to the user. If CONCERNS, surface them via AskUserQuestion:
- Options:
Revise flagged issues/Accept and proceed/Discuss furtherIf REJECT, do not proceed to Phase 6 verdict until the issues are resolved. If NOT ASSESSED, name the input the gate said was missing and never treat it as APPROVE: supply it and re-run the gate, or carry it to Phase 6, where it keeps the verdict at best NOT ASSESSED.
If the story has no implementation files yet (verdict is being run before coding is done), skip this phase and note: "LP-CODE-REVIEW skipped — no implementation files found. Run after implementation is complete."
Phase 6: Present the Completion Report
Before updating any files, present the full report:
## Story Done: [Story Name]
**Story**: [file path]
**Date**: [today]
### Acceptance Criteria: [X/Y passing]
- [x] [Criterion 1] — auto-verified (test file present)
- [x] [Criterion 2] — confirmed
- [ ] [Criterion 3] — FAILS: [reason]
- [?] [Criterion 4] — DEFERRED: requires playtest
### Test-Criterion Traceability
| Criterion | Test | Status |
|-----------|------|--------|
| AC-1: [text] | [test file::test name] | COVERED |
| AC-2: [text] | Manual confirmation | COVERED |
| AC-3: [text] | — | UNTESTED |
### Test Evidence
**Story Type**: [Logic | Integration | Visual/Feel | UI | Config/Data | Not declared]
**Required evidence**: [unit test file | integration test or playtest | screenshot + sign-off | screenshot of each screen touched | smoke check pass]
**Evidence found**: [YES — `[path]` | NO — BLOCKING | NO — ADVISORY]
### Deviations
[NONE] OR:
- BLOCKING: [description] — [GDD/ADR reference]
- ADVISORY: [description] — user accepted / flagged for tech debt
### Scope
[All changes within stated scope] OR:
- Extra files touched: [list] — [note whether valid or scope creep]
### Verdict: COMPLETE / COMPLETE WITH NOTES / NOT ASSESSED / BLOCKEDVerdict definitions:
- COMPLETE: all criteria pass, no blocking deviations
- COMPLETE WITH NOTES: every criterion passes or is
DEFERRED(Phase 3 — evaluable, awaiting a playtest), with advisory deviations or deferred criteria documented — list each DEFERRED criterion so it is not lost - NOT ASSESSED: one or more acceptance criteria could not be evaluated at all — name which, and why
- BLOCKED: failing criteria or blocking deviations must be resolved first
NOT ASSESSED — the story nobody could verify. Rank: it outranks COMPLETE
and COMPLETE WITH NOTES (a review that could not evaluate a criterion has not
shown the criterion is met) and ranks below BLOCKED (a criterion known to
fail is more actionable than one nobody could check, and demoting it would bury
it). It is not a gentler BLOCKED: "this acceptance criterion fails" and "I could
not tell whether it passes" send the reader to different fixes.
Verdict precedence — first matching rule wins, evaluated in this order: BLOCKED, then NOT ASSESSED, then COMPLETE WITH NOTES, then COMPLETE. A run with both a failing criterion and an unassessable one is BLOCKED. Stating the order mechanically, rather than leaving it to be inferred from the rank sentence, is what keeps two reviewers from grading the same story differently.
Emit it when any of:
- An acceptance criterion cannot be evaluated at all — it names no observable
outcome, so no evidence could settle it either way.
Not the same as Phase 3's
DEFERRED. A criterion that is evaluable but needs a playtest isDEFERRED — requires playtest session, it does not block, and Phase 3 keeps ownership of it. This trigger is for a criterion no session could ever settle as written. If Phase 3 already marked it DEFERRED, that classification stands and this trigger does not fire. - A criterion the user answered
Not tested yet(Phase 3) — it could be checked, but nobody has. Name it and what would settle it: launch the build, check it, then re-run/story-done. - QL-TEST-COVERAGE or LP-CODE-REVIEW returned NOT ASSESSED and the input it named was not supplied.
- The test evidence is present but unreadable or unclassifiable — corrupt,
empty, or of a type that cannot be determined.
Absent evidence is Phase 3's, not this trigger's. Phase 3 resolves a missing file through
testing.strict: BLOCKING types produce BLOCKED, ADVISORY types produce COMPLETE WITH NOTES. Both outrank or are already decided, so re-routing "absent" here would silently override an explicit advisory ruling. Unreadable is the genuinely unassessable case, and it is the only one this trigger claims. /test-evidence-reviewreturnedNOT ASSESSEDfor this story — applicable only when that skill was actually run against it, which this skill does not do itself. It propagates: that skill's whole point is that "could not check" is not "checked and fine", and collapsing its unknown into a COMPLETE here would undo the distinction one skill downstream.coding-standards.mdmarks Logic and Integration evidence BLOCKING, so this is the path where an unverifiable story would otherwise acquire a verdict saying somebody verified it.- A deviation's severity cannot be determined because the GDD or ADR it would be judged against is missing.
A NOT ASSESSED verdict takes the same Phase 7 path as BLOCKED: do not
automatically proceed, list what could not be checked and what would make it
checkable. Closing anyway remains the user's explicit call, and stays gated by
Phase 7's scope_changes always-ask rule.
If the verdict is BLOCKED: do not automatically proceed to Phase 7. List
what must be fixed and offer to help fix the blocking items. This is the
default path, not an absolute stop — the user may still explicitly ask to
close the story anyway despite the blockers. That request is what routes to
Phase 7's menu below, and Phase 7's own scope_changes always-ask rule is
exactly what stands between that request and a silent close in autonomous
mode. Do not treat "do not automatically proceed" as "Phase 7 is now
unreachable" — it is reachable, on request, and gated when reached.
Phase 7: Update Story Status
Reached one of two ways: normally, immediately after a COMPLETE or COMPLETE-WITH-NOTES verdict in Phase 6; or, after a BLOCKED or NOT ASSESSED verdict, only if the user explicitly asks to close the story despite the blockers (Phase 6 does not advance here on its own in either case).
Automation note: This is the story-completion gate. Closing a story whose
verdict is BLOCKED (failing acceptance criteria) or NOT ASSESSED (criteria
nobody could evaluate) — the "Accept deviations as-is and close anyway" option —
is a scope_changes decision. Call
is_always_ask_category scope_changes; when it returns 0 (the default), this
gate prompts via AskUserQuestion regardless of modes.automation —
autonomous mode must NOT silently close a BLOCKED story, even when the user's
own request is what got you here. For a COMPLETE or COMPLETE-WITH-NOTES
verdict, autonomous mode may pick "Close the story (Recommended)" and record
it via log_decision.
Use AskUserQuestion before writing anything:
- Prompt: "Verification complete. How do you want to proceed?"
- Options:
Close the story — update file, mark Complete, log notes (Recommended)Close and log advisory deviations as tech debt in docs/tech-debt-register.mdThere are issues I want to fix first — don't close yetAccept deviations as-is and close anyway
If "Close", "Close and log tech debt", or "Accept deviations": edit the story file.
If "Close and log tech debt": after updating the story file, also append the advisory deviations to docs/tech-debt-register.md (create the file if it does not exist).
If "Fix first": stop here and list what the user flagged. Do not write any files.
- Update the status field:
Status: Complete - Update the
Last Updated:field in the story header to today's date (format:YYYY-MM-DD). If the field does not exist, add it after theStatus:line. - Add a
## Completion Notessection at the bottom:
## Completion Notes
**Completed**: [date]
**Criteria**: [X/Y passing] ([any deferred items listed])
**Deviations**: [None] or [list of advisory deviations]
**Test Evidence**: [Logic: test file at path | Visual/Feel: evidence doc at path | None required (Config/Data)]
**Code Review**: [Pending / Complete / Skipped]- If the user chose "Close and log tech debt": append each advisory deviation to
docs/tech-debt-register.mdas one row of/tech-debt's register table — the format under "Debt Register Format" in.claude/skills/tech-debt/SKILL.md— so/tech-debt reportcan date it from itsAddedcolumn:
Category is one of| TD-[next free NNN] | [category] | [deviation description] — from [story file path] | [files] | [S/M/L/XL] | [Low/Med/High/Critical] | — | Open | [YYYY-MM-DD] | Backlog |/tech-debt's six (Architecture, Code Quality, Test, Documentation, Dependency, Performance); Effort and Impact are your estimate from the deviation; Priority stays—until/tech-debt prioritizescores it;Addedis today. If the file does not exist, create it with that format's heading,Last updated:andTotal items:lines and table header; if it exists, update those two lines (and add the table header first if the file has none yet). - Update
production/sprint-status.yaml(if it exists):- Find the entry matching this story's file path or ID
- Set
status: doneandcompleted: [today's date] - Update the top-level
updatedfield - This is a silent update — no extra approval needed (already approved in step above)
- Suggest a git commit: Output a ready-to-use commit command covering the implementation files from the dev-story summary and the updated story file:
Suggested commit:
git add [code-root and test-root files changed during implementation] [story-file-path]
git commit -m "feat: [story title] ([TR-ID])"The validate-commit.sh hook will verify design doc references and check for hardcoded values automatically.
Session State Update
After updating the story file, silently update the checkpoint in
production/session-state/active.md — overwrite the <!-- CHECKPOINT --> …
<!-- /CHECKPOINT --> block, never append (schema:
.claude/docs/templates/session-state.md). session-start.sh shows exactly
that block when the next session opens. Fill Next step from Phase 8, so it
names the same next story the user is shown:
<!-- CHECKPOINT -->
**Updated:** [date]
**Branch:** `[current git branch]`
**Current task:** /story-done — [story file path] closed: [COMPLETE / COMPLETE WITH NOTES / NOT ASSESSED / BLOCKED]
**Next step:** [/story-done [next story path] for an In Review story, else /dev-story [next story path] — or "build order done: play the build" — or the blocker to clear when every unfinished story is blocked — or the sprint's next step]
**Blocked on:** [nothing, or what blocked this verdict]
**Files in progress:** none
**Open questions:** [tech debt logged: N items, or none]
<!-- /CHECKPOINT -->If active.md does not exist, create it from the template. If it exists with no
markers (a file from before the schema), insert the template's STATUS and
CHECKPOINT blocks at the top and leave the rest untouched.
Confirm in conversation: "Session state updated."
Phase 8: Surface the Next Story
After completion, help the developer keep momentum. Which branch applies depends on whether there is a sprint at all.
No sprint plan — the minimal path
At workflow: minimal, or whenever production/sprints/ holds no sprint
plan, there is no sprint to close out. The brief's build order is the plan and
the story files carry it:
- Run
bash .claude/scripts/story-status.sh, from the project root — after Phase 7's story-file write, so this story's new status is in it. It prints every unfinished story underproduction/epics/, whatever Status form its file uses, already in the route's order —IN_REVIEW, thenIN_PROGRESS, thenTODO(aReadyorNot Startedstory) in build (file-name) order — thenBLOCKED,OTHER,NO_STATUSand theCOMPLETEcount. It is the list/helpand/sprint-statusread, so the three name the same next story; do not re-read or re-rank the story files. The first
In Reviewstory is next (recommend/story-done [path]for it — its work is written, and closing it first keeps finished work from piling up); else the firstIn Progressone; else the firstReadyorNot Startedone — the story on the script's firstIN_REVIEW,IN_PROGRESSorTODOline. Name anyBlockedstory with its blocker and pass over it.### Next Up **[Story NNN: title]** — [1-line description] Run `/story-done [path]` to close it (In Review) — else `/dev-story [path]` to implement it.At
minimalrecommend/dev-storydirectly (or/story-donefor an In Review story) —/story-readinessis not on the minimal path (engine → brief → stories → code), and it checks fields the minimal story template does not carry. With no sprint plan at a higher tier, add the/story-readiness [path]line from the sprint branch below.- No unfinished story — only
COMPLETE N of N→ every story is built — atminimal, the brief's build order is done. Say so, and offer three ways on:- play the build and note what feels wrong
- add the next stories from the brief with
/create-stories - if the game has outgrown a one-page brief,
/settingsto raisemodes.rigor
- No
IN_REVIEW,IN_PROGRESSorTODOline, butBLOCKED,OTHERorNO_STATUSlines remain — every unfinished story isBlocked,Draft, or has no status line. There is no Next Up, and the build order is not done — never say it is. Name each such story with its blocker (orDraft/no status), and suggest clearing the blocker first. For a Draft or unstatused story: atminimal, finish it and set its Status toReady; at a higher tier,/story-readiness [path]shows what it still needs.
Never print the Sprint Close-Out Sequence on this branch (/smoke-check
sprint, /team-qa sprint, /retrospective, /gate-check, /sprint-plan new)
— it closes a sprint, and there is none. Each of those still runs if the user
asks for it; do not present them as required.
With a sprint plan
- Read the current sprint plan from
production/sprints/. - Find stories that are:
- Status: READY or NOT STARTED
- Not blocked by other incomplete stories
- In the Must Have or Should Have tier
Present:
### Next Up
The following stories are ready to pick up:
1. [Story name] — [1-line description] — Est: [X hrs]
2. [Story name] — [1-line description] — Est: [X hrs]
Run `/story-readiness [path]` to confirm a story is implementation-ready
before starting.If no more Must Have stories remain in this sprint (all are Complete or Blocked):
### Sprint Close-Out Sequence
All Must Have stories are complete. QA sign-off is required before advancing.
Run these in order:
1. `/smoke-check sprint` — verify the critical path still works end-to-end
2. `/team-qa sprint` — full QA cycle: test case execution, bug triage, sign-off report
3. `/retrospective` — capture what went well, what didn't, and action items for the next sprint
4. `/gate-check` — advance to the next phase once QA approves (only if advancing a phase)
5. `/sprint-plan new` — plan the next sprint, incorporating velocity data and retrospective action items
Do not run `/gate-check` until `/team-qa` returns APPROVED or APPROVED WITH CONDITIONS.If there are Should Have stories still unstarted, surface them alongside the close-out sequence so the user can choose: close the sprint now, or pull in more work first.
If no more stories are ready but Must Have stories are still In Progress (not Complete): "No more stories ready to start — [N] Must Have stories still in progress. Continue implementing those before sprint close-out."
Collaborative Protocol
In collaborative mode (the default). For guided and autonomous modes,
see .claude/docs/automation-modes.md — the rules below describe collaborative
behavior. The BLOCKED-override close (Phase 7) always prompts regardless of mode
(it's a scope_changes always-ask decision).
- Never mark a story complete without user approval — Phase 7 requires an explicit "yes" before any file is edited.
- Never auto-fix failing criteria — report them and ask what to do.
- Deviations are facts, not judgments — present them neutrally; the user decides if they are acceptable.
- BLOCKED and NOT ASSESSED verdicts are advisory — the user can override and mark complete anyway; document the risk explicitly if they do. For NOT ASSESSED, the documented risk is that the criterion was never evaluated, not that it failed — record which criteria those were, so the gap is recoverable later rather than closed over.
- Use
AskUserQuestionfor the code review prompt and for batching manual criteria confirmations.
Recommended Next Steps
- At
minimal: run/dev-story [next-story-path](/story-donefor an In Review one); when every story is Complete, play the build, then/create-storiesfor more or/settingsto raisemodes.rigor - With a sprint plan: run
/story-readiness [next-story-path]to validate the next story before starting implementation - If a sprint plan exists and all its Must Have stories are complete: run
/smoke-check sprint→/team-qa sprint→/gate-check - If tech debt was logged: track it via
/tech-debtto keep the register current
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.

