Skip to main content

Commands Overview

SpecWeave provides slash commands for every stage of your development workflow. This page covers the main workflow commands you'll use daily.

No Shortcuts

All commands MUST use the /specweave:* namespace prefix. Shortcuts like /inc, /do, /pause, /resume (without the namespace) conflict with Claude Code's native commands and other repositories.

The Core Workflowโ€‹

Pro tip: Use /specweave:next instead of /specweave:done โ€” it auto-closes and suggests next work!

1. Planning Commandsโ€‹

/specweave:increment - Create New Incrementโ€‹

Most frequently used command - Start every new feature here.

/specweave:increment "User authentication with JWT"
/specweave:increment "Payment processing with Stripe"
/specweave:increment "Real-time notifications"

What it does:

  • ๐Ÿ” Detects tech stack automatically
  • ๐Ÿ“‹ PM-led planning (market research, spec.md, plan)
  • โœ… Auto-generates tasks.md from plan
  • ๐Ÿงช Creates test strategy
  • ๐Ÿ‘ฅ Strategic agent review (Architect, Security, QA, Tech Lead)

See: ADR (Architecture Decision Records) for design decisions made during planning.

Reference: Command Decision Tree for workflow guidance.


2. Implementation Commandsโ€‹

/specweave:do - Execute Tasksโ€‹

Smart auto-resume - Continue from where you left off.

/specweave:do           # Auto-finds active increment
/specweave:do 0007 # Specific increment

What it does:

  • ๐ŸŽฏ Resumes from last incomplete task
  • ๐Ÿ”Š Plays sound after each task (via hooks)
  • ๐Ÿ“ Updates docs inline (CLAUDE.md, README.md, CHANGELOG)
  • ๐Ÿ”— Syncs to GitHub (if plugin enabled)
  • ๐Ÿงช Runs tests continuously

Key Features:

  • Cost optimization: Uses Haiku for simple tasks (3x faster, 20x cheaper)
  • Automatic hooks: Runs after EVERY task completion
  • Living docs sync: Updates .specweave/docs/ after all tasks complete

3. Quality Assurance Commandsโ€‹

/specweave:validate - Rule-Based Validationโ€‹

120+ checks - Fast, free validation.

/specweave:validate 0007
/specweave:validate 0007 --quality # Include AI assessment
/specweave:validate 0007 --export # Export suggestions to tasks.md

What it validates:

  • โœ… Consistency (spec โ†’ plan โ†’ tasks)
  • โœ… Completeness (all required sections)
  • โœ… Quality (testable criteria, actionable tasks)
  • โœ… Traceability (AC-IDs, ADR references)

/specweave:qa - Quality Assessment with Risk Scoringโ€‹

Comprehensive quality gate - AI-powered assessment with quantitative risk scoring (Probability ร— Impact).

/specweave:qa 0007                    # Quick mode (default)
/specweave:qa 0007 --pre # Before starting work
/specweave:qa 0007 --gate # Before closing increment
/specweave:qa 0007 --export # Export blockers to tasks.md

7 Quality Dimensions:

  1. Clarity (18% weight)
  2. Testability (22% weight)
  3. Completeness (18% weight)
  4. Feasibility (13% weight)
  5. Maintainability (9% weight)
  6. Edge Cases (9% weight)
  7. Risk Assessment (11% weight)

Quality Gate Decisions:

  • ๐ŸŸข PASS - Ready to proceed
  • ๐ŸŸก CONCERNS - Should fix before release
  • ๐Ÿ”ด FAIL - Must fix before proceeding

Risk Scoring (Probability ร— Impact method):

  • CRITICAL (โ‰ฅ9.0) - Immediate action required
  • HIGH (6.0-8.9) - Address before release
  • MEDIUM (3.0-5.9) - Monitor
  • LOW (<3.0) - Acceptable

/specweave:check-tests - Test Coverage Checkโ€‹

/specweave:check-tests 0007

What it checks:

  • ๐Ÿ“Š Per-task coverage (unit, integration, E2E)
  • โœ… AC-ID coverage (all acceptance criteria tested)
  • ๐ŸŽฏ Overall coverage vs target (80-90%)
  • ๐Ÿ“ Missing tests and recommendations

4. Completion Commandsโ€‹

/specweave:next - Smart Workflow Transitionโ€‹

The flow command - Auto-close current work, suggest next.

/specweave:next

