Index of every page on this site: llms.txt
All skills
aj-geddes avatar

/bmad-epics-and-stories

@27dca0e
Run it yourself

Solutioning flagship — shards a PRD + architecture into epics.md and individual {epic}.{story}.{slug}.story.md context objects, the LAST planning artifact before external dev handoff. Each story is a self-contained ~8K-token compiled context object: Dev Notes with SOURCE CITATIONS back to prd.md/architecture.md, Acceptance Criteria, Tasks/Subtasks mapped to ACs, Testing strategy, Dependency Maps, an explicit Owned File/Module Scope list (the lever for parallel-conflict-free scheduling), and Learnings from Previous Stories. Sized to one dev-day; split if larger; NO story points. Use when the user says "shard the PRD", "create epics", "break the PRD into epics", "break this epic into stories", "create stories", "create a story", "draft story files", "generate the story for X", "prepare stories for dev", "mark the story ready for dev", "validate this story", or "what stories are in this epic". Three intents: Create new epics/stories, Update an existing story, or Validate a draft against the contract.

Use this Skill: https://skilld.dev/gh/aj-geddes/claude-code-bmad-skills/bmad-epics-and-stories

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

templatesstory.template.md

≈962 tokens on demand. Your agent reads this file only when SKILL.md points to it.

<!-- STORY CONTEXT OBJECT — bmad-epics-and-stories File name: {epic}.{story}.{slug}.story.md (e.g. 2.1.stripe-integration.story.md) This file is SELF-CONTAINED (~8K-token target): a dev agent should need nothing else. It is the LAST planning artifact before external dev handoff. LOCKED SECTIONS: Acceptance Criteria, Dev Notes, and Testing are LOCKED. External dev tools MUST NOT edit them — they are the compiled, cited contract. Only this planning skill may change a LOCKED section, via an explicit Update + decision-log entry. The external dev tool fills ONLY the "Dev Agent Record" section. -->

{{epic}}.{{story}}: {{Story Title}}

Story ID: {{epic}}.{{story}} Epic: {{epic}} — {{Epic Title}} Slug: {{slug}} Status: backlog <!-- lifecycle: backlog -> ready-for-dev -> in-progress -> review -> done -->

Owned by planning until ready-for-dev. Sized to one dev-day (~2-8h). No story points.

Story

As a {{user type / role}}, I want {{capability}}, so that {{business value}}.

Acceptance Criteria

<!-- LOCKED. Numbered, testable. External dev tools must not edit. -->
  1. {{Specific, verifiable outcome.}}
  2. {{Specific, verifiable outcome.}}
  3. {{Specific, verifiable outcome.}}
<!-- Keep to ~3-7. More than ~7 means the story is too big — split it. -->

Tasks / Subtasks

<!-- Every task maps to one or more ACs via (AC: #N). A task with no AC mapping is a smell. -->
  • {{Task}} (AC: #1)
    • {{Subtask}} (AC: #1)
    • {{Subtask}} (AC: #1)
  • {{Task}} (AC: #2, #3)
  • {{Task}} (AC: #3)

Dev Notes

<!-- LOCKED. Concrete guidance compiled from the planning docs WITH SOURCE CITATIONS. Cite every fact: [Source: prd.md#anchor] / [Source: architecture.md#anchor] / [Source: ux-design.md#anchor]. Label your own inferences [Inference]. -->
  • {{Architecture/pattern guidance.}} [Source: architecture.md#{{anchor}}]
  • {{Data model / API contract detail.}} [Source: architecture.md#{{anchor}}]
  • {{Requirement detail this story satisfies.}} [Source: prd.md#{{FR-XX}}]
  • {{UI/UX acceptance detail, if relevant.}} [Source: ux-design.md#{{anchor}}]
  • {{A judgment call not in any doc.}} [Inference]

Testing

<!-- LOCKED. STRATEGY ONLY — what to verify and how. NEVER run tests or quote coverage here. -->
  • Approach: {{unit / integration / e2e mix appropriate to this story}}
  • Key scenarios: {{the behaviors that prove each AC}}
  • Per-AC verification: AC #1 → {{how it's checked}}; AC #2 → {{...}}; AC #3 → {{...}}
  • Fixtures / mocks: {{data, stubs, or doubles the dev tool will need}}
  • Edge cases to cover: {{error paths, boundaries}}

Dependency Maps

  • Blocked by: {{epic.story}} — {{why}} | {{none}}
  • Blocks: {{epic.story}} — {{why}} | {{none}}
  • External: {{API / service / library / env this story needs}}

Owned File/Module Scope

<!-- EXPLICIT list of paths this story may create or modify. This is the lever for parallel-conflict-free scheduling: disjoint scopes can run in parallel. Be path-precise, prefer files over broad globs, include test paths, and call out shared/contended files. Validated by ${CLAUDE_PLUGIN_ROOT}/scripts/scope-conflict-check.sh. -->
  • {{path/to/file_a}}
  • {{path/to/file_b}}
  • {{tests/path/**}}
  • Shared/contended (must serialize if another story also lists it): {{path/to/shared_file}}

Learnings from Previous Stories

<!-- Carried forward from completed sibling stories: chosen patterns, gotchas, helpers created, naming conventions. Only what is actionable for THIS story. -->
  • {{Learning carried forward}} (from {{epic.story}})
  • {{...}}

Dev Agent Record

<!-- LEFT EMPTY by planning. The external dev tool fills this in during implementation. -->

(empty — to be completed by the external dev tool)

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill is a requirements sharding and planning tool designed to decompose PRDs into epics and stories. It uses local helper scripts for ID generation and scope validation, and while it processes untrusted documentation, its operations are consistent with its documented purpose.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at 27dca0e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago
What it can do
Reads files Edits files Runs commands
All 7 allowed tools
ReadWriteEditBashGlobGrepTodoWrite

README badge

README badge for aj-geddes/claude-code-bmad-skills/bmad-epics-and-stories