/arckit.backlog command transforms requirements into sprint-ready user stories following the GDS (Government Digital Service) format, with automatic prioritization and traceability.
What This Command Does
The/arckit.backlog command automatically:
-
Converts requirements to user stories
- Business Requirements (BR-xxx) → Epics
- Functional Requirements (FR-xxx) → User Stories (GDS format)
- Non-Functional Requirements (NFR-xxx) → Technical Tasks
- Integration Requirements (INT-xxx) → Integration Stories
- Data Requirements (DR-xxx) → Data Tasks
- Generates GDS-compliant user stories
-
Prioritizes using multi-factor scoring
- MoSCoW priorities (Must/Should/Could/Won’t)
- Risk-based (from risk register)
- Value-based (from business case)
- Dependency-based (technical foundation first)
-
Organizes into sprint plan
- Respects dependencies (auth before features)
- Balances work types (60% features, 20% technical, 15% testing, 5% buffer)
- Creates realistic sprint backlogs
-
Maintains traceability
- Requirements → Stories → Sprints → Code
- Links to HLD components
- Maps to epics and business goals
When to Run This Command
Timing: After HLD approval, before Sprint 1 (Alpha → Beta transition) Prerequisites:- MANDATORY: Requirements document (
ARC-*-REQ-*.md) - RECOMMENDED:
- Stakeholder Analysis (
ARC-*-STKE-*.md) for user personas - Risk Register (
ARC-*-RISK-*.md) for risk-based prioritization - Business Case (
ARC-*-SOBC-*.md) for value-based prioritization - HLD/DLD for component mapping
- Stakeholder Analysis (
Basic Usage
Arguments
| Argument | Default | Options | Description |
|---|---|---|---|
SPRINT_LENGTH | 2w | 1w, 2w, 3w, 4w | Sprint duration |
SPRINTS | 8 | Any number | Number of sprints to plan |
VELOCITY | 20 | Any number | Team velocity (story points/sprint) |
FORMAT | markdown | markdown, csv, json, all | Output formats |
PRIORITY | multi | moscow, risk, value, dependency, multi | Prioritization approach |
GDS User Story Format
ArcKit generates user stories following the GDS Service Manual format:Example Story
Story Point Estimation
ArcKit uses Fibonacci sequence: 1, 2, 3, 5, 8, 13| Points | Effort | Examples |
|---|---|---|
| 1 | Trivial, < 2 hours | Config change, simple UI text update |
| 2 | Simple, half day | Small API endpoint (GET with no logic), basic form |
| 3 | Moderate, 1 day | API endpoint with business logic, UI component with state |
| 5 | Complex, 2-3 days | Multi-step workflow, complex business logic, auth integration |
| 8 | Very complex, 1 week | Major feature spanning multiple components, payment gateway |
| 13 | Epic-level, 2 weeks | Too large - break down into smaller stories |
Factors That Increase Points
- Multiple components involved (API + UI + database): +2
- Security requirements (authentication, encryption): +2
- Third-party integration (external APIs): +2
- Data migration or transformation: +2
- Complex business logic: +1
- Performance optimization needed: +2
- Regulatory compliance (GDPR, PCI-DSS): +1
Prioritization Algorithms
Multi-Factor (Default)
Combines all factors for balanced prioritization:- Must Have = 4, Should Have = 3, Could Have = 2, Won’t Have = 1
- Critical Risk = 4, High = 3, Medium = 2, Low = 1
- High Value = 4, Medium = 3, Low = 2, Unknown = 1
- Blocks Many (>5) = 4, Blocks Some (3-5) = 3, Blocks Few (1-2) = 2, Blocks Nothing = 1
MoSCoW Only
Prioritize by Must/Should/Could/Won’t:Risk-Based
Prioritize highest-risk items first:Value-Based
Prioritize by business value relative to effort:Dependency-Based
Prioritize items that unblock others:Sprint Planning
Sprint 1 - Foundation Sprint
Sprint 1 is special - always includes:- User authentication (registration + login)
- Database setup
- CI/CD pipeline
- Testing framework
- Basic security (rate limiting, CORS)
- 60% Feature stories (12 points)
- 20% Technical tasks (4 points)
- 15% Testing tasks (3 points)
- 5% Bug buffer (1 point)
Subsequent Sprints
For Sprints 2-N:- Select stories by priority (from multi-factor score)
- Enforce dependencies (can’t do payment UI before Stripe integration)
- Balance work types (features + technical + testing)
- Respect velocity (don’t overcommit)
Example Sprint Plan
Output Files
The command generates up to 3 files inprojects/{project-dir}/:
1. Markdown Report (Always)
File:ARC-{PROJECT_ID}-BKLG-v1.0.md
Contents:
- Executive summary with metrics
- All epics with story counts
- Prioritized backlog (all stories)
- Sprint plan (8 sprints by default)
- Traceability matrix (requirements → stories → sprints)
- Dependency graph (Mermaid diagrams)
- Definition of Done
2. CSV Export (If Requested)
File:ARC-{PROJECT_ID}-BKLG-v1.0.csv
Use: Import into Jira, Azure DevOps, or GitHub Projects
Columns:
- Type, Key, Epic, Summary, Description
- Acceptance Criteria, Priority, Story Points
- Sprint, Status, Component, Requirements
3. JSON Export (If Requested)
File:ARC-{PROJECT_ID}-BKLG-v1.0.json
Use: Programmatic access, custom integrations
Structure:
Exporting to Trello
After generating the backlog, use/arckit.trello to push it to Trello:
- Sprint-based lists (Product Backlog + Sprint 1-8 + In Progress + Done)
- Cards with story points, acceptance criteria, and priority labels
- Color-coded by MoSCoW priority and requirement type
Traceability Matrix
The backlog includes a comprehensive traceability matrix:| Requirement | Type | User Stories | Sprint | Status | Notes |
|---|---|---|---|---|---|
| BR-001 | Business | Story-001, Story-002, Story-003, Story-004 | 1-2 | Planned | User Management epic |
| FR-001 | Functional | Story-001 | 1 | Planned | User registration |
| FR-002 | Functional | Story-002 | 1 | Planned | User login |
| NFR-005 | Non-Functional | Task-NFR-005 | 2 | Planned | Caching for performance |
| INT-003 | Integration | Story-015 | 2 | Planned | Stripe integration |
- Total Requirements: 85
- Mapped to Stories: 85 (100%)
- Scheduled in Sprints 1-8: 68 (80%)
- Remaining for Future Sprints: 17 (20%)
Best Practices
1. Run After Requirements Finalized
Don’t generate backlog too early:- ❌ Too early: During requirements gathering (requirements still changing)
- ✅ Right time: After requirements approved and HLD reviewed
- ❌ Too late: After Sprint 1 starts (team needs backlog to plan)
2. Review and Refine
AI-generated backlog is a starting point:- Review with Product Owner (validate priorities)
- Review with Tech Lead (validate estimates and dependencies)
- Review with Team (validate feasibility)
- Adjust stories, estimates, and sprint assignments
3. Calibrate Velocity
Initial velocity (default 20) is assumed:- After Sprint 1: Calculate actual velocity (sum of “Done” story points)
- Adjust Sprint 2+ capacity accordingly
- Track velocity trend (improving, stable, declining)
4. Groom Regularly
Backlog grooming schedule:- Weekly: Refine next 2 sprints (details, estimates)
- Bi-weekly: Groom backlog beyond 2 sprints (priorities)
- Monthly: Review epic priorities (business changes)
- Per sprint: Update based on completed work
5. Track Dependencies
Dependencies are identified automatically but may need adjustment:- Technical dependencies: X must exist before Y (auth before features)
- Business dependencies: A delivers value before B
- Resource dependencies: Same person needed for both
Real-World Examples
Example 1: NHS Appointment Booking
Project: NHS appointment booking system Command:- 12 epics, 87 stories, 342 story points
- Sprint 1: NHS Spine integration, user authentication
- Sprint 2-4: Core booking workflows
- Sprint 5-7: GP practice integration
- Sprint 8-10: Reporting and analytics
- Estimated duration: 20 weeks (10 sprints × 2 weeks)
Example 2: Payment Gateway
Project: Stripe payment gateway integration Command:- 6 epics, 52 stories, 198 story points
- Sprint 1: Stripe API integration, webhook handling
- Sprint 2: Payment processing (card, bank transfer)
- Sprint 3: Refunds and disputes
- Sprint 4: Recurring subscriptions
- Sprint 5: Payment analytics dashboard
- Sprint 6: PCI-DSS compliance hardening
Time Savings
Manual backlog creation:- Convert requirements: 2-3 weeks
- Prioritize and sequence: 1 week
- Sprint planning: 1 week
- Total: 4-6 weeks (80-120 hours)
/arckit.backlog:
- Run command: 2-5 minutes
- Review and refine: 1-2 days
- Team refinement: 2-3 days
- Total: 3-5 days (24-40 hours)
Troubleshooting
No Requirements Found
Error:No ARC-*-REQ-*.md file found
Fix: Run /arckit.requirements first to generate requirements.
Stories Not Mapped to Components
Warning:Stories will not be mapped to components
Fix: Run /arckit.diagram or provide HLD file with component names.
Generic User Personas
Warning:Using generic personas
Fix: Run /arckit.stakeholders to identify user types.
Velocity Too High/Low
Sprints are under/over-allocated. Fix: Adjust velocity after Sprint 1 based on actual completed points:Further Reading
- Traceability Guide - Track requirements to stories to sprints
- Customizing Templates - Customize backlog template
- Upgrading Guide - Preserve backlog format during upgrades