What it does:

  • ๐Ÿ” Validates current increment (3 gates: tasks, tests, docs)
  • ๐ŸŽฏ Auto-closes if all gates pass
  • ๐Ÿ“Š Runs post-closure quality assessment
  • ๐Ÿ’ก Suggests next work (backlog or new feature)

Why use /specweave:next instead of /specweave:done:

/specweave:done/specweave:next
Closes incrementCloses AND suggests next
Requires increment IDAuto-detects active increment
Manual next stepIntelligent recommendations
Single actionComplete workflow transition

Example:

/specweave:next

๐Ÿ“Š Checking current increment...
Active: 0007-user-authentication

๐Ÿ” PM Validation:
โœ… Gate 1: All tasks complete (15/15)
โœ… Gate 2: Tests passing (87% coverage)
โœ… Gate 3: Docs updated

๐ŸŽฏ Auto-closing increment 0007...
โœ“ Quality score: 87/100 (GOOD)

๐ŸŽ‰ Increment 0007 closed!

๐ŸŽฏ Next: 0008-payment-processing (P1, ready to start)
Run: /specweave:do 0008

/specweave:done - Close Incrementโ€‹

PM validation before closing - Ensures quality gates pass.

/specweave:done 0007

What it does:

  • โœ… Validates all tasks complete
  • โœ… Runs /specweave:qa --gate (quality gate check)
  • โœ… PM agent validates completion
  • โœ… Creates completion report
  • ๐Ÿ”— Closes GitHub issues (if plugin enabled)

/specweave:sync-docs - Synchronize Living Documentationโ€‹

Strategic docs sync - Review before implementation, export learnings after.

/specweave:sync-docs review          # Before implementation (review strategic docs)
/specweave:sync-docs update # After implementation (update with learnings)

What it syncs:

  • ๐Ÿ“š ADRs (Proposed โ†’ Accepted)
  • ๐Ÿ—๏ธ Architecture diagrams (planned โ†’ actual)
  • ๐Ÿ“– API documentation (contracts โ†’ endpoints)
  • ๐Ÿ“‹ Feature lists (planned โ†’ completed)

5. Sync & Repository Commandsโ€‹

/specweave:save - Save Changes Across Repositoriesโ€‹

One command for git operations - Works for single repos and multi-repo umbrella setups.

# Auto-generate commit message
/specweave:save

# With explicit message
/specweave:save "feat: Add user authentication"

# Dry run (preview)
/specweave:save --dry-run

What it does:

  • ๐Ÿ“Š Analyzes changes to auto-generate commit message
  • ๐Ÿ” Detects all repos (umbrella or single)
  • โšก Commits and pushes to all repos with one command
  • ๐Ÿ”ง Sets up remotes if missing

Options:

  • --dry-run - Preview without executing
  • --repos <list> - Specific repos only
  • --yes / -y - Accept auto-message without prompt
  • --no-push - Commit only, don't push

/specweave:sync-specs - Sync Specs to Living Docsโ€‹

Quick specs-only sync - Updates user stories and features only.

/specweave:sync-specs 0007
/specweave:sync-specs --dry-run

What it syncs:

  • User stories to .specweave/docs/internal/specs/
  • Feature documentation
  • Bidirectional task links

When to use: After making changes to spec.md and wanting quick sync.


/specweave:sync-progress - Sync to External Toolsโ€‹

Full external sync - Updates all connected platforms.

/specweave:sync-progress
/specweave:sync-progress 0007

What it syncs:

  • Living docs (user stories, features)
  • GitHub Issues (checkboxes, comments)
  • JIRA (if configured)
  • Azure DevOps (if configured)

/specweave:validate-status - Fix Status Lineโ€‹

Validate and auto-fix status line desync.

/specweave:validate-status

What it checks:

  • Task count matches frontmatter
  • Cache matches tasks.md reality
  • Percentage calculations correct

When to use: Status line shows wrong percentage, after manual edits, after git conflicts.


/specweave:workflow - Dashboard Viewโ€‹

Complete workflow navigator - Shows phase, status, and next steps.

/specweave:workflow
/specweave:workflow 0007

What it shows:

  • Current phase (Planning, Implementing, Review, etc.)
  • Task and AC completion
  • External tools status
  • Living docs status
  • Suggested next actions

6. Monitoring Commandsโ€‹

/specweave:progress - Check Increment Progressโ€‹

/specweave:progress
/specweave:progress 0007

What it shows:

  • ๐Ÿ“Š Task completion (15/42 tasks, 36%)
  • โฑ๏ธ Time tracking (1.2 weeks elapsed, 2.1 weeks remaining)
  • ๐ŸŽฏ Current phase and next phase
  • โœ… Recent completions
  • ๐Ÿ“ Upcoming tasks

