d-sorganization/upstreamdrift/generate-stories
Claude Code and agent skill by d-sorganization/upstreamdrift
- community
Checking that the SKILL.md file is still in the repository.
Translate a single Epic into clear, actionable User Stories with explicit acceptance criteria. Activate when an Epic is defined and work needs to be prepared for Delivery execution.
Install
npx vskill@latest install d-sorganization/upstreamdrift/generate-storiesSKILL.md
The same SKILL.md was published earlier as d-sorganization/upstreamdrift/generate-stories.
Generate Stories
Purpose / When to Activate
Activate when:
- An Epic is defined
- Adding or refining functionality
- Preparing work items for AI implementation
Stories are the contract between Discovery and Delivery. They must be the main execution unit in GAAI.
Process
- Read the Story template at
contexts/artefacts/stories/_template.story.md. Read the parent Epic file. Derive story IDs using the parent Epic ID prefix (e.g., Epic E01 produces stories E01S01, E01S02, etc.).
CRITICAL — Collision Guard (MUST execute before writing any file):
- a) Scan
contexts/backlog/active.backlog.yamlfor any existing entries with the same Epic ID prefix. If entries exist, determine the next available story number (e.g., if E52S01–E52S05 exist, start at E52S06). - b) For each story file to be created, check if the file already exists on disk at
contexts/artefacts/stories/{id}.story.md. If the file exists and itsidfrontmatter matches a different epic or title, STOP immediately — this means an ID collision between two epics. Surface the conflict to the human and do not proceed. - c) If the file exists and its content matches the current Epic (same epic ID, same intent), treat it as an update — read the existing content first and preserve any human edits.
- Rationale: On 2026-03-17, two concurrent sessions assigned E52 to different epics. The second session overwrote E52S01–S04 story files without checking, destroying the admin Worker stories. This guard prevents recurrence.
- Write from the user's perspective
- Focus on behavior, not UI or technology
- Keep stories small and independent
- Ensure every story is testable
- Avoid technical solutions in story body
- For each story, answer: "What should the user be able to do or experience?"
- Output using canonical Story template
- MANDATORY — Register in backlog. After writing all story files, add each story to
contexts/backlog/active.backlog.yamlwith:
id,epic,title(from story frontmatter)status: refined(if validated) orstatus: draft(if pending validation)priority(derived from Epic priority or explicit input)artefactpath pointing to the story filedependencies(from story frontmatterdepends_onor Epic execution order)notes(source context — e.g., Discovery session date, governing DEC)
A story that exists only as an artefact file but is not in the backlog is invisible to Delivery and will never be executed. This step is non-negotiable.
- MANDATORY — Commit & push to staging. After all story files are written and registered in the backlog, commit all generated/modified files and push to
staging:
- Stage: story files (
contexts/artefacts/stories/*.story.md), backlog (contexts/backlog/active.backlog.yaml), and any other modified GAAI context files (memory, decisions, etc.) - Commit message format:
chore(discovery): generate stories {id_range} for Epic {epic_id} - Example:
chore(discovery): generate stories E06S46–E06S50 for Epic E06 - Push to
stagingbranch - This ensures Delivery can pick up new stories immediately without a manual sync step.
Outputs
Template: contexts/artefacts/stories/_template.story.md
Produces files at contexts/artefacts/stories/{id}.story.md:
Quality Checks
- Written from the user's perspective
- Acceptance criteria are explicit and testable
- No technical implementation detail in story body
- Each story maps to a single Epic
- Stories are independent and deliverable individually
- Each story file's frontmatter
idandrelated_backlog_idmatch the parent Epic's ID prefix - Every generated story has a corresponding entry in `active.backlog.yaml` — verify by counting story files vs backlog entries for this Epic. Mismatch = FAIL.
- No existing story file was overwritten with a different Epic's content — verify each written file's
epicfrontmatter matches the intended Epic. Mismatch = CRITICAL FAILURE.
Non-Goals
This skill must NOT:
- Define architecture or implementation approach
- Generate Epics (use
generate-epics) - Produce stories without a parent Epic
Stories are the contract. Ambiguous stories produce ambiguous software.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.gaai/core/skills/discovery/generate-stories/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/d-sorganization/upstreamdrift/generate-stories)