Key Features
SpecWeave provides a comprehensive suite of tools and workflows for building production-grade software with AI assistance.
⚡ One Command = Many Prompts
Stop dictating the same things over and over. Every app needs auth, tests, docs, deployment - SpecWeave handles the repetitive workflows with single commands.
| What You Used To Dictate | SpecWeave Command |
|---|---|
| "Create spec with user stories and acceptance criteria..." | /sw:increment "feature" |
| "Implement this, run tests, fix failures, repeat until green..." | /sw:auto (runs for hours autonomously) |
| "Update GitHub issue and JIRA with my progress..." | /sw:sync-progress |
| "Review this code for security vulnerabilities..." | Skills auto-activate on keywords |
| "Commit everything, push, and create a PR..." | /sw:save |
The expertise is built-in:
- 15+ AI agents work in parallel (PM, Architect, QA, Security, DevOps)
- Skills auto-activate when you mention keywords - no need to ask for expertise
- Quality gates enforce senior dev practices automatically
- Patterns learned once become defaults everywhere
Real-world proof: 5 production apps built with SpecWeave. Then 10 and 14-year-old daughters learned to build apps too - because the expertise is in the framework, not in knowing what to ask.
🚀 Two Ways to Work (Flexibility for All Project Sizes)
Interactive Quick Build
Perfect for: Small projects, prototypes, learning
Simply describe what you want - SpecWeave guides you through interactive prompts:
- Approach - Quick build or spec-first planning
- Features - Multi-select checkboxes for capabilities
- Tech Stack - Choose your tools
- Review & Submit - Confirm and start building
Result: 2 minutes from idea to working code
Example:
"build a very simple web calculator app"
→ Select features: ☑ Basic ops ☑ Keyboard ☑ History
→ Choose stack: React
→ Build! 🚀
Specification-First Workflow
Perfect for: Production features, team projects, complex systems
Professional planning with slash commands and multi-agent coordination:
/sw:increment "user authentication"
# PM, Architect, QA agents create:
# ✅ spec.md (requirements with AC-IDs)
# ✅ plan.md (architecture + test strategy)
# ✅ tasks.md with embedded tests
/sw:do
# Implement with hooks auto-updating docs
Both approaches use the same powerful plugin system and multi-agent architecture under the hood!
🎯 Specification-First Development
Append-Only Snapshots + Living Documentation
SpecWeave's Core Power: Maintains both historical audit trails and current documentation simultaneously.
The Innovation: Unlike traditional documentation that gets outdated or loses historical context, SpecWeave gives you BOTH:
📸 Append-Only Increment Snapshots (Historical Context)
.specweave/increments/
├── 0001-user-authentication/
│ ├── spec.md # What was planned (AC-IDs)
│ ├── plan.md # How it was built + test strategy
│ ├── tasks.md # What was done + embedded tests
│ └── logs/ # Execution history
├── 0002-oauth-integration/ # Extends/modifies 0001
└── 0003-password-reset/ # Related feature
Never modified after completion - Complete audit trail of every feature built.
📄 Living Up-to-Date Documentation (Current State)
.specweave/docs/
├── internal/
│ ├── strategy/ # WHAT and WHY (PRDs, user stories)
│ ├── architecture/ # HOW (system design, ADRs, RFCs)
│ ├── delivery/ # Roadmap, release plans
│ ├── operations/ # Runbooks, SLOs, monitoring
│ └── governance/ # Security, compliance
└── public/ # Customer-facing documentation
Auto-updated after each task - Always reflects current code state.
Why This Matters
| Problem | Traditional Approach | SpecWeave Solution |
|---|---|---|
| "Why did we do it this way?" | Context lost, tribal knowledge | Read historical increment snapshots |
| "What's the current architecture?" | Docs outdated | Living docs auto-updated |
| "What changed in this feature?" | Git commits only | Complete increment snapshot with spec, plan, tests |
| "Prove compliance" | Reconstruct from memory | Complete audit trail in increments |
| "Onboard new developer" | Days of reading code | Read current docs + historical increments |
Real-World Benefits
- Compliance-Ready: SOC 2, HIPAA, FDA audits have complete paper trail
- Context Recovery: Understand decisions made 6 months ago
- Impact Analysis: See all related changes by searching increments
- Rollback Intelligence: Know exactly what to revert
- Knowledge Transfer: No tribal knowledge silos
- Debugging: Trace feature evolution across increments
Think of it as "Git for Specifications":
- Increments = commits (immutable snapshots)
- Living docs = working directory (current state)
- Both essential, both version controlled
5-Pillar Documentation Structure
Living documentation organized by purpose:
🧠 Context Precision (70%+ Token Reduction)
Progressive Disclosure (Native Claude)
SpecWeave uses Claude's native progressive disclosure mechanism - no RAG or vector databases needed:
- CLAUDE.md: Always visible reference with living docs locations
- Skills: Metadata loads first (~75 tokens), full content on-demand
- Living Docs Navigator: Built-in skill that teaches Claude WHERE to look and HOW to search
- Explicit Loading:
/sw:context <topic>loads relevant docs into conversation
How It Works
User: "Implement user authentication"
↓
Claude reads CLAUDE.md (always loaded)
↓
Sees: "Before implementing: Check existing docs"
↓
Searches: grep -ril "auth" .specweave/docs/internal/
↓
Finds: ADRs, specs, architecture docs
↓
Reads only relevant files
↓
Implements with full context
Why Not RAG? Progressive disclosure is simpler, cheaper, and more accurate:
- No vector DB infrastructure
- No embedding approximations - reads actual content
- No index staleness - always current files
- Zero cost - native Claude capability
Result: Load exactly what's needed, save 70%+ on AI costs.
See Who Benefits from Living Docs for details.
🤖 AI Agents & Skills
11 Core Agents
| Agent | Role | Expertise |
|---|---|---|
| PM | Product Manager AI | Requirements, user stories, market research, roadmaps |
| Architect | System Architect | Design, ADRs, component architecture, C4 diagrams |
| Tech Lead | Technical Lead | Code review, best practices, technical guidance |
| QA Lead | Quality Assurance | Test strategy, test cases, coverage validation |
| Security | Security Engineer | Threat modeling, security scanning, vulnerability analysis |
| Performance | Performance Engineer | Optimization, profiling, scalability analysis |
| Docs Writer | Technical Writer | Documentation creation, guides, API references |
| TDD Orchestrator | TDD Master | Red-Green-Refactor workflow, test-first development |
| Test-Aware Planner | Test Planning Specialist | Test case generation, AC-ID mapping, coverage targets |
| Translator | Multilingual Support | Content translation, i18n workflows |
| Code Reviewer | Code Review Specialist | Quality gates, code analysis, review automation |
Auto-Role Routing
Skills automatically detect expertise and route requests:
``` User: "Create authentication system" → specweave-detector activates → Routes to increment-planner → Invokes PM, Architect, Tech Lead agents → Generates complete spec + architecture + plan ```
🧪 Test-Validated Development
Test-Aware Planning
-
Specification Acceptance Criteria (AC-ID format: AC-US1-01)
- Business-level acceptance criteria in spec.md
- Technology-agnostic validation
- Linked to user stories
-
Embedded Test Plans (tasks)
- BDD format (Given/When/Then) per task
- Maps AC-IDs to test implementations
- Coverage targets (80-90% per task)
-
Skill Test Cases (YAML-based)
- Minimum 3 tests per skill
- Structured validation
-
Code Tests (Automated)
- E2E with Playwright (MANDATORY for UI)
- Unit and integration tests
-
80% coverage for critical paths
Truth-Telling Requirement
E2E tests MUST tell the truth:
- ✅ If test passes → feature actually works
- ✅ If test fails → exactly what failed
- ❌ No false positives
- ❌ No masking failures
📊 Mermaid Diagrams (C4 Model)
Architecture Visualization
SpecWeave uses the C4 Model for architecture diagrams:
- C4-1: Context - System boundaries, external actors
- C4-2: Container - Applications, services, databases
- C4-3: Component - Internal structure
- C4-4: Code - Class diagrams (optional)
Example Diagram
```mermaid C4Context title System Context Diagram for SpecWeave
Person(user, "Developer", "Uses SpecWeave to build software") System(specweave, "SpecWeave", "Spec-Driven Development Framework") System_Ext(claude, "Claude Code", "AI coding assistant") System_Ext(github, "GitHub", "Version control and CI/CD")
Rel(user, specweave, "Uses") Rel(specweave, claude, "Invokes agents") Rel(specweave, github, "Syncs increments") ```
🌐 Framework-Agnostic
Supports ANY Tech Stack
- TypeScript/JavaScript: Next.js, NestJS, Express, React
- Python: FastAPI, Django, Flask
- Go: Gin, Echo, Fiber
- Rust: Actix, Rocket, Axum
- Java: Spring Boot, Quarkus
- C#/.NET: ASP.NET Core, Blazor
Auto-Detection
SpecWeave detects your tech stack from:
package.json→ TypeScript/JavaScriptrequirements.txt/pyproject.toml→ Pythongo.mod→ GoCargo.toml→ Rustpom.xml/build.gradle→ Java*.csproj→ C#/.NET
🔄 Incremental Development
Auto-Numbered Increments
``` .specweave/increments/ ├── 0001-user-authentication/ │ ├── spec.md # What and Why (with AC-IDs) │ ├── plan.md # How (architecture + test strategy) │ ├── tasks.md # Checklist + embedded tests │ ├── logs/ # Execution logs │ ├── scripts/ # Helper scripts │ └── reports/ # Completion reports └── 0002-payment-processing/ └── ... ```
WIP Limits
Prevent context-switching:
- Solo/small teams: 1-2 in progress
- Large teams: 3-5 in progress
- Force override: Available but discouraged
🔗 External Tool Sync (GitHub/JIRA/ADO)
No Tool Lock-in: SpecWeave integrates with your existing project management tools. Keep your workflow—just add specifications.
Why This Matters
| Problem | Without SpecWeave | With SpecWeave |
|---|---|---|
| Team uses JIRA | Abandon JIRA or maintain two systems | Specs push to JIRA, status reads back |
| GitHub Issues workflow | Manual updates, drift | Auto-sync progress to issues |
| Azure DevOps enterprise | Complex migration | Native integration, no disruption |
| Multiple tools | Constant context switching | SpecWeave syncs to all |
GitHub Issues Sync
/sw-github:sync
- Milestones ↔ Release Plans
- Issues ↔ User Stories/Tasks with checkable subtasks
- Progress auto-updates as tasks complete
- Labels auto-generated from increment metadata
JIRA Sync
/sw-jira:sync
- Content sync - specs push to JIRA, status reads back
- Epics ↔ Features/Increments
- Stories ↔ User Stories (PRDs/RFCs)
- Tasks ↔ Tasks with AC-ID mapping
Azure DevOps Sync
/sw-ado:sync
- 4-level hierarchy support (Epics → Features → User Stories → Tasks)
- Area Paths and Iterations mapping
- Work item synchronization with status updates
- Enterprise-ready with PAT authentication
Key Benefits
- Keep Your Workflow - Teams continue using familiar tools
- Single Source of Truth - Specs drive everything, tools reflect state
- Auto-Sync Progress - Complete a task → issue updates automatically
- Gradual Adoption - Start with one project, expand when ready
- Audit Trail - All syncs logged in increment metadata
🏢 Brownfield Excellence (The Hardest Problem Solved)
Why Brownfield is Most Complicated
Brownfield projects are the ultimate challenge in software development:
-
❌ Existing codebase with zero or outdated documentation
-
❌ Tribal knowledge scattered across team members
-
❌ Risk of breaking production with every change
-
❌ Need to merge with existing docs, wikis, Confluence pages
-
❌ Complex architecture that was never properly documented
-
❌ Living documentation that stays current as code evolves
Most frameworks give up here. SpecWeave excels.
Intelligent Documentation Merging
SpecWeave's brownfield-onboarder skill intelligently consolidates existing documentation:
"Read brownfield-onboarder skill and merge my existing docs/"
What it does:
-
📄 Extracts knowledge from existing docs, wikis, Confluence, legacy CLAUDE.md
-
🧠 Preserves context - historical decisions, team conventions, domain knowledge
-
📁 Distributes intelligently - routes content to appropriate SpecWeave folders
- Strategy docs →
.specweave/docs/internal/strategy/ - Architecture →
.specweave/docs/internal/architecture/ - Operations →
.specweave/docs/internal/operations/
- Strategy docs →
-
🎯 No bloat - smart organization without polluting CLAUDE.md
Retroactive Architecture Documentation
Create comprehensive architecture for existing systems without disrupting production:
"Analyze authentication module and create complete architecture docs"
SpecWeave generates:
High-Level Design (HLD)
-
System architecture overview
-
Component relationships
-
Data flow diagrams
-
Integration points
Architecture Decision Records (ADRs)
-
ADR-0001: Why we chose JWT over sessions
-
ADR-0002: OAuth 2.0 provider selection rationale
-
ADR-0003: Token refresh strategy
-
Status: Accepted (for existing patterns) or Proposed (for changes)
C4 Model Diagrams
-
C4-1 Context: System boundaries, external actors
-
C4-2 Container: Services, databases, APIs
-
C4-3 Component: Internal module structure
-
Sequence Diagrams: Login flow, token refresh, logout
-
ER Diagrams: User, Session, Token data models
Example:
"Create complete architecture documentation for auth system"
# Generates:
# - .specweave/docs/internal/architecture/hld-authentication.md
# - .specweave/docs/internal/architecture/adr/0001-jwt-tokens.md
# - .specweave/docs/internal/architecture/adr/0002-oauth-provider.md
# - .specweave/docs/internal/architecture/diagrams/auth-context.c4.mmd
# - .specweave/docs/internal/architecture/diagrams/auth-container.c4.mmd
# - .specweave/docs/internal/architecture/diagrams/auth-component.c4.mmd
# - .specweave/docs/internal/architecture/diagrams/login-sequence.mmd
Living Documentation That Never Gets Stale
The killer feature for brownfield: documentation that auto-updates as code evolves.
How it works:
-
Initial Documentation - SpecWeave creates complete specs, HLDs, ADRs, diagrams
-
Code Changes - You modify code using
/sw:do -
Auto-Update - Hooks automatically update:
- Specifications reflect new requirements
- ADRs move from Proposed → Accepted
- Architecture diagrams update with new components
- HLDs reflect current system state
- RFCs document new patterns
-
Always Current - Documentation never drifts from code
Technologies:
-
Claude Hooks - Post-task-completion hook runs after every task
-
Living Docs Sync -
/sw:sync-docs updatepropagates changes -
Version Control - All docs in Git, full history preserved
Structure Evolution and Maintenance
As your brownfield project grows, SpecWeave grows the documentation structure:
Scenario: Adding new payment module
/sw:increment "payment processing module"
SpecWeave automatically:
-
Creates new strategy docs:
.specweave/docs/internal/strategy/payments/ -
Generates architecture docs with ADRs
-
Links to existing auth system (dependency tracking)
-
Updates system-level HLD to include payment module
-
Adds payment module to C4 Container diagram
-
Creates RFCs for new patterns
-
Maintains incremental history in
.specweave/increments/
Result: Your documentation structure organically evolves with your codebase.
Regression Prevention (Safety First)
Before modifying any existing code, SpecWeave enforces safety:
-
✅ Analyze current implementation
- Reads existing code
- Maps dependencies
- Identifies integration points
-
✅ Generate retroactive specifications
- Documents current behavior (WHAT/WHY)
- Creates architecture docs (HOW)
- Maps data flows
-
✅ Create baseline tests
- Captures current behavior in tests
- Prevents accidental regression
- Serves as living documentation
-
✅ Impact analysis
- Dependency graph generation
- Affected modules identification
- Risk assessment
-
✅ User review and approval
- You review generated docs
- Approve changes before implementation
-
✅ Safe implementation
- Modify code with confidence
- Baseline tests catch regressions
- Living docs stay current
Real-World Brownfield Scenario
Before SpecWeave:
Existing Project Problems:
❌ 50K+ lines of code, zero documentation
❌ Original developers left, tribal knowledge lost
❌ Need to add OAuth, terrified of breaking login
❌ Scattered docs in Confluence, wikis, old READMEs
❌ Architecture decisions unknown
❌ Every change risks production
After SpecWeave:
# Day 1: Initialize and merge
npx specweave init .
"Merge existing Confluence docs and wiki pages"
# ✅ All knowledge consolidated in SpecWeave structure
# Day 2: Document existing auth
"Analyze authentication module and create full documentation"
# ✅ HLDs, ADRs, C4 diagrams generated
# ✅ Current implementation fully documented
# Day 3: Create baseline tests
"Create comprehensive tests for current auth behavior"
# ✅ Regression prevention in place
# Day 4: Add OAuth safely
/sw:increment "Add OAuth 2.0 support"
/sw:do
# ✅ OAuth added with:
# - Updated specs and ADRs
# - Extended architecture diagrams
# - Baseline tests prevent regression
# - Living docs auto-updated
# Day 5 onward: Maintain forever
# ✅ Every change auto-updates documentation
# ✅ Architecture diagrams always current
# ✅ ADRs reflect actual decisions
# ✅ No documentation drift ever
Compliance and Audit Trail
Brownfield + SpecWeave = Compliance-Ready
Perfect for regulated industries:
-
🏥 Healthcare (HIPAA) - Complete audit trail, document all changes
-
🏦 Finance (SOC 2, PCI-DSS) - Prove compliance with specifications
-
🏛️ Government (FedRAMP) - Architecture documentation required
-
💊 Pharmaceutical (FDA) - Validation documentation mandatory
What you get:
-
✅ Complete change history (increments never deleted)
-
✅ Decision rationale (ADRs for all choices)
-
✅ Test validation (4-level testing strategy)
-
✅ Living documentation (always current)
-
✅ Traceability (specs → code → tests)
🎨 Documentation Approaches
Comprehensive Upfront (Enterprise)
- 500-600+ page specifications before coding
- Full architecture and ADRs upfront
- Complete API contracts
- Best for: Enterprise, regulated industries
Incremental/Evolutionary (Startup)
- Start with overview (10-20 pages)
- Build documentation as you go
- Adapt to changing requirements
- Best for: Startups, MVPs, prototypes
Both approaches fully supported!
⚙️ Claude Hooks (Auto-Update)
Post-Task-Completion Hook
Automatically:
- Updates CLAUDE.md when structure changes
- Updates API/CLI reference
- Updates changelog
- Commits doc changes
Pre-Implementation Hook
Checks regression risk before modifying existing code.
Human-Input-Required Hook
Logs and notifies when AI needs clarification.
📦 Slash Commands
Framework-agnostic commands:
Core Commands:
/sw:increment "feature"- Plan new increment (PM-led)/sw:do- Execute tasks (smart resume)/sw:progress- Check status and completion/sw:validate 0001- Optional quality assessment/sw:done 0001- Manual close (rarely needed)
Integration Commands:
/sw:sync-github- Sync to GitHub issues/sw:sync-docs- Review specs vs implementation
All commands adapt to detected tech stack.
🎯 Additional Capabilities
✅ Already Implemented
-
Multi-language support: Work in 11 languages with FREE LLM-native translation
- Supports: English, Russian, Spanish, Chinese, German, French, Japanese, Korean, Portuguese
- Auto-translates specs, plans, tasks, and living docs to English
- Zero translation costs (uses same LLM session)
-
Cost optimization: 70-98% token reduction through code-first architecture
- Skills load on-demand (not all tools upfront)
- Code execution beats MCP tool calls (Anthropic research)
- Sub-agents isolate context (no bloat accumulation)
- Typical savings: $60-120/month per developer
-
Figma integration: Design sync capabilities via sw-figma plugin
- Import Figma designs into SpecWeave specs
- Track design-to-code alignment
🔜 Roadmap
-
Lazy Plugin Loading (v1.1): 99% token reduction for non-SpecWeave work
- Router skill (~500 tokens) installed by default instead of 24 full plugins
- Keyword detection triggers on-demand plugin loading
- Skills cache at
~/.specweave/skills-cache/for instant activation - Hot-reload leverages Claude Code 2.1.0+ skill activation
- Context forking for heavy skills (PM, Architect) in isolated sub-agents
- Migration path:
specweave migrate-lazyfor existing installations - See increment 0171 for full specification
-
Vector search: Semantic spec search across all increments (v2.0)
-
Enterprise analytics: Advanced compliance tracking and team metrics
Ready to get started?
- Quickstart Guide - Get up and running in 5 minutes
- Installation - Detailed installation instructions
Previous: What is SpecWeave? | Next: Philosophy →