- Version: 2.0
Creates a new story with auto-populated template and adds it to the backlog.
/plugin marketplace add ninthspace/claude-code-marketplace/plugin install sdd@ninthspace-marketplacePurpose: Create a new story using project context and place it in the backlog folder for future development.
Syntax: /sdd:story-new [story_id_number]
| Parameter | Type | Required | Default | Description | Validation |
|---|---|---|---|---|---|
| story_id_number | number | No | auto-increment | Story number (used as STORY-YYYY-NNN) | Positive integer |
/docs/project-context/ directory/docs/project-context/ directory exists/sdd:project-init first/docs/project-context/project-brief.md - Existing story definitions, goals/docs/project-context/technical-stack.md - Technology implementation requirements/docs/project-context/coding-standards.md - Testing and quality requirementsGENERATE story ID in format STORY-YYYY-NNN:
IF user provides story_id_number:
STORY-YYYY-[story_id_number]CHECK for existing IDs across all directories:
/docs/stories/backlog//docs/stories/development//docs/stories/review//docs/stories/qa//docs/stories/completed//docs/project-context/project-brief.md for planned storiesIF no specific number provided:
SEARCH /docs/project-context/project-brief.md for story with generated ID
IF story exists in project brief:
IF story NOT found in project brief:
ENSURE /docs/stories/backlog/ directory exists
.gitkeep file if directory was createdCREATE story file at /docs/stories/backlog/[story-id].md
POPULATE template with:
REFERENCE project context in template:
DISPLAY creation summary:
✅ Story Created
═══════════════════════════════════
Story ID: [STORY-YYYY-NNN]
Title: [Story Title]
Location: /docs/stories/backlog/[story-id].md
Status: backlog
[If from project brief:]
Source: Extracted from project brief
- Acceptance criteria: [count] criteria defined
- Test scenarios: [count] scenarios defined
- Dependencies: [list or "None"]
[If from user input:]
Source: User-provided details
- Ready for refinement before development
SUGGEST next steps:
💡 NEXT STEPS:
1. /sdd:story-start [story-id] # Move to development and create branch
2. /sdd:story-implement [story-id] # Generate implementation code
3. /sdd:project-status # View all project stories
/docs/stories/backlog/[story-id].md - New story file with populated template.gitkeep file in /docs/stories/backlog/ if directory was created# [STORY-ID]: [Title]
## Status: backlog
**Started:** [Today's Date]
**Completed:**
**Branch:** (none - in backlog)
## What & Why
[Story description and purpose]
## Success Criteria
- [ ] [Criterion 1]
- [ ] [Criterion 2]
- [ ] [Criterion 3]
## Technical Notes
**Approach:** [Implementation approach]
**Stack:** [Auto-populated from technical-stack.md]
**Concerns:** [Risks and edge cases]
**Dependencies:** [External services/libraries/other stories]
## Implementation Checklist
- [ ] Feature implementation
- [ ] Unit tests
- [ ] Integration tests
- [ ] Error handling
- [ ] Loading states
- [ ] Documentation
- [ ] Performance optimization
- [ ] Accessibility
- [ ] Security review
## Progress Log
- [Today]: Created story, added to backlog
## Test Cases
1. Happy path: [scenario]
2. Error case: [scenario]
3. Edge case: [scenario]
## UI/UX Considerations
[User interface and experience requirements]
## Integration Points
[Dependencies and integration with other systems]
## Rollback Plan
[How to rollback if issues arise]
## Lessons Learned
[To be filled when complete]
INPUT:
/sdd:story-new
OUTPUT:
→ Checking project context...
→ Generating story ID: STORY-2025-001
→ Found story definition in project brief
✅ Story Created
═══════════════════════════════════
Story ID: STORY-2025-001
Title: User Authentication System
Location: /docs/stories/backlog/STORY-2025-001.md
Status: backlog
Source: Extracted from project brief
- Acceptance criteria: 5 criteria defined
- Test scenarios: 8 scenarios defined
- Dependencies: None
💡 NEXT STEPS:
1. /sdd:story-start STORY-2025-001 # Move to development and create branch
2. /sdd:story-implement STORY-2025-001 # Generate implementation code
3. /sdd:project-status # View all project stories
INPUT:
/sdd:story-new 10
OUTPUT:
→ Checking project context...
→ Using story ID: STORY-2025-010
→ Story not found in project brief, gathering details...
What is the story title?
> Add Dark Mode Toggle
What are you building and why?
> Implement a dark mode toggle in the settings page to allow users to switch between light and dark themes.
What are the acceptance criteria? (Enter each, then empty line when done)
> Toggle is visible in settings page
> Theme persists across sessions
> All UI components support both themes
>
✅ Story Created
═══════════════════════════════════
Story ID: STORY-2025-010
Title: Add Dark Mode Toggle
Location: /docs/stories/backlog/STORY-2025-010.md
Status: backlog
Source: User-provided details
- Ready for refinement before development
💡 NEXT STEPS:
1. /sdd:story-start STORY-2025-010 # Move to development and create branch
2. /sdd:story-implement STORY-2025-010 # Generate implementation code
3. /sdd:project-status # View all project stories
INPUT:
/sdd:story-new
OUTPUT:
→ Checking project context...
→ Found existing stories: STORY-2025-001 through STORY-2025-005
→ Auto-incrementing to: STORY-2025-006
→ Story not found in project brief, gathering details...
[Interactive prompts for story details...]
✅ Story Created
═══════════════════════════════════
Story ID: STORY-2025-006
Title: Payment Processing Integration
Location: /docs/stories/backlog/STORY-2025-006.md
Status: backlog
/docs/project-context/ directory/sdd:project-init/sdd:project-init with guidance/sdd:project-init - Initialize project structure first/sdd:project-brief - Create/update project documentation with stories/sdd:story-start [id] - Begin development on story/sdd:story-implement [id] - Generate implementation code/sdd:project-status - View all project stories