Spec-driven development for Claude Code
中文 | English
Define before you build. Verify before you ship.
claude plugin marketplace add devnomad-byte/specix
claude plugin install specix@devnomad-byte-specixMost wasted effort in software comes not from writing code slowly, but from writing the wrong code quickly.
Three core beliefs:
- 🏗️ Structure Before Action — spec documents are the source of truth, not an afterthought
- 🔬 Evidence Before Claims — "it should work" is the most dangerous phrase in engineering
- 🧩 Separation of Concerns — different questions answered at different stages by different modules
📋 Spec-Driven Artifacts Every change produces four documents — charter (why), deltas (what), blueprint (how), lineup (when). Source of truth lives on disk, not in conversation memory.
🔍 Four Verification Layers Micro → Functional → Semantic → Quality. Each layer answers a different question.
🔓 Git-Optional 12 of 14 modules work without git. Local dev, prototypes, learning projects — full workflow, no repo required.
🎯 Executable Lineup Exact file paths, complete code blocks, runnable verify commands. Zero ambiguity, zero placeholders.
💾 Cross-Session Recovery State on disk, not in chat. Close terminal, return tomorrow, resume exactly where you left off.
🧠 Self-Learning
insights.jsonlaccumulates patterns and pitfalls across sessions. Gateway gets smarter over time.
🎨 Anti-AI-Default Canvas Frontend design module refuses generic patterns — purple gradients, Inter/Roboto, pill buttons. Deliberate aesthetics only.
⚡ Dual Triggering Natural language matching via descriptions, or
/specix:buildslash commands. Your choice.
┌──────────────────────────────────────────────────────────────────────┐
│ Specix Full Pipeline │
└──────────────────────────────────────────────────────────────────────┘
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
│ spark │────►│ draft │────►│ build │────►│ proof │────►│ audit │────►│ lens │────►│ branch │────►│ vault │
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
EXPLORE SPECIFY EXECUTE VERIFY AUDIT REVIEW INTEGRATE ARCHIVE
Socratic QA 4 artifacts grid dispatch fresh evidence spec + need code quality merge/PR delta merge
light + deep charter/deltas workers+review run commands traceback specialist lifecycle self-learn
bluep./lineup read output 3-level insights
14 modules across 4 layers. All called with specix: prefix.
| Module | Type | Purpose |
|---|---|---|
specix:gateway |
Flow | Session bootstrap — detects environment, selects development path |
specix:draft |
Flow | Produces all specification artifacts: charter, deltas, blueprint, lineup |
specix:build |
Flow | Validates lineup is executable, dispatches workers via grid |
specix:audit |
Flow | Dual-layer verification: spec compliance + real-need traceback |
specix:vault |
Flow | Archives change, merges deltas into master specs |
| Module | Type | Purpose |
|---|---|---|
specix:spark |
Clay | Exploration + Socratic ideation (light mode / deep mode) |
specix:probe |
Iron | Systematic debugging: root cause → pattern → hypothesis → fix |
specix:proof |
Iron | Iron gate — run commands, read output, confirm before claiming done |
| Module | Type | Purpose |
|---|---|---|
specix:grid |
Iron | Multi-agent parallel dispatch with per-task review |
specix:redgreen |
Iron | Test-driven discipline: failing test → implement → refactor |
specix:lens |
Flow | Whole-change code review + specialist lenses (security / performance / architecture) |
specix:branch |
Flow | Branch lifecycle: merge, PR, keep, or discard (git required) |
specix:isolate |
Flow | Git worktree isolation for feature work (git required) |
| Module | Type | Purpose |
|---|---|---|
specix:canvas |
Clay | Front-end design with anti-default aesthetics (on-demand) |
| Type | Icon | Meaning | Modules |
|---|---|---|---|
| Iron | 🛡️ | Rigid. Follow exactly. No shortcuts. | proof probe redgreen grid |
| Clay | 🏺 | Flexible. Adapt to context. | spark canvas |
| Flow | 🌊 | Pipeline. Execute in order. | draft build audit vault lens branch isolate |
Gateway detects your environment and picks the right path automatically.
User request
│
▼
[specix:gateway] evaluates scope
│
├─ 🔴 Large change ──► Full path
├─ 🟡 Medium change ──► Lean path
├─ 🟠 Bug fix ──► Fix path
└─ 🟢 Trivial edit ──► Direct
Full: spark → draft → isolate → build → proof → audit → lens → branch → vault
Lean: draft → build → proof → audit → lens → branch → vault
Fix: probe → redgreen → proof → (lens + branch if large)Full: spark → draft → build → proof → audit → lens → vault
Lean: draft → build → proof → audit → lens → vault
Fix: probe → redgreen → proof → (lens if large)Explore: specix:spark (light mode) — anytime, pure thinking, no files
Direct: just do it → specix:proof (optional)Every change goes through progressive verification — each layer answers a different question:
┌─────────────────────────────────────────────────────┐
│ Quality │ lens │ Is the code good? │
├─────────────────────────────────────────────────────┤
│ Semantic │ audit │ Does it solve the │
│ │ │ real problem? │
├─────────────────────────────────────────────────────┤
│ Functional │ proof │ Does it run? │
├─────────────────────────────────────────────────────┤
│ Micro │ grid reviewer│ Did this task follow │
│ │ │ the spec? │
└─────────────────────────────────────────────────────┘
Each change produces four artifacts in .specix/changes/<name>/:
charter.md → Why: motivation, scope, success criteria
deltas/*.md → What: incremental spec changes (NEW / EDIT / DROP / RENAME)
blueprint.md → How: technical design, key decisions
lineup.md → When: ordered task checklist with executable steps
Specix records observations in .specix/learn/insights.jsonl during archival.
Over time it accumulates what worked, what didn't, and project-specific conventions.
Gateway reads these insights at startup and improves routing decisions.
Three ways to install — pick the one that fits you.
Add this repo as a marketplace source, then install:
/plugin marketplace add devnomad-byte/specix
/plugin install specix@devnomad-byte-specix
Or from terminal:
claude plugin marketplace add devnomad-byte/specix
claude plugin install specix@devnomad-byte-specixCurrently under review by the Anthropic plugin directory team. Once approved:
/plugin install specix@claude-plugins-official
git clone https://github.com/devnomad-byte/specix.gitThen add to your project's .claude/settings.json:
{
"enabledPlugins": {
"specix": "/absolute/path/to/specix"
}
}Or globally in ~/.claude/settings.json.
| Scope | Effect |
|---|---|
--scope user 🏠 |
Available in all your projects (default) |
--scope project 👥 |
Shared with collaborators via .claude/settings.json |
--scope local 🔒 |
Only for you in this repo |
Specix reads .specix/project.yaml in your project root. Created automatically on first specix:draft.
schema: spec-driven
context: |
Stack: Node.js + TypeScript + React
Database: PostgreSQL
Testing: Vitest
rules:
charter:
- Include performance impact assessment
deltas:
- All endpoints must note auth requirements
blueprint:
- Database changes must include migration scripts
lineup:
- Each task must include a verification stepMIT License · Made with ⬡ for Claude Code