CLI tool to bootstrap TeamSpec 4.0 Product-Canon operating model in any repository
npm install teamspecbash
npm install -g teamspec
`
$3
`bash
npx teamspec
`
Quick Start
$3
`bash
cd your-repo
teamspec
`
The CLI will ask:
1. Your team profile (startup, enterprise, regulated, etc.)
2. Organization and team name
3. Industry sector
4. Development cadence (scrum, kanban, scrumban)
5. Initial project ID
$3
`bash
teamspec --profile startup --org "My Company" --team "Web Team" -y
`
What 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
$3
`bash
teamspec [init] [options]
`
Options:
| Option | Description |
|--------|-------------|
| -t, --target | Target directory (default: current) |
| -p, --profile | Team profile |
| -o, --org | Organization name |
| --team | Team name |
| --project | Project ID |
| --ide | IDE integration (vscode, cursor, other, none) |
| --copilot | Install GitHub Copilot instructions (default: yes) |
| -y, --non-interactive | Skip prompts, use defaults |
$3
`bash
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:
$3
`
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 overview
`
$3
`
ts:ba analysis # Create business analysis document
ts:ba ba-increment # Create BA increment in project
ts:ba review # Review artifacts for business intent
`
$3
`
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 epic
`
$3
`
ts:dev plan # Create development plan
ts:dev implement # Execute from existing plan
`
$3
`
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 pack
`
$3
`
ts:sm sprint create # Create new sprint
ts:sm sprint status # View sprint status
ts:sm sprint close # Close sprint with metrics
`
Key Concepts
$3
The Feature Canon is the single source of truth for system behavior. It lives in projects/ and contains:
- Feature Files — Define what the system does
- Features Index — Registry of all features
- Story Ledger — Tracks how features evolved through stories
$3
Stories describe changes (deltas) to the Feature Canon, not full behavior:
`markdown
$3
Reference: F-001, Section: User Registration
$3
Email confirmation is now optional for OAuth users.
`
$3
Stories move through workflow folders:
1. stories/backlog/ — FA creates new stories here
2. stories/ready-to-refine/ — FA moves stories ready for dev refinement
3. stories/ready-for-development/ — DEV moves refined stories here
4. Sprint — SM assigns to active sprint
Configuration
Edit .teamspec/context/team.yml to customize:
`yaml
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: false
`
Development
$3
`bash
cd cli
npm link
teamspec --help
`
$3
`bash
npm test
``