SpecMind — Spec-Driven AI Development
Claude writes your code AND your spec simultaneously.
Every request builds a living, queryable knowledge base of your codebase.
Getting Started
- Install the extension
- Run SpecMind: Set Claude API Key (Ctrl+Shift+P)
- Run SpecMind: Initialize Spec for this Project
- Click the 📋 SpecMind button in the status bar
- Ask Claude to write code — spec updates automatically
How It Works
When you ask Claude to write code:
- Extension reads all
.speccontext/*.md files
- Injects them as context into Claude Sonnet 4.6
- Claude writes code consistent with your existing spec
- Claude returns spec updates alongside the code
- Extension automatically updates your spec files
Spec Files
| File |
Purpose |
| functional.md |
Features, user flows, business rules |
| services.md |
API contracts, service dependencies |
| storage.md |
Schemas, relationships, access patterns |
| constraints.md |
Rules Claude must never violate |
| decisions.md |
Architectural choices with reasoning |
| errors.md |
Error types and handling patterns |
| glossary.md |
Domain terms defined precisely |
Commands
- SpecMind: Open Chat — Main chat interface
- SpecMind: Initialize Spec — Create .speccontext folder
- SpecMind: Set Claude API Key — Store API key securely
- SpecMind: Run Drift Check — Check current file against spec
- SpecMind: View Spec Coverage — See which specs have code
Use Cases
- Writing code → Claude always respects your constraints and decisions
- New team member → Ask SpecMind "what does X service do?" instead of reading code
- Code review → See spec and code side by side, catch functional drift
- Cognitive offload → Stop remembering constraints — ask SpecMind instead
| |