mirror of
https://github.com/Donchitos/Claude-Code-Game-Studios.git
synced 2026-10-16 01:37:05 +00:00
Fix release for 1.1.1: the minimal path end to end, engine commands that run on Godot, Unity and Unreal, hook warnings you can see, and verdicts that say when they could not check. Details in CHANGELOG.md; upgrade steps in UPGRADING.md (v1.1.1 → v1.1.2). Fixes #67 Fixes #131 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WuJn2FdynEybfL5KC697nJ
12 KiB
12 KiB
/dev-story — Handoff Contract
Role in Pipeline
Bridges planning and code by loading the full context for a single story (story file, TR registry, ADR, control manifest, engine prefs), routing to the correct programmer agent, implementing source code and tests, and leaving the story ready for /story-done (with /code-review first at standard/full).
Inputs Required
Files That Must Exist
| File | Required Fields / Sections | Read-Only? |
|---|---|---|
production/epics/**/*.md (the story file) |
Status: Ready, TR-ID, Governing ADR, Manifest Version, ## Acceptance Criteria, ## Test Evidence, ## Dependencies, ## Out of Scope |
Partially mutable. This skill sets Status: to In Progress and updates Last Updated: before spawning any agent (Phase 2) — at minimal the story file is the only record of progress, since sprint-status.yaml is absent. On an ADR version mismatch answered [A] it sets ADR Version to the ADR's current version and refreshes **ADR Decision Summary** and ## Implementation Notes; on a manifest mismatch answered [A]/[B] it sets Manifest Version: (and on [B] adds Manifest-Note:). Everything else in the story file is read-only to this skill |
docs/architecture/tr-registry.yaml |
Entry matching the story's TR-ID with current requirement text |
Yes |
docs/architecture/adr-NNNN-[slug].md (referenced ADR) |
## Status, ## Last Verified (else ## Date) — grepped; ## Decision (with its ### Implementation Guidelines), ## Engine Compatibility, ## ADR Dependencies — read only on a version mismatch answered [A] |
Yes — the ADR is never edited; a mismatch updates the story's stamp, not the ADR |
docs/architecture/control-manifest.md |
Manifest Version: header, layer rules (required patterns, forbidden patterns, performance guardrails) |
Yes |
project.yaml |
engine.name, engine.version, naming.*, performance.* — the primary source for each of these fields |
Yes |
.claude/docs/technical-preferences.md |
Legacy fallback for any field above that is absent or empty in project.yaml; sole source for forbidden patterns and allowed libraries (deliberately never migrated), plus the Engine Specialists section |
Yes — required only for fields absent from project.yaml, and always for forbidden patterns |
docs/engine-reference/[engine]/VERSION.md |
Engine version, LLM knowledge cutoff, post-cutoff risk levels | Yes |
production/session-state/active.md |
(read to find active story when no argument given; created if absent) | No |
Tier. SKILL.md Phase 2 decides by
workflow: the TR registry is required atfull, optional atstandardand not expected atminimal; a missing control manifest warns atfull/standardand is not expected atminimal; an ADR blocks only when the story references one that is missing orProposed.
Preconditions
- The target story must have
Status: Ready(validated by/story-readinessatstandard/full; atminimal,/create-storieswrites storiesReadyand/story-readinessis not on the path) - The ADR referenced in the story must have
Status: Accepted— ifStatus: Proposed, do not implement; surface this as a blocker and direct user to/architecture-decision accept [ADR-id];DeprecatedorSupersededalso blocks, naming the successor. A story whose ADR field readsN/Areferences none, at every tier - All
## Dependenciesstories listed in the story file must already haveStatus: Complete(orStatus: Done) - An engine must be configured —
engine.nameinproject.yaml, or as legacy fallback an**Engine**:value in.claude/docs/technical-preferences.mdthat is not[TO BE CONFIGURED] - At
full,docs/architecture/tr-registry.yamlmust contain the story's TR-ID (optional atstandard, not expected atminimal) docs/architecture/control-manifest.mdsupplies the layer rules when present; a missing one warns and never stops the skill
Outputs Produced
Files Written
| File | Guaranteed Fields / Sections | Notes |
|---|---|---|
<code root>/[system]/[file].[ext] |
Doc-commented public APIs; no hardcoded gameplay values; follows ADR Implementation Guidelines and control-manifest required patterns | created or modified by sub-agent; code root resolved per .claude/docs/code-root-resolution.md |
tests/unit/[system]/[story-slug]_test.[ext] OR tests/integration/[system]/[story-slug]_test.[ext] |
One test function per acceptance criterion (Logic/Integration stories only); naming per engine (.claude/rules/test-standards.md); no random seeds; no external I/O |
created by sub-agent; path matches ## Test Evidence in story |
production/session-state/active.md |
<!-- CHECKPOINT --> block: current task (story path), next step, blocker, files in progress, run result |
block overwritten, never appended (file created from .claude/docs/templates/session-state.md if absent) |
Output Guarantees
- All source files follow the naming conventions in
project.yaml(naming.*), falling back to.claude/docs/technical-preferences.mdfor any convention absent there - Test file path matches exactly the path declared in the story's
## Test Evidencesection - Every acceptance criterion is mapped to a test function (Logic/Integration), an
OBSERVEDretained screenshot (the look half of Visual/Feel and UI), or flaggedDEFERRED(the feel half only — timing, weight, responsiveness) in the implementation summary - No files are written outside the story's
## Out of Scopeboundary without surfacing the conflict to the user first - Session state records files changed and the next recommended invocation (
/story-done;/code-reviewfirst atstandard/full) — on INCOMPLETE,/dev-storyto resume; on BLOCKED, the unblocking action - The implementation summary states a verification result — what was run against the written code (Godot:
.claude/scripts/godot-parse-check.gdover the changed scripts; Unity:commands.smoke; Unreal: the editor-target build) and its exit code. When the engine binary is unavailable this isNOT VERIFIED — <reason>, never an inference that the code is fine because it reads correctly - The implementation summary states a run result —
OBSERVED — <what was on screen>with a retained screenshot underproduction/qa/evidence/[story-slug]/,NOT VERIFIED — <reason>, orN/A — <reason>(only for a story with genuinely nothing observable).NOT VERIFIEDis a blocker at the default gate level for Visual/Feel and UI stories. The run is not waived atqa.level: minimal— tests are, the look is not. Procedure:.claude/docs/run-and-observe.md - At
qa.level: minimalno test file is written, and for a Logic or Integration story the summary says so explicitly (Test evidence: waived at qa.level: minimal); UI and Visual/Feel stories get no waiver line, because their screenshot still applies. A waived run and a run where tests were forgotten must not produce the same artifact NOT ASSESSEDis an accepted inbound value of the story'sRiskfield (/create-storiesemits it whenVERSION.mdassigns no level). This skill treats it as HIGH for the engine-specialist spawn decision- Completion is not assumed. If the programmer agent stopped early or its output fails to parse, the story is reported INCOMPLETE with the specific breakage named, and
Implementation Completeis not emitted
Immutability Rules
- READS but does NOT modify:
project.yaml,docs/architecture/tr-registry.yaml,docs/architecture/adr-NNNN-[slug].md, all GDD files indesign/gdd/,docs/architecture/control-manifest.md,.claude/docs/technical-preferences.md(legacy fallback),docs/engine-reference/[engine]/VERSION.md - MODIFIES, via sub-agent:
<code root>/**(new/updated source files; code root resolved per.claude/docs/code-root-resolution.md) and the engine's test root (the new test file;tests/on Godot) - MODIFIES, itself, each after an ask that names the file (in
collaborativemode;.claude/docs/automation-modes.mdgoverns the others): the story file'sStatus:,Last Updated:,ADR Version,**ADR Decision Summary**,## Implementation Notes,Manifest Version:andManifest-Note:(see the story row above); the story's entry inproduction/sprint-status.yaml(status: in-progress, top-levelupdated); a dependency story'sStatus:(dependency option[C]only); a Config/Data story's data file; on Unity,Assets/Scripts/ScreenshotOnArg.cs, written verbatim from.claude/docs/run-and-observe.mdwhen the project has none - MODIFIES without an ask:
production/session-state/active.md— its<!-- CHECKPOINT -->block is overwritten, never appended - Sets the story file's own
Statusfield toIn Progressonly (Phase 2, before spawning any agent). Closing the story being implemented is the exclusive responsibility of/story-done; the one otherStatusthis skill writes is a dependency'sCompleteunder option[C](Hard Constraints)
Hard Constraints (Never Violate)
- Never marks a story
Status: DoneorStatus: Completeon its own judgement — that belongs to/story-done. The one exception is a dependency the user states is already done (Phase 2 dependency option[C]): itsStatusis set toCompleteonly after "May I update [dependency path] Status to Complete?" is approved - Never begins implementation without loading the full context package (story, TR-ID from registry, ADR Decision + Implementation Guidelines — as distilled in the story, or re-read from the ADR after a mismatch answered
[A]— control-manifest layer rules, engine prefs) - Never implements a story whose referenced ADR has
Status: Proposed,DeprecatedorSuperseded— surface as a blocker - Never writes a Logic or Integration story as complete without a test file at the path declared in
## Test Evidence - Never touches files listed in the story's
## Out of Scopesection without explicit user approval - Never deviates from the ADR's Implementation Guidelines silently — deviations must be flagged in the summary
- Never modifies ADR files or GDD files under any circumstances
- Source and test files are written by sub-agents via
Agent; this orchestrator writes none directly, except the verbatimScreenshotOnArg.cscapture script on Unity, after an ask
Downstream Skill Expects
Next skill: /story-done
- It will read: the story file (to check
Status,## Acceptance Criteria,## Test Evidencepath,Type:, referenced ADR, TR-ID) - It assumes: the test file declared in
## Test Evidencealready exists on disk (for Logic/Integration stories) - It assumes:
production/session-state/active.mdrecords the story path and files changed (used to locate the in-progress story when no argument is given) - It assumes: source files under the resolved code root are present and match the criterion descriptions, so Grep-based deviation checks can run
Known Fragile Points
- If the story's embedded
Manifest Versiondiffers from the currentdocs/architecture/control-manifest.mdheader date, rules may have changed since the story was authored — the skill surfaces this, but silently proceeding would produce code that violates newer manifest rules - The test file path in
## Test Evidencemust be exact:/story-doneuses that literal path for Glob checks; a typo here causes a false BLOCKING result downstream - If
docs/architecture/tr-registry.yamlhas a stalerequirementtext that diverges from the GDD, the implementation may satisfy the registry but fail the GDD — always treat the registry as authoritative per design, but flag if a visible discrepancy is noticed - Sub-agent task failures are non-fatal by design (partial reports are surfaced), but a blocked programmer sub-agent means no source files are written —
/story-donewill then fail its file-existence checks - Config/Data stories produce no test file;
/story-donemust seeType: Config/Datain the story header to classify the story correctly — otherwise it resolves the test-evidence gate for the wrong type (e.g. Logic, which is BLOCKING by default) and may flag a missing test