A Git-powered framework for defining requirements and architecture, designed for AI-assisted authoring.
This repository is the single source of truth for:
- Requirements: Epics, Features, Stories
- Architecture: C4 diagrams, ADRs, standards, system ownership
Requirements sync to Jira on merge. Developers check this repo for implementation detail.
./spec startThis creates a working branch. You'll be prompted to describe what you're working on.
Open Cursor, Copilot, or your AI assistant and use prompts like:
Create a feature:
"Create a feature for mobile document upload in the [squad-name] squad. It should allow customers to photograph and upload documents during onboarding. See the [epic-name] epic for context."
Break it into stories:
"Create stories for the mobile-document-upload feature."
Review and improve:
"Critically review the stories for the mobile-document-upload feature and suggest improvements."
./spec submitThis commits your changes, pushes the branch, and helps you create a PR. Once merged to the main branch, new tasks will be imported to Jira.
Here's a complete example of creating a feature. The workflow alternates between Terminal (CLI commands) and AI Chat (Cursor/Copilot conversation):
./spec start
# CLI prompts: What are you working on?
# You type: mobile document upload
# CLI creates branch: spec/mobile-document-uploadYou: Create a feature for mobile document upload in [squad-name] squad. Users should be able to photograph their documents and upload them. Part of the [epic-name] epic.
AI creates domains/[domain]/[squad]/features/mobile-document-upload/spec.md
You: Create 3-4 stories for this feature with clear acceptance criteria
AI creates stories in the stories/ folder
You: Review these critically - are the ACs testable? Missing edge cases?
AI suggests improvements, you approve changes
./spec submit
# CLI commits, pushes, and opens a PRTech leads review requirements and add architecture documentation on the same branch.
git fetch origin
git checkout spec/mobile-document-upload"Review the mobile-document-upload feature and stories. Are the requirements clear enough for implementation? What questions would developers have?"
"Add an architecture.md for this feature. Include sequence diagrams for the key flows, API contracts, and data model changes."
"What systems does this feature need to integrate with? Check system-ownership.md for owners."
"Create an ADR for the document storage approach - should we use S3 or the existing document service?"
git add -A
git commit -m "Add architecture for mobile document upload"
git pushThe PR now has both requirements (from PO) and architecture (from Tech Lead) for review.
spec/
├── epics/ # Cross-squad initiatives
├── blueprints/ # Service blueprints (design artifacts)
├── architecture/ # Organization-wide architecture
│ ├── c4/ # System diagrams
│ ├── adrs/ # Decision records
│ └── standards/ # Guidelines
├── domains/ # Organised by domain → squad
│ ├── [domain-1]/
│ │ ├── [squad-a]/
│ │ └── [squad-b]/
│ └── [domain-2]/
│ └── [squad-c]/
├── templates/
└── knowledge/ # Personas and domain knowledge
Each squad folder contains:
{squad}/
├── README.md # Squad overview
├── architecture/
│ └── README.md # Squad architecture & tech stack
└── features/
└── {feature-slug}/
├── spec.md # Feature specification
├── architecture.md # Feature architecture (optional)
└── stories/
└── {story}.md # Individual stories
Epic (cross-squad initiative)
└── Feature (squad deliverable)
└── Story (implementable unit)
| Aspect | Git Owns | Jira Owns |
|---|---|---|
| Requirements | Title, owner, AC, scope, dependencies | - |
| Planning | - | Priority, PI, iteration, sprint |
| Workflow | - | Status, assignee, points |
| Identity | Slug (folder/file name) | Key (PROJ-123) |
- On merge to
main, items sync to Jira automatically - Jira assigns keys (PROJ-123) written back to frontmatter
- Features link to parent epics; stories become sub-tasks
See SETUP.md for configuration instructions:
- Configuring your domains and squads
- Setting up Jira integration
- Customizing templates
- Setup Guide - Configure for your organization
- Contributing Guide - Detailed workflow and prompts
- Glossary
- C4 Context Diagram
- System Ownership