write-spec
Skill4 starsChanged 4 months agoMITView on GitHub
Convert clarify-scope discussion into a structured spec file at .ai/tasks/<name>.md. Run after clarify-scope resolves assumptions and scope. Captures decisions before they're lost in conversation history.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- dzhng/skillstheir own version, first seen Oct 4, 2026
- dzhng/jevgreptheir own version, first seen Oct 2, 2026
- dzhng/duet-agenttheir own version, first seen Oct 2, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
- taipt1504/claudehuttheir own version, first seen Oct 2, 2026
- anthod0/skillstheir own version, first seen Sep 19, 2026
Used with
Projects with it also use audit-choices, close-spec and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dzhngSkillaudit-choices
Audit the choices an implementing agent made, not its diff — a pure decision audit that traces the session's history into a choices ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.
Also in 3 projects that use this
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 3 projects that use this
LucasMatuszewskiSkillaudit-agents
Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.
Also in 3 projects that use this
Halcyon666Skillwrite-skills
Creates high-quality Agent Skills (SKILL.md files) that follow the open Agent Skills specification. Use when asked to create a skill, write a SKILL.md, package agent instructions, build a reusable capability, or turn a workflow into a shareable skill. Produces spec-compliant, concise, well-structured skills optimized for agent discovery and execution.
Also in 3 projects that use this
isLinXuSkilleval-skills
AI Agent Skill unit testing framework. A framework-agnostic toolkit for discovering, scaffolding, selecting, evaluating, and reporting on AI skills. Use this skill to assess skill quality before production, compare candidate skills on the same benchmark, enforce quality gates in CI/CD, and generate human-readable evaluation reports.
Also in 3 projects that use this
Arman-KudaibergenovSkillwrite-plan
Этот скилл MUST быть вызван когда есть design.md и нужно разбить доработку на атомарные задачи (2-5 мин) с точными путями файлов и критериями проверки в tasks.md. SHOULD также вызывать как промежуточный шаг между brainstorm и subagent-dev. Do NOT использовать для обсуждения идеи — используй brainstorm; для выполнения задач — используй subagent-dev.
Also in 4 projects that use this
- +6 more from dzhng
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- anthropics/knowledge-work-plugins★ 26ksame name
- dzhng/jevgrep★ 2.3ksame name
- dzhng/skills★ 978same name
- dzhng/duet-agent★ 46same name
- smixs/disruptor-skills★ 19same name
- Gusen1453/creed★ 3same name
- hassan-mohiddin/freeflow★ 3same name
- arcadesunlabs/skills★ 2same name
- taipt1504/claudehut★ 2same name
- fclabs/skills★ 1same name
4 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 repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- clarify-scopeSkill
- create-pr-descriptionSkill
- debugSkill
- implement-tddSkill
- plan-tasksSkill
- review-prSkill
- setup-ai-contextSkill
- shipSkill
- sync-ai-contextSkill
- write-test-scenariosSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run immediately after clarify-scope completes — don't let context drift away in chat history.
- Distinctive: line 55
Does not break anything currently working (regression)
- Distinctive: line 63
Before saving, ask yourself:
- Distinctive: line 72
If any checkbox is NO → fix before saving.
- Distinctive: line 76
After creating the spec:
- Very specific: line 77
Update .ai/status.md — add the task to "In Progress" with the start date
“Common” is measured: kept by at least 6 in 10 of the 14 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
Write Spec
Convert the discussed context (assumptions, resolved questions, confirmed scope) into a structured spec file at .ai/tasks/<task-name>.md.
Run immediately after clarify-scope completes — don't let context drift away in chat history.
Run
Step 1 — Name the task
The name must be: short, kebab-case, describing a specific action.
# Good
add-password-reset
refactor-auth-middleware
fix-order-status-race-condition
# Bad
feature ← too generic
fix-bug ← doesn't say what bug
update-stuff ← meaninglessStep 2 — Fill each section from the discussion context
Open .ai/tasks/TEMPLATE.md as reference, create a new file .ai/tasks/<task-name>.md.
Goal — taken from the discussed objective. Must satisfy both:
- Specific: know exactly what needs to be done
- Measurable: know when it's "done"
Bad example: "Improve the auth system" Good example: "User can reset password via email, receives link within 60s, link expires after 1h"
Scope — list specific files/modules from confirmed assumptions:
- src/auth/password-reset.ts (create new)
- src/api/routes/auth.ts (add endpoint)
- src/email/templates/ (add template)Out of scope — taken from what was explicitly said NOT to do, or inferred from scope boundaries. This is the most important section for preventing scope creep later.
Test plan — minimum 3 cases:
- Happy path (main flow works correctly)
- Edge case (boundary input, concurrent request...)
- Does not break anything currently working (regression)
Constraints — from critical questions answered in clarify-scope. If the user said "backward-compatible" or "must not invalidate existing sessions" → record it here.
Open questions — if any questions remain unresolved after clarify-scope, record them here with a [BLOCKING] tag if they must be answered before coding.
Step 3 — Check spec quality
Before saving, ask yourself:
[ ] Goal: after reading it, do you immediately know what "done" looks like?
[ ] Out of scope: if someone wants to add X to scope, can you reject it using this file?
[ ] Test plan: is there at least 1 case for "does not break what's currently working"?
[ ] Constraints: have the critical questions from clarify-scope been captured?If any checkbox is NO → fix before saving.
Step 4 — Update status
After creating the spec:
- Update
.ai/status.md— add the task to "In Progress" with the start date - Confirm with user: "Spec created at
.ai/tasks/<task-name>.md. Proceed with implementation?"
When NOT to run this skill
- Task is small and clear (as assessed by clarify-scope) → no spec needed, proceed directly
- Spec already exists in
.ai/tasks/→ update that file instead of creating a new one
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.

