specweave
v1.0.14
Published
Spec-driven development framework for Claude Code. AI-native workflow with living documentation, intelligent agents, and multilingual support (9 languages). Enterprise-grade traceability with permanent specs and temporary increments.
Downloads
17,012
Maintainers
Readme
SpecWeave
Finally. A Framework That Works on Legacy, Startup, AND Enterprise.
Drop it into a 10-year-old codebase — it understands everything. Use it on your weekend MVP — specs write themselves. Scale it to 50 teams — JIRA, GitHub, Azure DevOps sync automatically.
🎉 v1.0.2 — Critical Bug Fix!
npm install -g specweaveCritical Fix: GitHub private repos now properly fetched during init. Pattern matching (starts:, regex) works with private repos. See release notes →
🔄 Built With SpecWeave (Dogfooding)
SpecWeave is 100% built using SpecWeave. Every feature, every bug fix, every release — all spec-driven.
This isn't just a framework we made — it's the framework we use every day. Our entire development workflow runs on SpecWeave:
- 140+ completed increments with full specs, plans, and tasks
- Living docs that auto-update via event-driven hooks
- DORA metrics tracking real delivery performance
- Code-as-source-of-truth discrepancy detection built-in
→ Live Dashboard | → Detailed Report | → Browse Our Increments
Why Not BMAD or SpecKit?
Great tools for simple greenfield projects. But when things get real:
- BMAD — Constant role-switching (PM → Architect → Dev). Multi-step prompts for every action. Works until you have 5+ services or existing documentation.
- SpecKit — GitHub's excellent open-source toolkit (28k+ stars, Sept 2025). Same 4-phase workflow (Specify → Plan → Tasks → Implement). Clean and minimal — perfect for single-project greenfield MVPs.
- Both — Break down with legacy codebases, multi-repo setups, existing documentation sprawl, and enterprise compliance requirements.
SpecKit → SpecWeave: The Mathematical Relationship
SpecKit is a particular case of SpecWeave — specifically, it's equivalent to creating ONE SpecWeave increment with no lifecycle management afterward:
SpecKit output ≡ ONE SpecWeave increment (spec.md + plan.md + tasks.md)
SpecWeave = N increments + lifecycle + external sync + living docs + hooksIn set theory terms: SpecKit ⊂ SpecWeave — every SpecKit capability exists in SpecWeave, but SpecWeave adds the enterprise layer:
| Capability | SpecKit | SpecWeave | |------------|---------|-----------| | Workflow | Specify → Plan → Tasks → Implement | Same + living docs + hooks + quality gates | | Projects | Single project | Multi-project, multi-repo, umbrella setups | | External Tools | None | GitHub Issues, JIRA, Azure DevOps (bidirectional) | | Documentation | Snapshot (static specs) | Living docs (auto-update after every task) | | Codebase Type | Greenfield only | Greenfield + Brownfield (10-year legacy? Fine.) | | Team Scale | Solo/small team | Solo to 50+ teams | | Quality Gates | None | 3-gate validation (tasks, tests 60%+, docs) | | Plugin Ecosystem | Minimal | Hooks, skills, agents, multi-AI support |
SpecWeave — Drop into any codebase. Sync with JIRA/GitHub/ADO. Handle 50 teams or solo MVPs. One workflow.
What Makes SpecWeave Different
Every AI coding tool promises productivity. But after the chat ends:
- Your specs disappear into chat history
- Your architecture decisions are forgotten
- Your tests are never written
- Your GitHub/JIRA stays outdated
- New team members start from zero
SpecWeave is the only framework where AI decisions become permanent, searchable documentation.
The Workflow
Quick Start
# Install SpecWeave (v1.0.1 — production ready)
npm install -g specweave
# Initialize your project
cd your-project
specweave init . # Creates single-project config by defaultThen in Claude Code:
/sw:increment "Add dark mode toggle" # AI creates spec + plan + tasks
/sw:do # Autonomous implementation
/sw:done 0001 # Quality-validated completionSingle-project by default: SpecWeave defaults to simple single-project mode. Need multiple projects? Run /sw:enable-multiproject when ready.
Pro tip: Use /sw:next to flow through the entire cycle. One command auto-closes completed work and suggests what's next — review specs/tasks when needed, otherwise just keep clicking "next".
Key Strengths
- Legacy to Enterprise — 10-year-old monolith? Startup MVP? 50-team enterprise? Works on all.
- Any AI, Your Choice — Claude, GPT, Gemini, Copilot — your team uses whatever they prefer
- Real Bidirectional Sync — JIRA/GitHub/ADO sync on command with permission controls
- Code = Source of Truth — Discrepancy detection catches when docs drift from reality
- Event-Driven Hooks — Living docs update on lifecycle events (done, archived, reopened)
- Multi-Project Mode — Multiple repos, multiple teams, one source of truth
- 3-Gate Quality Validation — Nothing ships without passing tasks, tests (60%+), and docs
- 70%+ Token Reduction — Progressive loading means your AI stays fast and focused
- Background Jobs — Large imports and analysis run asynchronously while you work
External Tool Integration
SpecWeave keeps your project management tools in sync automatically:
| Platform | Capabilities | |----------|--------------| | GitHub Issues | Create, update, close, progress sync, checkbox tracking | | JIRA | Epic/Story hierarchy, status sync, custom fields | | Azure DevOps | Work items, area paths, status sync | | Linear | Coming Q1 2026 |
Sync Orchestration (NEW)
SpecWeave includes sync monitoring to keep track of external tool state:
/sw:sync-progress # Push updates to GitHub/JIRA/ADO
/sw:sync-monitor # Dashboard: sync status, notifications
/sw:notifications # View/dismiss sync notificationsKey principle: Code is the source of truth. When your living docs describe one thing but code does another, SpecWeave detects the discrepancy and notifies you:
📋 DISCREPANCIES DETECTED
DISC-0001 ⚠️ MAJOR function-signature getUserById params changed
DISC-0002 ✅ MINOR api-route New endpoint added
Use '/sw:discrepancies accept DISC-0001' to update specsWhat You Get
| Before | After SpecWeave |
|--------|-----------------|
| Specs in chat history | Permanent, searchable specs |
| Manual JIRA/GitHub updates | Auto-sync on /sw:sync-progress |
| Tests? Maybe later... | Tests embedded in tasks (60%+ enforced) |
| Architecture in your head | ADRs captured automatically |
| "Ask John, he knows" | Living docs, always current |
| Docs drift from code | Discrepancy detection alerts you |
| Large imports block work | Background jobs run async |
| Onboarding: 2 weeks | Onboarding: 1 day |
The Three-File Foundation
Every feature generates three permanent files:
.specweave/increments/0001-dark-mode/
├── spec.md ← WHAT: User stories, acceptance criteria, requirements
├── plan.md ← HOW: Architecture, tech decisions, ADRs
└── tasks.md ← DO: Implementation tasks with embedded testsspec.md (WHAT)
## User Stories
### US-001: Dark Mode Toggle
As a user, I want to toggle dark mode so that I can reduce eye strain at night.
**Acceptance Criteria:**
- [x] AC-US1-01: Toggle switch in settings persists preference
- [x] AC-US1-02: Theme applies to all components instantly
- [ ] AC-US1-03: System preference detected on first visittasks.md (DO)
### T-001: Implement Theme Provider
**User Story**: US-001
**Satisfies ACs**: AC-US1-01, AC-US1-02
**Status**: [x] completed
**Embedded Tests** (AC-US1-01):
- test_theme_toggle_persists_to_localstorage
- test_theme_applies_to_all_components
- test_toggle_updates_ui_instantlyWhen to Use Increments
Not every change needs an increment. The rule of thumb:
| Change Type | Use Increment? | Why | |-------------|----------------|-----| | Typo fix, version bump | No | Zero learning, purely mechanical | | Bug fix that taught you something | Yes | Capture the knowledge for future devs | | Any user-facing change | Yes | Track delivery, enable DORA metrics | | Architecture decision | Yes | Needs ADR for future understanding |
The principle: If you'd explain this change to a colleague, document it in an increment.
Increments capture knowledge. Ad-hoc work is ephemeral. When teams routinely do meaningful work without increments, they lose:
- Traceability — Why was this decision made?
- Knowledge transfer — How does this system work?
- Metrics accuracy — DORA metrics reflect reality
Quick check before ad-hoc work: "Will I remember why I made this change in 6 months?" If no → increment.
Key Features
Works With ANY AI Tool
SpecWeave's power isn't in Claude magic. It's in structure.
spec.mdis just markdown — any AI can read ittasks.mdis just markdown — any AI can update it- Acceptance criteria are just checkboxes — universal
Team with mixed AI tools? Sarah uses Claude. Mike uses GPT-4. Alex uses Copilot. Everyone works on the same specs. Same tasks. Same acceptance criteria. The sync still works.
Claude Code gets the best experience (slash commands, hooks, skills). But any AI can participate.
Living Documentation (Event-Driven)
Documentation updates on lifecycle events via hooks — not on every edit, but when it matters:
| Event | What Updates |
|-------|--------------|
| increment.created | New spec entry added to living docs |
| increment.done | Marked complete, archived if configured |
| user-story.completed | Status line refreshed, progress synced |
| increment.reopened | Restored from archive |
No more stale docs. The system detects when all tasks AND all ACs for a user story are complete, then fires the right hooks. Race conditions? Handled. Crashes? Graceful degradation.
Quality Gates
Three gates before any increment closes:
- Tasks: All tasks marked complete
- Tests: 60%+ coverage minimum (configurable)
- Documentation: Living docs updated
Token Efficiency
70%+ context reduction through:
- Progressive plugin loading (load only what you need)
- Skills auto-activate based on keywords
- Context optimizer removes irrelevant specs
- Sub-agent parallelization isolates context
Extensible by Design
SpecWeave is a framework, not a locked product. Customize everything through CLAUDE.md instructions:
# In your CLAUDE.md:
## Custom Sync Rules
When syncing to JIRA, always:
- Add custom field "Team: Backend" for backend increments
- Map "paused" status to "Blocked" instead of "On Hold"
- Include sprint field from our sprint naming convention
## Custom Quality Gates
Before closing any increment:
- Run `npm run lint:strict` in addition to tests
- Verify changelog entry exists
- Check that API docs are regenerated
## Custom Workflow
After completing a task:
- Post notification to #dev-updates Slack channel
- Update our internal tracking spreadsheet via webhookWhat you can customize:
- External sync behavior — Add fields, transform statuses, integrate with internal tools
- Quality gates — Add custom validation, linting, security scans
- Lifecycle hooks — Trigger actions on increment events (created, done, paused)
- Agent behavior — Override default agent prompts for your domain
- Naming conventions — Enforce team-specific ID formats, branch names
Why Skills, Not MCP?
Community insight: Anthropic's engineering team discovered that code execution beats direct tool calls for AI agent efficiency.
The MCP Problem: | Issue | Impact | |-------|--------| | Tool definition bloat | All tools loaded upfront → context waste | | Data duplication | Same data flows through model 2-3× | | Token explosion | 150,000 tokens vs 2,000 with code-first |
SpecWeave's Approach:
❌ MCP: Load 50 tools → model picks → fetch → model processes → call another
✅ Skills: Load 1 skill on-demand → Claude writes code → process locally"LLMs are adept at writing code and developers should take advantage of this strength." — Anthropic Engineering
Result: 98%+ token reduction, deterministic execution, reusable skill library.
Commands Reference
Core Workflow (daily use):
| Command | Purpose |
|---------|---------|
| /sw:increment "feature" | Plan new increment (PM → Architect → Tasks) |
| /sw:do | Execute all tasks autonomously |
| /sw:done 0001 | Complete with quality gate validation |
| /sw:next | Auto-close + suggest next work (one-click flow) |
| /sw:progress | Show real-time status |
Sync & Monitoring (stay in sync):
| Command | Purpose |
|---------|---------|
| /sw:sync-progress | Sync to GitHub/JIRA/ADO |
| /sw:sync-monitor | Dashboard: jobs, notifications, activity |
| /sw:notifications | View/dismiss sync alerts |
| /sw:discrepancies | Code-to-spec drift detection |
Brownfield (legacy codebases):
| Command | Purpose |
|---------|---------|
| /sw:discrepancy-to-increment | Convert doc gaps to increments |
| /sw:jobs | Monitor background analysis/import |
| /sw:import-external | Import from GitHub/JIRA/ADO |
Quality (ship with confidence):
| Command | Purpose |
|---------|---------|
| /sw:validate 0001 | Run quality checks |
| /sw:tdd-cycle | Full red-green-refactor workflow |
| /sw:check-tests | Validate test coverage |
53 total commands — Full Command Reference
Legacy, Startup, or Enterprise — It Just Works
10-Year-Old Legacy Codebase?
specweave init .
# During init, choose "Run brownfield analysis" to scan for documentation gaps
# Or run manually later: /sw:discrepanciesWhat happens? Brownfield analysis scans your codebase and creates discrepancies — actionable documentation gaps:
missing-docs— Undocumented code exportsstale-docs— Documentation out of sync with codeknowledge-gap— Single-contributor modules (bus factor risk)orphan-doc— Docs for deleted codemissing-adr— Significant patterns without ADRs
Convert discrepancies to increments:
/sw:discrepancies # View all gaps
/sw:discrepancy-to-increment DISC-0001 # Create increment from gapFresh Startup MVP?
specweave init .
/sw:increment "Build user auth" # Full spec in 60 seconds50-Team Enterprise?
specweave init . # Start with single-project
/sw:enable-multiproject # Explicit opt-in when ready
# Maps to JIRA projects, ADO area paths, GitHub repos automaticallyImport from Notion, Confluence, GitHub Wiki. AI classifies docs automatically.
Requirements
- Node.js 20+
- Claude Code with Claude Opus 4.5 (recommended) — released Nov 2025
- Git repository
Why Opus 4.5? 2-3x Faster Development!
With Claude Opus 4.5, development speed increases 2-3x (some report 5-10x!). The key: formulate small, well-defined increments (5-15 tasks), and Opus completes them almost without manual interaction. Just define requirements, run /sw:do, and review what's done.
Community
- Documentation - Full guides and tutorials
- Discord - Get help, share tips
- YouTube - Video tutorials
- GitHub Issues - Bug reports and features
Contributing
git clone https://github.com/anton-abyzov/specweave.git
cd specweave
npm install && npm run build
npm testLicense
MIT - github.com/anton-abyzov/specweave
Legacy. Startup. Enterprise. One framework that actually works everywhere.
npm install -g specweaveFortune 500 companies pay millions for systems like this. This? Free. Open source.
