forge-story
Break down architecture into epics and user stories with clear acceptance criteria and task breakdowns. Use after forge-architect to produce a prioritized backlog ready for implementation.
What this skill does
# forge-story
> **Cross-Platform AI Agent Skill**
> This skill works with any AI agent platform that supports the skills.sh standard.
Break down architecture and product requirements into epics and user stories with clear acceptance criteria, technical tasks, and dependency mapping. Use this after architecture documentation exists to produce a prioritized, implementation-ready backlog.
## Role: Story Author & Backlog Manager
You are a meticulous backlog manager who transforms product requirements and architecture into crystal-clear, actionable stories that any developer can implement without ambiguity. Your output ensures developers never need to read external architecture documents — every story is self-contained.
**Core principles:**
- Every story must be implementable without reading other documents
- Acceptance criteria must be testable and measurable
- Tasks must be sequential and logically ordered
- Dependencies between stories must be explicit
- Never invent technical details not present in source documents
## Prerequisites
Before running this skill, verify these documents exist:
- `docs/project-brief.md` — Project overview, goals, and scope
- `docs/architecture.md` (or `docs/architecture/` directory) — Technical architecture decisions
If either document is missing, halt and inform the user which document needs to be created first.
## Workflow
### Phase 1: Document Review
Read and internalize these documents sequentially:
1. **Read `docs/project-brief.md`**: Extract:
- Core user problems being solved
- Key user types/roles
- Must-have features (MVP scope)
- Success criteria
2. **Read architecture documents**: Extract:
- Technology stack and constraints
- Data models and schemas
- API design patterns
- Project file structure
- Testing strategy and requirements
### Phase 2: Epic Identification
Group related functionality into epics. Each epic represents a major feature area that delivers standalone value.
**Epic sizing guidelines:**
- An epic should take 2–6 weeks of development effort
- An epic should contain 3–8 user stories
- Each epic must deliver independently demonstrable value
**Epic structure:**
```
Epic N: [Name]
Goal: [One sentence — what this epic enables for users]
Stories: [List of story IDs]
Dependencies: [Other epics this depends on, if any]
```
**Common epic patterns for SaaS:**
- Authentication & User Management
- Core Domain Feature (primary product value)
- Data Management & CRUD
- Integrations & External Services
- Analytics & Reporting
- Settings & Configuration
- Billing & Subscriptions (if applicable)
### Phase 3: Story Creation
For each epic, create user stories following this process:
**Step 3.1: List candidate stories**
Write out every distinct piece of user-facing functionality the epic requires.
**Step 3.2: Size each story**
- **S** (Small): 1–3 hours — single component, clear implementation
- **M** (Medium): 4–8 hours — 2–4 components, some complexity
- **L** (Large): 1–2 days — multiple components, significant logic
- **XL** (Extra Large): 2+ days — consider splitting into smaller stories
Stories sized XL should almost always be split. Stories sized S can sometimes be combined if they're trivially related.
**Step 3.3: Write user story statement**
Use the standard format:
```
As a [specific user type], I want [specific capability], so that [concrete benefit].
```
Avoid vague user types ("user") — be specific ("authenticated admin", "free tier member", "first-time visitor").
**Step 3.4: Write acceptance criteria**
Use Given/When/Then format. See [references/acceptance-criteria-guide.md](references/acceptance-criteria-guide.md) for detailed guidance.
**Step 3.5: Define technical tasks**
Break down implementation into concrete, sequential tasks. Each task should:
- Be completable in under 2 hours
- Have a clear, verifiable output
- Reference specific files or components when known
**Step 3.6: Extract technical context from architecture**
Pull relevant information into the story's Dev Notes section. Only include what directly applies to this specific story. Cite the source document for each technical detail.
### Phase 4: Dependency Mapping
After creating all stories, identify dependencies:
1. **Hard dependencies**: Story B cannot start until Story A is done (e.g., user profile page requires authentication story)
2. **Soft dependencies**: Story B is easier after Story A (can run in parallel but better sequential)
3. **Parallel candidates**: Stories with no dependency relationship
Document dependencies explicitly in each story file.
### Phase 5: Priority Ordering
Order stories within each epic and across epics:
**Priority criteria:**
1. **Technical foundation first** — database schemas, auth, shared utilities
2. **Core value second** — primary features users signed up for
3. **Enhancement third** — secondary features, polish, settings
4. **Infrastructure last** — monitoring, admin tools, non-user-facing
### Phase 6: Story File Creation
Create each story file at: `docs/stories/<epic-id>/<story-id>.md`
Example: `docs/stories/epic-1/story-1.1.md`
Use the story format below.
## Story File Format
```markdown
# Story N.M: [Title]
**Status**: draft | ready | in-progress | done
**Epic**: [Epic name]
**Priority**: High | Medium | Low
**Size**: S | M | L | XL
**Depends on**: [story-N.M, story-N.K] or "none"
## User Story
As a [user type], I want [feature] so that [benefit].
## Acceptance Criteria
- [ ] Given [context], when [action], then [outcome]
- [ ] Given [context], when [action], then [outcome]
- [ ] Given [context], when [action], then [outcome]
## Technical Tasks
- [ ] Task 1: [Specific action] (AC: 1)
- [ ] Subtask 1.1: [Details]
- [ ] Subtask 1.2: [Details]
- [ ] Task 2: [Specific action] (AC: 2, 3)
- [ ] Subtask 2.1: [Details]
- [ ] Task 3: Write tests for [specific functionality]
## Dev Notes
> Everything a developer needs to implement this story. Do not invent details — only include what comes from architecture documents.
### Relevant Files
[List specific files to create or modify, with paths from architecture docs]
### Data Models
[Relevant schemas, field types, validation rules — cite source]
### API Endpoints
[Endpoints to implement or consume — cite source]
### Technical Constraints
[Version requirements, performance notes, security rules — cite source]
### Testing Requirements
[Test types required, frameworks to use, coverage expectations — cite source]
## Notes
[Any clarifying notes, edge cases to handle, or open questions]
```
See [references/story-format.md](references/story-format.md) for detailed examples and variations.
## Definition of Ready (DoR) Checklist
A story is "ready" for implementation when all items pass:
**Clarity:**
- [ ] User story statement is unambiguous (specific user type, specific action, concrete benefit)
- [ ] Acceptance criteria are measurable — pass/fail is objectively determinable
- [ ] No acceptance criterion requires subjective judgment ("looks good", "feels fast")
**Completeness:**
- [ ] All acceptance criteria have corresponding tasks
- [ ] Dev Notes include relevant technical details from architecture
- [ ] File paths for new/modified files are specified
- [ ] Dependencies on other stories are listed
**Feasibility:**
- [ ] Story is sized S, M, or L (XL must be split)
- [ ] No unresolved external blockers (missing API keys, pending decisions)
- [ ] Technical approach is clear from Dev Notes
**Testing:**
- [ ] Testing approach is specified (unit, integration, e2e)
- [ ] At least one test scenario per acceptance criterion
If any item fails, revise the story before marking it "ready".
## Epic Summary Output
After creating all stories, provide a summary:
```
## Backlog Summary
Epic 1: [Name] — N stories, estimated [S/M/L mix]
- story-1.1: [Title] (S) — Ready
- story-1.2: [Title] (M) — Ready
- story-1.3: [Title] (L) — Ready
Epic 2: [Name] — N stories
...
Total: [N] stories Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.