A
AgentSkill
SkillsAbout
A

AgentSkill

Ā© 2025

Not affiliated with Anthropic

Back to Skills

Specweave

Autonomous AI Development Framework. Build production software with specs, tests, and docs that write themselves. Works with Claude, Cursor, Copilot.

Testing
anton-abyzov
10
2
Updated Dec 15, 2025
aiazure-devopsclaudeclideveloper-toolsdocumentationjiratestingtypescript
View on GitHub

Installation

git clone https://github.com/anton-abyzov/specweave ~/.claude/skills/specweave

SKILL.md

# 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.*

[![NPM Version](https://img.shields.io/npm/v/specweave?color=brightgreen&label=v1.0.2)](https://www.npmjs.com/package/specweave)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Tests](https://github.com/anton-abyzov/specweave/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/anton-abyzov/specweave/actions/workflows/test.yml)
[![Build](https://github.com/anton-abyzov/specweave/actions/workflows/build.yml/badge.svg?branch=develop)](https://github.com/anton-abyzov/specweave/actions/workflows/build.yml)
[![Discord](https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white)](https://discord.gg/UYg4BGJ65V)
[![YouTube](https://img.shields.io/badge/YouTube-Tutorials-red?logo=youtube&logoColor=white)](https://www.youtube.com/@antonabyzov)
[![Run in Smithery](https://smithery.ai/badge/skills/anton-abyzov)](https://smithery.ai/skills?ns=anton-abyzov&utm_source=github&utm_medium=badge)

> ### šŸŽ‰ v1.0.2 — Critical Bug Fix!
> ```bash
> npm install -g specweave
> ```
> **Critical Fix:** GitHub private repos now properly fetched during init. Pattern matching (starts:, regex) works with private repos.
> [See release notes →](https://github.com/anton-abyzov/specweave/releases/tag/v1.0.2)

---

## šŸ”„ 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

[![Deploy Frequency](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/anton-abyzov/specweave/develop/.specweave/metrics/dora-latest.json&query=$.metrics.deploymentFrequency.value&label=Deploy%20Frequency&suffix=/month&color=brightgreen)](https://github.com/anton-abyzov/specweave/blob/develop/.specweave/docs/internal/delivery/dora-metrics.md)
[![Lead Time](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/anton-abyzov/specweave/develop/.specweave/metrics/dora-latest.json&query=$.metrics.leadTime.value&label=Lead%20Time&suffix=h&color=brightgreen)](https://github.com/anton-abyzov/specweave/blob/develop/.specweave/docs/internal/delivery/dora-metrics.md)
[![Change Failure Rate](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/anton-abyzov/specweave/develop/.specweave/metrics/dora-latest.json&query=$.metrics.changeFailureRate.value&label=Change%20Failure%20Rate&suffix=%25&color=brightgreen)](https://github.com/anton-abyzov/specweave/blob/develop/.specweave/docs/internal/delivery/dora-metrics.md)
[![MTTR](https://img.shields.io/badge/dynamic/json?url=https://raw.githubusercontent.com/anton-abyzov/specweave/develop/.specweave/metrics/dora-latest.json&query=$.metrics.mttr.value&label=MTTR&suffix=min&color=brightgreen)](https://github.com/anton-abyzov/specweave/blob/develop/.specweave/docs/internal/delivery/dora-metrics.md)

**[→ Live Dashboard](https://spec-weave.com/docs/metrics)** | **[→ Detailed Report](https://github.com/anton-abyzov/specweave/blob/develop/.specweave/metrics/dora-report.md)** | **[→ Browse Our Increments](https://github.com/anton-abyzov/specweave/tree/develop/.specweave/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](https://github.com/github/spec-kit)** — 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 + hooks
```

In 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.**

<p align="center">
  <img src="https://raw.githubusercontent.com/anton-abyzov/specweave/develop/docs-site/static/img/specweave-flow.svg?v=2" alt="SpecWeave Flow: Your Idea → Spec → Plan → Tasks → Code → Living Docs" width="800"/>
</p>

---

## The Workflow

<p align="center">
  <img src="https://raw.githubusercontent.com/anton-abyzov/specweave/develop/docs-site/static/img/workflow-diagram.svg" alt="SpecWeave Workflow: Command → AI Agents → Permanent Files → Build → Auto-Sync" width="700"/>
</p>

---

## Quick Start

```bash
# Install SpecWeave (v1.0.1 — production ready)
npm install -g specweave

# Initialize your project
cd your-project
specweave init .  # Creates single-project config by default
```

Then in Claude Code:
```bash
/sw:increment "Add dark mode toggle"  # AI creates spec + plan + tasks
/sw:do                                # Autonomous implementation
/sw:done 0001                         # Quality-validated completion
```

**Single-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".

**[Full Quickstart Guide](https://spec-weave.com/docs/guides/getting-started/quickstart)**

---

## 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**:

<p align="center">
  <img src="https://raw.githubusercontent.com/anton-abyzov/specweave/develop/docs-site/static/img/external-sync-diagram.svg" alt="SpecWeave External Tool Integration: Sync with GitHub, JIRA, Azure DevOps" width="800"/>
</p>

| 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:

```bash
/sw:sync-progress     # Push updates to GitHub/JIRA/ADO
/sw:sync-monitor      # Dashboard: sync status, notifications
/sw:notifications     # View/dismiss sync notifications
```

**Key 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 specs
```

---

## What 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 tests
```

### spec.md (WHAT)
```markdown
## 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 visit
```

### tasks.md (DO)
```markdown
### 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_instantly
```

---

## When 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

<p align="center">
  <img src="https://raw.githubusercontent.com/anton-abyzov/specweave/develop/docs-site/static/img/agents-diagram.svg" alt="SpecWeave works with Claude, GPT, Gemini, Copilot and more" width="850"/>
</p>

SpecWeave's power isn't in Claude magic. It's in **structure**.

- `spec.md` is just markdown — any AI can read it
- `tasks.md` is 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:
1. **Tasks**: All tasks marked complete
2. **Tests**: 60%+ coverage minimum (configurable)
3. **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:

```markdown
# 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 webhook
```

**What 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](https://www.anthropic.com/engineering/code-execution-with-mcp) 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](https://www.anthropic.com/engineering/code-execution-with-mcp)

**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](https://spec-weave.com/docs/commands/overview)

---

## Legacy, Startup, or Enterprise — It Just Works

**10-Year-Old Legacy Codebase?**
```bash
specweave init .
# During init, choose "Run brownfield analysis" to scan for documentation gaps
# Or run manually later: /sw:discrepancies
```

**What happens?** Brownfield analysis scans your codebase and creates **discrepancies** — actionable documentation gaps:
- `missing-docs` — Undocumented code exports
- `stale-docs` — Documentation out of sync with code
- `knowledge-gap` — Single-contributor modules (bus factor risk)
- `orphan-doc` — Docs for deleted code
- `missing-adr` — Significant patterns without ADRs

Convert discrepancies to increments:
```bash
/sw:discrepancies                         # View all gaps
/sw:discrepancy-to-increment DISC-0001    # Create increment from gap
```

**Fresh Startup MVP?**
```bash
specweave init .
/sw:increment "Build user auth"  # Full spec in 60 seconds
```

**50-Team Enterprise?**
```bash
specweave init .                     # Start with single-project
/sw:enable-multiproject       # Explicit opt-in when ready
# Maps to JIRA projects, ADO area paths, GitHub repos automatically
```

Import from Notion, Confluence, GitHub Wiki. AI classifies docs automatically.

---

## Requirements

- Node.js 20+
- Claude Code with **Claude Opus 4.5** (recommended) — [released Nov 2025](https://www.anthropic.com/news/claude-opus-4-5)
- 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](https://spec-weave.com)** - Full guides and tutorials
- **[Discord](https://discord.gg/UYg4BGJ65V)** - Get help, share tips
- **[YouTube](https://www.youtube.com/@antonabyzov)** - Video tutorials
- **[GitHub Issues](https://github.com/anton-abyzov/specweave/issues)** - Bug reports and features

---

## Contributing

```bash
git clone https://github.com/anton-abyzov/specweave.git
cd specweave
npm install && npm run build
npm test
```

**[Contributor Guide](https://spec-weave.com/docs/guides/contributing)**

---

## License

MIT - [github.com/anton-abyzov/specweave](https://github.com/anton-abyzov/specweave)

---

**Legacy. Startup. Enterprise. One framework that actually works everywhere.**

```bash
npm install -g specweave
```

---

*Fortune 500 companies pay millions for systems like this. This? Free. Open source.*