teamspec
v4.3.2
Published
CLI tool to bootstrap TeamSpec 4.0 Product-Canon operating model in any repository
Maintainers
Readme
TeamSpec CLI
Bootstrap TeamSpec 4.0 Product-Canon Operating Model in any repository
What is TeamSpec?
TeamSpec is a Product-Canon Operating Model for software teams. It provides:
- Product Canon — Single source of truth for production behavior (AS-IS)
- Feature-Increments — Proposed changes to products (TO-BE)
- Delta-based Stories — Stories describe changes, not full behavior
- Role-based Workflows — Clear ownership boundaries (PO, BA, FA, SA, DEV, QA, SM)
- AI Agent Integration — Works with GitHub Copilot, Cursor, Claude, and more
Installation
Global Install (Recommended)
npm install -g teamspecnpx (No Install)
npx teamspecQuick Start
Interactive Setup
cd your-repo
teamspecThe CLI will ask:
- Your team profile (startup, enterprise, regulated, etc.)
- Organization and team name
- Industry sector
- Development cadence (scrum, kanban, scrumban)
- Initial project ID
Non-Interactive Setup
teamspec --profile startup --org "My Company" --team "Web Team" -yWhat Gets Created
your-repo/
├── .teamspec/ # Core framework
│ ├── templates/ # Document templates
│ ├── definitions/ # DoR/DoD checklists
│ ├── profiles/ # Profile overlays
│ └── context/
│ └── team.yml # Your team configuration
├── .github/
│ └── copilot-instructions.md # GitHub Copilot guidance (optional)
├── projects/main-project/ # Project artifacts
│ ├── features/ # Feature Canon (source of truth)
│ │ ├── features-index.md # Feature registry
│ │ └── story-ledger.md # Completed story tracking
│ ├── stories/ # User stories
│ │ ├── backlog/ # New stories
│ │ ├── ready-to-refine/ # Ready for dev refinement
│ │ └── ready-for-development/# Ready for sprint
│ ├── adr/ # Architecture decisions
│ ├── decisions/ # Business decisions
│ ├── dev-plans/ # Development task breakdowns
│ ├── qa/ # Test cases
│ ├── sprints/ # Sprint management
│ └── epics/ # Epic specifications
Commands
Initialize TeamSpec
teamspec [init] [options]Options:
| Option | Description |
|--------|-------------|
| -t, --target <dir> | Target directory (default: current) |
| -p, --profile <profile> | Team profile |
| -o, --org <name> | Organization name |
| --team <name> | Team name |
| --project <id> | Project ID |
| --ide <ide> | IDE integration (vscode, cursor, other, none) |
| --copilot <yes\|no> | Install GitHub Copilot instructions (default: yes) |
| -y, --non-interactive | Skip prompts, use defaults |
Update TeamSpec
teamspec update [options]Updates templates, definitions, and profiles while preserving your team configuration.
Options:
| Option | Description |
|--------|-------------|
| -f, --force | Update without confirmation |
| -y, --non-interactive | Skip confirmation prompt |
Profiles
| Profile | Description |
|---------|-------------|
| none | Vanilla TeamSpec |
| startup | Lean documentation, speed focus |
| platform-team | API-first, SLA focus |
| enterprise | Full governance, audit trails |
| regulated | Banking, healthcare, government compliance |
TeamSpec Commands (for AI Agents)
Once configured, use these commands with your AI assistant:
Product Owner
ts:po product # Create new product with PRX prefix
ts:po project # Create new project targeting product(s)
ts:po sync # Sync Feature-Increments to Product Canon (post-deploy)
ts:po status # Product/project status overviewBusiness Analysis
ts:ba analysis # Create business analysis document
ts:ba ba-increment # Create BA increment in project
ts:ba review # Review artifacts for business intentFunctional Analysis
ts:fa feature # Create feature in Product Canon
ts:fa feature-increment # Create feature-increment in project
ts:fa epic # Create epic in project
ts:fa story # Create story linked to epicDevelopment
ts:dev plan # Create development plan
ts:dev implement # Execute from existing planQuality Assurance
ts:qa test # Design test cases for Feature-Increment
ts:qa regression # Update product regression tests
ts:qa verify # Validate DoD compliance
ts:qa uat # Create UAT packScrum Master
ts:sm sprint create # Create new sprint
ts:sm sprint status # View sprint status
ts:sm sprint close # Close sprint with metricsKey Concepts
Feature Canon
The Feature Canon is the single source of truth for system behavior. It lives in projects/<project-id>/features/ and contains:
- Feature Files — Define what the system does
- Features Index — Registry of all features
- Story Ledger — Tracks how features evolved through stories
Delta-based Stories
Stories describe changes (deltas) to the Feature Canon, not full behavior:
### Before (current behavior)
Reference: F-001, Section: User Registration
### After (new behavior)
Email confirmation is now optional for OAuth users.Workflow Folders
Stories move through workflow folders:
stories/backlog/— FA creates new stories herestories/ready-to-refine/— FA moves stories ready for dev refinementstories/ready-for-development/— DEV moves refined stories here- Sprint — SM assigns to active sprint
Configuration
Edit .teamspec/context/team.yml to customize:
org:
name: "Your Organization"
industry: technology
profile: startup
team:
name: "Your Team"
roles: [BA, FA, DEV, QA, SM]
cadence:
type: scrum
sprint_length_days: 14
tech:
stack:
- Python
- React
- PostgreSQL
governance:
sign_off_required: false
audit_trail: falseDevelopment
Local Testing
cd cli
npm link
teamspec --helpRunning Tests
npm testLicense
MIT
Contributing
See CONTRIBUTING.md for guidelines.
