spec-driven-dev
Skill4 starsChanged 6 months agoMITView on GitHub
Create a formal specification before implementation. Use when: starting any feature larger than a trivial fix, planning a new module, or when requirements need clarity before coding begins. Developer defines WHAT and constraints, AI generates HOW within guardrails. Invoke with /spec-driven-dev to start the spec-driven development workflow.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- cooneycw/claude-power-packtheir own version, first seen Nov 7, 2026
- archiforge/agent-crafttheir own version, first seen Oct 20, 2026
- Synter-Media-AI/free-skillstheir own version, first seen Oct 11, 2026
- sowadalmughni/spec-driven-devtheir own version, first seen Sep 20, 2026
- gonun13/agent-skillstheir own version, first seen Sep 5, 2026
- Archive228/lab-skillstheir own version, first seen Aug 12, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- LichAmnesia/lich-skills★ 233same name
- kivo360/OmoiOS★ 81same name
- korchard333/claude-power-platform-community★ 46same name
- cooneycw/claude-power-pack★ 21same name
- Archive228/lab-skills★ 8same name
- stineluca-ctrl/unhallucinate★ 4same name
- Synter-Media-AI/free-skills★ 4same name
- RockaRhymeLLC/claude-code-skills★ 1same name
- archiforge/agent-craft★ 0same name
- gonun13/agent-skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugin/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- plugin/CLAUDE.mdCLAUDE.md
- create-adrSkill
- eu-ai-act-checkSkill
- governance-checkSkill
- governance-setupSkill
- iso-42001-checkSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use /spec-driven-dev when starting any feature larger than a trivial fix — especially multi-file changes, new modules, or features with …
- Distinctive: line 25
Before starting, classify the feature using Three Loops:
- Very specific: line 41
Write spec.md in project root or feature directory using the template below.
- Distinctive: line 53
Follow existing patterns from codebase
- Distinctive: line 57
Check implementation against each acceptance criterion
- Distinctive: line 58
Run tests (unit, integration, E2E as appropriate)
- Very specific: line 65
Create this as spec.md (or <feature-name>.spec.md) in the appropriate directory:
- Distinctive: line 122
Before marking the spec as ready:
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spec-Driven Development
Developer = spec author (defines WHAT + constraints). AI = code generator (implements HOW within guardrails).
Scope and When to Use
Use /spec-driven-dev when starting any feature larger than a trivial fix — especially multi-file changes, new modules, or features with unclear requirements. The spec becomes the contract between human intent and AI implementation.
Skip this for trivial fixes (Out-of-Loop tasks): formatting, lint fixes, import cleanup, single-line bug fixes.
Decision Loop Classification
Before starting, classify the feature using Three Loops:
- Out-of-Loop (AI autonomous): Skip spec — trivial fixes, formatting, import organization
- On-the-Loop (AI proposes, human approves): Write spec, get approval, implement with oversight
- In-the-Loop (human decides): Write spec, human drives design, AI assists implementation
Workflow
1. Understand
- Explore relevant codebase areas (Glob, Grep, Read)
- Clarify requirements with user (AskUserQuestion)
- Reference
DOMAIN.mdfor entity definitions and invariants (if present)
2. Specify
Write spec.md in project root or feature directory using the template below.
3. Plan
- Enter Plan Mode to generate implementation plan from spec
- Plan must reference spec acceptance criteria
- Identify files to create/modify
4. Implement
- Code to spec in iterations (On-the-Loop: AI proposes, human approves)
- Each iteration should be reviewable
- Follow existing patterns from codebase
5. Verify
- Check implementation against each acceptance criterion
- Run tests (unit, integration, E2E as appropriate)
- Validate domain invariants from
DOMAIN.mdare preserved (if present)
Spec Template
Create this as spec.md (or <feature-name>.spec.md) in the appropriate directory:
# Spec: [Feature Name]
## Overview
- **Motivation**: Why this feature exists
- **Success criteria**: How we know it's done
## Requirements
### Functional (MUST)
- [ ] Requirement 1
- [ ] Requirement 2
### Functional (SHOULD)
- [ ] Nice-to-have 1
### Non-Functional
- Performance: [targets]
- Security: [considerations]
## Domain Impact
- **Entities affected**: (reference DOMAIN.md if available)
- **New invariants**: any new constraints introduced
- **API changes**: request/response schema changes
## Constraints
- **Anti-requirements**: what NOT to do
- **Patterns to follow**: existing codebase patterns
- **Dependencies**: external services, libraries
- **Compatibility**: backwards compatibility requirements
## Acceptance Criteria
1. Given [context], when [action], then [result]
2. Edge case: [scenario] -> [expected behavior]
3. Error case: [scenario] -> [expected error handling]
## Verification
- **Unit tests**: [what to test]
- **Integration tests**: [API/service interactions]
- **E2E tests**: [user flows, if applicable]
- **Production validation**: [how to verify in prod]Governance Checklist
Before marking the spec as ready:
- Decision loop classified (Out/On/In-the-Loop)
- Domain impact assessed
- Anti-requirements defined (what NOT to do)
- Acceptance criteria are testable
- Breaking changes identified and flagged
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

