Story readiness

From striderZA/OpenCodeGameStudios · View interactive version

Story readiness is an AI agent skill from the GitHub repository striderZA/OpenCodeGameStudios. Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on

How to use this skill

Skill file

Story Readiness

This skill validates that a story file contains everything a developer needs

to begin implementation — no mid-sprint design interruptions, no guessing,

no ambiguous acceptance criteria. Run it before assigning a story.

This skill is read-only. It never edits story files. It reports findings

and asks whether the user wants help filling gaps.

Output: Verdict per story (READY / NEEDS WORK / BLOCKED) with a specific

gap list for each non-ready story.


Phase 0: Resolve Review Mode

Resolve the review mode once at startup (store for all gate spawns this run):

  1. If skill was called with --review [full|lean|solo] → use that value
  2. Else read production/review-mode.txt → use that value
  3. Else → default to lean

See docs/framework/director-gates.md for the full check pattern and mode definitions.


1. Parse Arguments

Scope: $ARGUMENTS[0] (blank = ask user via question)

validate that single story file.

recent file), extract every story path it references, validate each one.

validate every story file found.

If no argument is given, use question:

"All stories in production/epics/", "Stories for a specific epic"

Report the scope before proceeding: "Validating [N] story files."


2. Load Supporting Context

Before checking any stories, load reference documents once (not per-story):

(if the file does not exist, note it as missing once; do not re-flag per story)

Also extract the Manifest Version: date from the header block if the file exists.

validate TR-IDs in stories. If the file does not exist, note it once; TR-ID

checks will auto-pass for all stories (registry predates stories, so missing

registry means stories are from before TR tracking was introduced).

checked, read the ADR file and note its Status: field. Cache these so you

don't re-read the same ADR for every story.

Should Have priority for escalation decisions


3. Story Readiness Checklist

For each story file, evaluate every item below. A story is READY only if all

items pass or are explicitly marked N/A with a stated reason.

Design Completeness

and quotes or links a specific requirement, acceptance criterion, or rule from

that GDD — not just the GDD filename. A link to the document without tracing

to a specific requirement does not pass.

are understandable without opening the GDD. A developer should not need to

read a separate document to understand what DONE means.

observable condition — not "implement X" or "the system works correctly".

Bad example: "Implement the jump mechanic." Good example: "Jump reaches

max height of 5 units within 0.3 seconds when jump is held."

"feels responsive" or "looks good" are not testable without a defined

benchmark. These must be replaced with specific observable conditions or

playtest protocols.

Architecture Completeness

OR explicitly states "No ADR applies" with a brief reason.

A story with no ADR reference and no explicit N/A note fails this check.

Status: field using the cached ADR statuses loaded in Section 2.

and the story's implementation guidance could be wrong.

Fix: BLOCKED: ADR-NNNN is Proposed — wait for acceptance before implementing.

reference, look it up in the TR registry loaded in Section 2.

NEEDS WORK: the requirement was removed or replaced.

Fix: update the story to reference the current requirement ID or remove if no longer applicable.

(story may predate registry, or registry needs an /architecture-review run).

in its header AND docs/architecture/control-manifest.md exists:

apply. Fix: review changed manifest rules, update story if any forbidden/required

entries changed, then update the story's Manifest Version: to current.

does not exist.

is likely to touch, implementation notes or a verification requirement are

included. If the story clearly does not touch engine APIs (e.g., it is a

pure data/config change), "N/A — no engine API involved" is acceptable.

manifest are referenced, OR "N/A — manifest not yet created" is stated.

This item auto-passes if docs/architecture/control-manifest.md does not

exist yet (do not penalize stories written before the manifest was created).

Scope Clarity

points, or a t-shirt size). A story with no estimate cannot be planned.

it does NOT include, either in an explicit Out of Scope section or in

language that makes the boundary unambiguous. Without this, scope creep

during implementation is likely.

being DONE first, those story IDs are listed. If there are no dependencies,

"None" is explicitly stated (not just omitted).

Open Questions

flagged as "UNRESOLVED", "TBD", "TODO", "?", or equivalent markers in

any acceptance criterion, implementation note, or rule statement.

dependency, check if the file exists and does not have a DRAFT status. A

story that depends on a DRAFT or missing story is BLOCKED, not just

NEEDS WORK.

Asset References Check