All Available Commandsโ€‹

Essential Workflow (Use These!)โ€‹

  • /specweave:increment - Plan new increment โญ START HERE
  • /specweave:do - Execute tasks โญ MAIN WORK
  • /specweave:next - Smart workflow transition โญ FLOW COMMAND (auto-close + suggest next)
  • /specweave:progress - Check status โญ VISIBILITY
  • /specweave:validate - Quick validation โญ PRE-CHECK
  • /specweave:qa - Quality assessment โญ QUALITY GATE
  • /specweave:check-tests - Test coverage check โญ TEST VALIDATION
  • /specweave:done - Close increment โญ FINISH
  • /specweave:sync-docs - Synchronize living docs โญ KEEP DOCS CURRENT
  • /specweave:sync-specs - Sync specs only โญ QUICK SPEC SYNC
  • /specweave:sync-progress - Sync to external tools โญ EXTERNAL SYNC
  • /specweave:save - Save & push to all repos โญ MULTI-REPO GIT
  • /specweave:workflow - Dashboard view โญ NAVIGATION
  • /specweave:validate-status - Fix status line โญ STATUS FIX

Workflow Example: Standard Feature Developmentโ€‹

# 1. Plan new feature
/specweave:increment "User authentication"
# โ†’ Creates: spec.md, plan.md, tasks.md

# 2. Review docs (optional)
/specweave:sync-docs review
# โ†’ Review strategic docs before starting

# 3. Pre-check quality (optional)
/specweave:qa 0007 --pre
# โ†’ Pre-implementation quality check

# 4. Implement tasks
/specweave:do 0007
# โ†’ Auto-resumes from last task, hooks fire after each completion

# 5. Check progress
/specweave:progress 0007
# โ†’ See completion status

# 6. Validate quality
/specweave:qa 0007 --gate
# โ†’ Comprehensive quality gate check

# 7. Check test coverage
/specweave:check-tests 0007
# โ†’ Validate all AC-IDs are tested

# 8. Close increment
/specweave:done 0007
# โ†’ PM validates and closes

# 9. Update living docs
/specweave:sync-docs update
# โ†’ Sync learnings to strategic docs

Integration with External Toolsโ€‹

GitHub Issues (via specweave-github plugin)โ€‹

# Create GitHub issue from increment
/specweave-github:specweave-github-create-issue 0007

# Sync progress to GitHub
/specweave-github:specweave-github-sync 0007

# Close GitHub issue when done
/specweave-github:specweave-github-close-issue 0007

Automatic sync: When GitHub plugin enabled, /specweave:do and /specweave:done automatically sync to GitHub.


Best Practicesโ€‹

1. Follow the Core Flowโ€‹

Always use the standard workflow for best results:

  1. /specweave:increment - Plan (START HERE)
  2. /specweave:do - Implement (MAIN WORK)
  3. /specweave:progress - Check status (VISIBILITY)
  4. /specweave:qa - Validate quality (QUALITY GATE)
  5. /specweave:done - Close (FINISH)
  6. /specweave:sync-docs - Update docs (KEEP CURRENT)

2. Validate Early and Oftenโ€‹

# Before starting work
/specweave:qa 0007 --pre

# Before closing
/specweave:qa 0007 --gate

3. Check Test Coverageโ€‹

# Always validate tests before closing
/specweave:check-tests 0007

4. Keep Living Docs Currentโ€‹

# After completing increment
/specweave:sync-docs update

Configurationโ€‹

All commands respect .specweave/config.json:

{
"limits": {
"maxActiveIncrements": 1,
"hardCap": 2
},
"validation": {
"quality_judge": {
"enabled": true,
"always_run": false
}
},
"language": "en",
"translation": {
"enabled": true,
"autoTranslateInternalDocs": true
}
}

Understanding SpecWeave terminology (see full glossary):

  • ADR - Architecture Decision Records
  • RFC - Request for Comments (specification format)
  • API - Application Programming Interface
  • E2E - End-to-End Testing
  • Node.js - JavaScript runtime
  • REST - RESTful API pattern
  • GraphQL - Query language for APIs
  • Microservices - Distributed architecture pattern
  • IaC - Infrastructure as Code

SpecWeave-Specific Terms:

View full glossary โ†’


Next Stepsโ€‹


Philosophy:

SpecWeave commands are designed for intelligent automation. The system detects intent, suggests actions, and handles workflow management - you focus on building.