d-sorganization/upstreamdrift/generate-stories

Claude Code and agent skill by d-sorganization/upstreamdrift

Trust tier 3
  • community
Source check pending

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-stories

SKILL.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

  1. 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.yaml for 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 its id frontmatter 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.
  1. Write from the user's perspective
  2. Focus on behavior, not UI or technology
  3. Keep stories small and independent
  4. Ensure every story is testable
  5. Avoid technical solutions in story body
  6. For each story, answer: "What should the user be able to do or experience?"
  7. Output using canonical Story template
  8. MANDATORY — Register in backlog. After writing all story files, add each story to contexts/backlog/active.backlog.yaml with:
  • id, epic, title (from story frontmatter)
  • status: refined (if validated) or status: draft (if pending validation)
  • priority (derived from Epic priority or explicit input)
  • artefact path pointing to the story file
  • dependencies (from story frontmatter depends_on or 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.

  1. 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 staging branch
  • 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:

As a {user role},
I want {goal},
so that {benefit/value}.
Acceptance Criteria:
- [ ] Given {context}, when {action}, then {expected result}

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 id and related_backlog_id match 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 epic frontmatter 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/d-sorganization/upstreamdrift/generate-stories/badge)](https://verified-skill.com/skills/d-sorganization/upstreamdrift/generate-stories)

Something wrong with this skill or its page? Tell us.