From autonomous-sdlc
Interactively add one or more new stories to an existing epic. Reads STORIES.md and the target epic, asks clarifying questions, then writes stories matching the repo's established format.
How this skill is triggered — by the user, by Claude, or both
Slash command
/autonomous-sdlc:create-storyThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **cmux environment check** — this skill emits cmux sidebar updates via `cmux-bridge.sh`. Before emitting any call whose subcommand is `status`, `progress`, `log`, or `clear`, check whether the `$CMUX_SOCKET_PATH` environment variable is set. If it is **empty** (running outside cmux — e.g. Claude Desktop App), **skip every such call in this skill**: they only drive the cmux sidebar UI and prod...
cmux environment check — this skill emits cmux sidebar updates via
cmux-bridge.sh. Before emitting any call whose subcommand isstatus,progress,log, orclear, check whether the$CMUX_SOCKET_PATHenvironment variable is set. If it is empty (running outside cmux — e.g. Claude Desktop App), skip every such call in this skill: they only drive the cmux sidebar UI and produce no effect elsewhere. Always runcmux-bridge.sh notifyandcmux-bridge.sh telegramcalls regardless of environment — they deliver to Telegram even when cmux is absent.
This is the companion to create-epic for adding stories to an existing epic. Use it when the user wants to extend an epic that already exists rather than create a new one.
Check for existing stories structure:
!ls docs/stories/epic-*.md docs/STORIES.md 2>/dev/null || echo "No existing story files"
!ls STORIES.md 2>/dev/null || echo "No root STORIES.md"
Examples:
/create-story 12 add crash recovery for mission queue/create-story EPIC-18 skill health check dashboard/create-story add OAuth expiry alertsParse $ARGUMENTS as:
03, 12, or normalized from EPIC-12)If either parameter is missing, ask for the missing value before editing files. If both are missing, ask for both in one concise message.
bash -c '~/.claude/hooks/cmux-bridge.sh status create-story "Discovery" --icon sparkle --color "#007AFF"'
bash -c '~/.claude/hooks/cmux-bridge.sh log info "Story discovery started" --source create-story'
Before asking detailed product questions or writing files:
STORIES.md or the repo's equivalent story index.Use repository evidence over the user's shorthand. Completed epics can still receive follow-up stories, but explicitly confirm that the user intends to reopen or extend a completed epic.
bash -c '~/.claude/hooks/cmux-bridge.sh status create-story "Interview" --icon sparkle --color "#007AFF"'
Ask questions one at a time, building on previous answers. Ask enough questions to make the story implementation-ready, but do not over-interview. Skip any question already answered by the epic, existing stories, or the user's description.
Cover:
If the description naturally splits into multiple independently deliverable outcomes, say so and propose the story split. Ask for confirmation unless the user already requested multiple stories.
bash -c '~/.claude/hooks/cmux-bridge.sh status create-story "Generating story" --icon sparkle --color "#FF9500"'
bash -c '~/.claude/hooks/cmux-bridge.sh log progress "Discovery complete — generating story" --source create-story'
Update the requested epic file. Match the repository's existing conventions exactly:
docs/stories/epic-{NN}-{kebab-name}.md{epic}.{feature}-NNNWhen adding stories:
STORIES.md or the repo's equivalent index when story count, point total, status, priority, or summary changes.Prefer one well-scoped story over a bundle. Split into multiple stories when one request spans distinct user workflows, risky implementation layers, or separate verification surfaces.
After writing files, report:
bash -c '~/.claude/hooks/cmux-bridge.sh status create-story "Complete" --icon sparkle --color "#34C759"'
bash -c '~/.claude/hooks/cmux-bridge.sh log success "Story added to epic" --source create-story'
bash -c '~/.claude/hooks/cmux-bridge.sh notify "Story Created" "Added to epic"'
bash -c '~/.claude/hooks/cmux-bridge.sh telegram "✅ Story Created" "Added to epic"'
$ARGUMENTS
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub fxmartin/claude-code-config --plugin autonomous-sdlc