spec-writing
Skill18 starsChanged 11 months agoMITView on GitHub
This skill should be used when the user asks about "writing specs", "specs.md format", "how to write specifications", "sprint requirements", "testing configuration", "scope definition", or needs guidance on creating effective sprint specifications for agentic development.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- crbnos/carbontheir own version, first seen Oct 4, 2026
- converge-ai-labs/agent-foundationtheir own version, first seen Sep 30, 2026
- aditya-deokar/software-factorytheir own version, first seen Sep 29, 2026
- mariomile/builder-ostheir own version, first seen Sep 24, 2026
- dagarre00/claude-code-templatetheir own version, first seen Sep 7, 2026
- khuynh22/agent-dev-teamtheir own version, first seen Aug 31, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- crbnos/carbon★ 2.7ksame name
- converge-ai-labs/agent-foundation★ 143same name
- itseffi/agentic-os★ 115same name
- khuynh22/agent-dev-team★ 9same name
- Lion-1209/Lion-Skills★ 5same name
- anyoneanderson/agent-skills★ 2same name
- mariomile/builder-os★ 2same name
- aditya-deokar/software-factory★ 1same name
- bedomax/webdesigner-agent★ 1same name
- dagarre00/claude-code-template★ 1same name
1 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 repository5 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-patternsSkill
- api-contractSkill
- sprint-workflowSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 273
If the codebase has conventions, mention them:
- Distinctive: line 281
Keep bullet points short
“Common” is measured: kept by at least 6 in 10 of the 10 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 Writing
Specifications drive the entire sprint workflow. Well-written specs lead to focused implementations; vague specs cause wasted iterations. This skill covers writing effective specs.md files that guide autonomous agents toward successful outcomes.
The specs.md File
Located at .claude/sprint/[N]/specs.md, this file is the primary input to the sprint system. It tells the architect what to build and how to test it.
Essential Structure
A complete specs.md contains:
# Sprint [N]: [Short Title]
## Goal
[1-2 sentences describing what success looks like]
## Scope
### In Scope
- [Feature or task 1]
- [Feature or task 2]
### Out of Scope
- [What NOT to do]
## Requirements
[Detailed requirements - can be minimal or extensive]
## Testing
- QA: required / optional / skip
- UI Testing: required / optional / skip
- UI Testing Mode: automated / manualWriting Effective Goals
The goal statement shapes the entire sprint. Make it outcome-focused:
Good goals:
- "Users can register, login, and reset passwords"
- "API returns paginated product listings with filters"
- "Dashboard displays real-time metrics from backend"
Bad goals:
- "Implement authentication" (too vague)
- "Fix the bug" (which bug?)
- "Make it better" (unmeasurable)
A good goal answers: "How will we know when we're done?"
Defining Scope
In Scope
List concrete deliverables:
- Features to implement
- Endpoints to create
- UI components to build
- Tests to write
Be specific. "Add user profile page" is better than "improve user experience".
Out of Scope
Explicitly exclude work to prevent scope creep:
- Related features not in this sprint
- Refactoring not needed for the goal
- Nice-to-haves for future sprints
This prevents agents from over-engineering or adding unrequested features.
Requirements Depth
Specs can range from minimal to detailed. The architect adapts accordingly.
Minimal Spec (One-liner)
# Sprint 5: Add dark mode toggle
## Goal
Users can switch between light and dark themes.
## Testing
- UI Testing: required
- UI Testing Mode: manualAppropriate for: Simple features, trusted architect judgment, exploratory work.
Detailed Spec
# Sprint 12: User Authentication
## Goal
Complete authentication flow with email verification.
## Scope
### In Scope
- Registration with email/password
- Login with session management
- Password reset via email
- Email verification flow
- Protected route middleware
### Out of Scope
- OAuth providers (future sprint)
- Two-factor authentication
- Account deletion
## Requirements
### Registration
- Email must be unique
- Password minimum 8 characters
- Send verification email on signup
- Users cannot login until verified
### Login
- Return JWT token on success
- Rate limit: 5 attempts per minute
- Lock account after 10 failed attempts
### Password Reset
- Token expires after 1 hour
- Invalidate token after use
- Send confirmation email after reset
## API Endpoints
| Method | Route | Purpose |
|--------|-------|---------|
| POST | /auth/register | Create account |
| POST | /auth/login | Authenticate |
| POST | /auth/verify | Verify email |
| POST | /auth/reset-request | Request reset |
| POST | /auth/reset | Reset password |
## Testing
- QA: required
- UI Testing: required
- UI Testing Mode: automatedAppropriate for: Complex features, specific requirements, team handoffs.
Testing Configuration
The Testing section controls which testing agents run.
Options
| Setting | Values | Meaning |
| QA | required / optional / skip | API and unit tests |
| UI Testing | required / optional / skip | Browser-based E2E tests |
| UI Testing Mode | automated / manual | Auto-run or user-driven |
When to Use Each
QA: required
- New API endpoints
- Business logic changes
- Data validation rules
QA: skip
- Frontend-only changes
- Documentation updates
- Configuration changes
UI Testing: required
- User-facing features
- Form submissions
- Navigation flows
UI Testing Mode: manual
- Complex interactions
- Visual verification needed
- Exploratory testing
UI Testing Mode: automated
- Regression testing
- Standard CRUD flows
- Repeatable scenarios
Common Patterns
New Feature
## Goal
[What the feature does]
## Scope
### In Scope
- Backend API
- Frontend UI
- Integration tests
## Testing
- QA: required
- UI Testing: required
- UI Testing Mode: automatedBug Fix
## Goal
Fix [specific issue description]
## Root Cause
[If known, describe the cause]
## Expected Behavior
[What should happen]
## Testing
- QA: required # Regression test
- UI Testing: optionalRefactoring
## Goal
Refactor [component] for [benefit]
## Constraints
- No behavior changes
- Maintain API compatibility
- All existing tests must pass
## Testing
- QA: required # Verify no regressions
- UI Testing: skipTips for Better Specs
Be Specific, Not Prescriptive
Tell the architect WHAT to build, not HOW to build it:
- Good: "Users can filter products by category and price range"
- Bad: "Use a Redux slice with useSelector for filter state"
The architect chooses implementation details.
Include Edge Cases
Mention important edge cases in requirements:
- Empty states
- Error conditions
- Boundary values
- Concurrent access
Reference Existing Patterns
If the codebase has conventions, mention them:
- "Follow the existing auth middleware pattern"
- "Use the same validation approach as user endpoints"
Keep It Maintainable
Specs should be readable by humans too:
- Use clear headings
- Keep bullet points short
- Include examples where helpful
Iteration and Updates
Specs evolve during the sprint:
- Initial: User writes complete specs.md
- Phase 1: Architect may clarify or expand
- Each iteration: Architect removes completed items
- Final: Specs reflect only documented decisions
This convergent pattern keeps context focused.
Additional Resources
The /sprint:new command creates specs.md templates interactively. See the command file for implementation details.
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.

