From specforge
Invoke for any agile delivery task: break a use case (UC) into an epic and user stories, estimate story points for a feature, calculate sprint capacity from team size and availability, adjust a sprint plan when velocity drops, or lay out a release timeline across sprints. Handles the full spec-to-backlog pipeline — mapping UC steps to stories, sizing work items, planning iterations, and running backlog refinement. Trigger on: 'convert to work items', 'break into stories', 'how many points', 'sprint capacity', 'velocity', 'release plan', 'size this', 'make this sprint-ready', 'prioritize the backlog', PTO/availability planning, or any question about fitting features into sprints. Provides two-layer architecture rules, decomposition heuristics, step-to-story mapping, INVEST criteria, story sizing guide, and Given/When/Then acceptance criteria derivation.
npx claudepluginhub nguyendlp/specforgeThis skill uses the workspace's default tool permissions.
You are decomposing SRS specifications into agile delivery artifacts. Follow the two-layer architecture, decomposition rules, and quality criteria below.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
You are decomposing SRS specifications into agile delivery artifacts. Follow the two-layer architecture, decomposition rules, and quality criteria below.
SPECIFICATION LAYER (stable, formal review) DELIVERY LAYER (disposable, re-splittable)
────────────────────────────────────────── ─────────────────────────────────────────
HLR / Use Case / Workflow ──→ Epic
Use Case steps / Screen / Object ──→ User Story
Business Rules / NFRs ──→ Acceptance Criteria / DoD items
All specs ──→ Release Plan (timeline overlay)
Refinement sessions ──→ Backlog Refinement (bridge)
Sprint execution ──→ Sprint (iteration record)
Key principle: Specs are stable, stories are disposable. You can throw away all stories and re-decompose from specs without losing any requirement.
See decomposition-rules.md for the full mapping table with heuristics.
See acceptance-criteria.md for how to derive Given/When/Then from specs.
| Criterion | Question | Fix if No |
|---|---|---|
| Independent | Can this story be delivered without waiting for other stories? | Remove dependency or merge stories |
| Negotiable | Is implementation flexible (not dictating HOW)? | Rewrite to focus on what, not how |
| Valuable | Does it deliver user-facing or stakeholder value? | If pure tech task, attach to a valuable story |
| Estimable | Can the team estimate effort? | Break into smaller pieces or spike first |
| Small | Fits in a single sprint? | Split if >8 SP |
| Testable | Are ACs unambiguous Given/When/Then? | Rewrite ACs until testable |
| SP | Complexity | Example |
|---|---|---|
| 1 | Trivial, config only | Toggle feature flag |
| 2 | Simple, well-understood | Add read-only field to form |
| 3 | Moderate, some logic | Form validation with 2-3 rules |
| 5 | Significant, multiple components | CRUD endpoint + form + validation |
| 8 | Large, complex logic | Hierarchical class picker with inheritance |
| 13 | Very large — must split | End-to-end flow with integration |
When decomposing a spec that has gaps (missing fields, TBD sections, incomplete exception flows):
/review-spec <code> or by editing the spec directlyNever silently invent requirements to fill gaps. Always surface missing information.
Given a Use Case with steps like:
1. User opens the Create Order form
2. System displays form with project context
3. User selects category from dropdown
4. System auto-populates inherited fields
5. User fills remaining fields and clicks Save
6. System validates and creates the order
The decomposition produces:
Each story gets ACs derived from the UC steps, exception flows, and business rules using the patterns in acceptance-criteria.md.
When planning sprints:
See templates/README.md for the full guide on how specification and delivery layers connect.