source-command-story
FreeNo executable scriptsNot checkedGenerate implementation stories from planning documents
by databayt★ 19 GitHub starsAbout this skill
source-command-story
Use this skill when the user asks to run the migrated source command story.
Command Template
Story Command - Story Generation
Transform PRDs and architecture documents into detailed, implementable stories with clear acceptance criteria.
Usage
/story [feature-name]
Process
- Load Planning Documents: Read PRD and architecture from
.bmad/planning/ - Analyze Requirements: Extract components, APIs, and database changes
- Generate Stories: Create detailed story files with dependencies
- Map Dependencies: Build dependency graph for execution order
- Create Tracking: Setup velocity and progress metrics
Examples
# Generate stories for a planned feature
/story student-attendance
# Generate stories after planning
/plan payment-gateway
/story payment-gateway
# Generate stories for existing PRD
/story existing-feature
Story Types Generated
1. Setup Story
- Directory structure creation
- Base file scaffolding
- Route configuration
- Navigation updates
2. Database Story
- Prisma schema changes
- Migration generation
- Index optimization
- Seed data
3. API Stories
- Server actions
- CRUD operations
- Validation schemas
- Error handling
4. Component Stories
- UI components
- Forms and tables
- Client interactions
- Responsive layouts
5. Testing Story
- Unit tests (95% coverage)
- Integration tests
- E2E test scenarios
- Manual test plans
6. Documentation Story
- Component README
- API documentation
- User guides
- Changelog updates
Outputs
Creates files in .bmad/stories/:
Epic File
.bmad/stories/epics/EPIC-001-[feature].md
Story Files
.bmad/stories/stories/
├── STORY-001-setup.md
├── STORY-002-database.md
├── STORY-003-api-create.md
├── STORY-004-api-read.md
├── STORY-005-ui-list.md
├── STORY-006-ui-form.md
├── STORY-007-testing.md
└── STORY-008-documentation.md
Story Structure
Each story includes:
- Context: Why the story exists
- Requirements: Clear, testable requirements
- Technical Design: Implementation approach
- Implementation Guide: Step-by-step instructions
- Testing Strategy: What tests to write
- Acceptance Criteria: Definition of done
- Multi-tenant Considerations: schoolId scoping
- i18n Requirements: Translation needs
Story Lifecycle
TODO → IN_PROGRESS → REVIEW → COMPLETED
↓ ↓
BLOCKED REJECTED → TODO
Dependencies
Stories include dependency mapping:
Dependencies:
- [ ] STORY-001: Must complete setup first
- [ ] STORY-002: Database schema required
Story Points
Automatic estimation based on:
- Component complexity
- Database changes
- API endpoints
- Testing requirements
- Documentation needs
Implementation
// Invokes the story agent
await invokeAgent("/agents/bmad/story", {
feature: featureName,
planning: {
prd: loadDocument(`prd-${feature}.md`),
architecture: loadDocument(`architecture-${feature}.md`),
},
})
// Generates:
// - Epic with overview
// - Individual story files
// - Dependency graph
// - Initial velocity metrics
Workflow Integration
After stories are generated:
- Review and adjust story details if needed
- Use
/cycleto execute stories automatically - Track progress with
/loop story EPIC-001 - Update status as work progresses
Success Criteria
✅ All requirements mapped to stories ✅ Dependencies clearly identified ✅ Acceptance criteria specific and testable ✅ Story points estimated ✅ Technical approach documented ✅ Testing strategy defined
Tips
- Keep stories small (1-13 points)
- One deliverable per story
- Clear acceptance criteria
- Include test requirements
- Document decisions in stories
Install source-command-story in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the source-command-story skill do?
Generate implementation stories from planning documents
How do I install the source-command-story skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the source-command-story skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
by Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
by GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
by GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
by GitHub