spec-writing
Skill1 starsChanged 6 months agoMITView on GitHub
Write a focused spec before building - problem statement, scope, acceptance criteria, edge cases, and open questions. Use when the user describes a feature to build, asks for a spec or PRD, or starts a task that is too vague to implement directly.
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
- damienlaine/agentic-sprint★ 18same 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
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 repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- cost-optimizationSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- i18n-reviewSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- onboarding-docSkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- security-auditSkill
- task-breakdownSkill
- tech-debt-triageSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before any task expected to take more than an hour of implementation
- Distinctive: line 28
Acceptance criteria are the contract: If you can't write a testable criterion, the requirement isn't understood yet.
- Distinctive: line 35
Before writing anything, answer (ask the user if needed):
- Distinctive: line 40
What already exists?: Read the relevant code first.
- Very specific: line 54
Use Given/When/Then or a checklist.
- Distinctive: line 56
If a criterion can't fail, delete it
“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
Define what to build and how you'll know it's done before writing code. A good spec is the cheapest place to find a design flaw.
When to use
- "Build a feature that…" (and the description fits in one sentence)
- "Write a spec / PRD for…"
- The task has unstated assumptions, multiple interpretations, or unclear success criteria
- Before any task expected to take more than an hour of implementation
Principles
- Spec before code. Changing a sentence is cheaper than changing a system.
- Shorter is better. One page that gets read beats ten pages that don't.
- Acceptance criteria are the contract. If you can't write a testable criterion, the requirement isn't understood yet.
- Unknowns are content, not gaps. An explicit "Open questions" section is a feature of the spec.
Process
1. Interrogate the request
Before writing anything, answer (ask the user if needed):
- Who is this for? (end user, admin, another system, developer)
- What problem does it solve? Not the solution — the problem.
- Why now? What breaks or stays broken without it?
- What already exists? Read the relevant code first; the spec must fit reality.
2. Draw the boundary
The most valuable section is Out of scope. Explicitly list:
- Adjacent features that will not be built
- Cases that will be rejected or deferred, not handled
- Quality attributes intentionally skipped (e.g. "no i18n in v1")
3. Write acceptance criteria
Each criterion must be verifiable — a test, a command, or an observable behavior.
- Use Given/When/Then or a checklist; be consistent
- Cover the happy path and the named failure modes
- If a criterion can't fail, delete it
4. Hunt edge cases
Walk these categories explicitly:
- Empty / zero / null — no items, empty string, missing field
- Boundaries — max length, first/last page, exactly-at-limit
- Concurrency — double submit, race between two users
- Permissions — wrong role, expired session, cross-tenant access
- Failure — dependency down, timeout, partial write
5. Surface open questions
Anything you'd otherwise silently assume goes here, with your proposed default:
Q: Should deleted items appear in the export? Proposed: no.
Output format
# Spec: <feature name>
**Problem:** 1–3 sentences. The user pain, not the solution.
**Goal:** What changes for the user when this ships.
## In scope
- …
## Out of scope
- …
## Acceptance criteria
- [ ] Given …, when …, then …
- [ ] …
## Edge cases
| Case | Expected behavior |
|------|-------------------|
| … | … |
## Open questions
- Q: …? Proposed: …Anti-patterns
- ❌ Writing the spec as a disguised implementation plan ("add a column, then a service…")
- ❌ Acceptance criteria that restate the feature ("the export works correctly")
- ❌ Resolving open questions by silent assumption instead of writing them down
- ❌ Specs longer than the code they describe
- ❌ Skipping the codebase read — a spec that ignores existing architecture is fiction
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.

