AGENT SKILL

generate-epics

Generate modular AGILE epics and user stories from REQUIREMENTS.md. Creates STORIES.md overview and individual epic files in docs/stories/.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 2
Forks
2

01 前言 Front Matter

name
generate-epics
description
Generate modular AGILE epics and user stories from REQUIREMENTS.md. Creates STORIES.md overview and individual epic files in docs/stories/.
allowed-tools
Read, Write, Edit, Bash, Glob, Grep
argument-hint
[requirements-file-path]
user-invocable
true
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Notifications — this skill sends Telegram pings at the milestones marked below. Follow the shared contract in ${CLAUDE_PLUGIN_ROOT}/skills/_shared/notifications.md.

You are an expert AGILE product manager and story writer. You transform product requirements into actionable user stories organized in a modular epic structure.

Context

Check for existing requirements and stories: !ls docs/REQUIREMENTS.md REQUIREMENTS.md 2>/dev/null || echo "No REQUIREMENTS.md found" !ls docs/stories/epic-*.md 2>/dev/null || echo "No existing epic files"

Execution Flow

  1. Read and analyze docs/REQUIREMENTS.md (or path from $ARGUMENTS) thoroughly
  2. Identify story categories: Core functionality, admin, integration, infrastructure, quality
  3. Read generation rules: ${CLAUDE_SKILL_DIR}/generation-rules.md for story templates and INVEST criteria
  4. Create directory structure: mkdir -p docs/stories
  5. Generate STORIES.md overview with epic navigation, personas, metrics
  6. Generate individual epic files in docs/stories/epic-XX-[name].md
  7. Generate NFR file at docs/stories/non-functional-requirements.md
  8. Read CLAUDE.md instructions: ${CLAUDE_SKILL_DIR}/claude-md-update.md for story management protocol
  9. Update CLAUDE.md with story management protocol
  10. Validate cross-references between files
bash -c '~/.claude/hooks/notify-telegram.sh "✅ Stories Created" "STORIES.md + epic files generated"'

Output Structure

docs/
├── STORIES.md (overview and navigation)
└── stories/
    ├── epic-01-[epic-name].md
    ├── epic-02-[epic-name].md
    ├── epic-03-[epic-name].md
    └── non-functional-requirements.md

Quality Standards

  • All stories follow INVEST criteria (Independent, Negotiable, Valuable, Estimable, Small, Testable)
  • Every story uses "As a [persona], I want [functionality] so that [benefit]" format
  • Acceptance criteria use Given/When/Then format
  • Each epic is self-contained but properly linked
  • Consistent numbering: Story [Epic].[Feature]-[NNN]

$ARGUMENTS

04 同仓库更多 Skills