(paths containing assets/, or file extensions .png, .jpg, .svg,

.wav, .ogg, .mp3, .glb, .gltf, .tres, .tscn, .res).

path(s). (The story references assets that have not been created yet.

Either remove the reference, create a placeholder, or mark it as an

explicit dependency on an asset creation story.)

[count] found."

found in story — skipping asset check." This item auto-passes.

Definition of Done

the story is either trivially small (should it be a story?) or under-specified.

part of the gameplay loop, rendering, or physics, a performance budget or

a "no performance impact expected — [reason]" note is present.

identifying the test category (Logic / Integration / Visual/Feel / UI / Config/Data).

Without this, test evidence requirements cannot be enforced at story close.

Fix: Add Type: [Logic|Integration|Visual/Feel|UI|Config/Data] to the story header.

includes a ## Test Evidence section stating where evidence will be stored

(test file path for Logic/Integration, or evidence doc path for Visual/Feel/UI).

Fix: Add ## Test Evidence with the expected evidence location for the story's type.


4. Verdict Assignment

Assign one of three verdicts per story:

READY — All checklist items pass or have explicit N/A justifications.

The story can be assigned immediately.

NEEDS WORK — One or more checklist items fail, but all dependency stories

exist and are not DRAFT. The story can be fixed before assignment.

BLOCKED — One or more dependency stories are missing or in DRAFT state,

OR a critical design question (flagged UNRESOLVED in a criterion or rule) has

no owner. The story cannot be assigned until the blocker is resolved. Note:

a story that is BLOCKED may also have NEEDS WORK items — list both.


5. Output Format

Single story output

## Story Readiness: [story title]
File: [path]
Verdict: [READY / NEEDS WORK / BLOCKED]

### Passing Checks (N/[total])
[list passing items briefly]

### Gaps
- [Checklist item]: [exact description of what is missing or wrong]
  Fix: [specific text needed to resolve this gap]

### Blockers (if BLOCKED)
- [What is blocking]: [story ID or design question that must resolve first]

Multiple story aggregate output

## Story Readiness Summary — [scope] — [date]

Ready:      [N] stories
Needs Work: [N] stories
Blocked:    [N] stories

### Ready Stories
- [story title] ([path])

### Needs Work
- [story title]: [primary gap — one line]
- [story title]: [primary gap — one line]

### Blocked Stories
- [story title]: Blocked by [story ID / design question]

---
[Full detail for each non-ready story follows, using the single-story format]

Sprint escalation

If the scope is sprint and any Must Have stories are NEEDS WORK or BLOCKED,

add a prominent warning at the top of the output:

WARNING: [N] Must Have stories are not implementation-ready.
[List them with their primary gap or blocker.]
Resolve these before the sprint begins or replan with `/sprint-plan update`.

6. Collaborative Protocol

This skill is read-only. It never proposes edits or asks to write files.

After reporting findings, offer:

"Would you like help filling in the gaps for any of these stories? I can

draft the missing sections for your approval."

If the user says yes for a specific story, draft only the missing sections

in conversation. Do not use Write or Edit tools — the user (or

/create-stories) handles writing.

Redirect rules:

Run /create-epics [layer] then /create-stories [epic-slug] to generate stories from the GDD and ADR."

no GDD reference. If the change is small (under ~4 hours), run

/quick-design [description] to create a Quick Design Spec, then reference

that spec in the story."

to have expanded in scope. Consider splitting it or escalating to the producer

before implementation begins."


7. Next-Story Handoff

After completing a single-story readiness check (not all or sprint scope):

  1. Read the current sprint file from production/sprints/ (most recent).
  2. Find stories that are:

If any are found, surface up to 3:

### Other Ready Stories in This Sprint

1. [Story name] — [1-line description] — Est: [X hrs]
2. [Story name] — [1-line description] — Est: [X hrs]

Run `/story-readiness [path]` to validate before starting.

If no sprint file exists or no other ready stories are found, skip this section silently.


Phase 8: Director Gate — Story Readiness Review

Apply the review mode resolved in Phase 0 before spawning QL-STORY-READY:

Spawn qa-lead via Task using gate QL-STORY-READY (docs/framework/director-gates.md).

Pass the following context:

Handle the verdict per standard rules in director-gates.md:

options: Update story with suggested gaps / Accept and proceed anyway / Discuss further.


Recommended Next Steps

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.