spec
Skill853 starsChanged yesterdayMITView on GitHub
Spec-then-plan workflow (/spec): turns a vague idea into an agreed spec via structured questioning, writes docs/specs/<NNN>-<slug>.md for /scaffold and /tdd, then a plan. Use for "spec", "requirements", "PRD", "user stories", "acceptance criteria", "let's plan". Do NOT use for bug fixes, tweaks, obvious single-endpoint CRUD (just build it), or choosing an architecture (use architecture-advisor).
193 other projects use a version of this.
Adopted by
Most recently taken up by
- Facta-Dev/beautifulqttheir own version, first seen Nov 29, 2026
- Facta-Dev/beautifulnodejstheir own version, first seen Nov 29, 2026
- TheAxeC/ordotheir own version, first seen Nov 29, 2026
- romerma/mstacktheir own version, first seen Nov 29, 2026
- justincordova/agentstheir own version, first seen Nov 29, 2026
- swimmesberger/Elariontheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ios-clean, ios-fix 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.
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
Saqlain-811Skillios-fix
Autonomous iOS bug fixer. (gstack)
Also in 5 projects that use this
JuliusBrusseeSkillbackprop
Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.
Also in 4 projects that use this
bastosSkillios-design-review
Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".
Also in 5 projects that use this
ShreyRaviSkillplan-tune
Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.
Also in 7 projects that use this
timurgaleevSkilldocument-generate
Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.
Also in 6 projects that use this
- +2 more from Saqlain-811
Other versions193 projects use a version of this.
Word for word · 1
- codewithmukesh/dotnet-claude-kit★ 853100% same
Edited · 0
None found.
Wrote their own version · 192
- garrytan/gstack★ 143ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- kdlbs/kandev★ 1.2ksame name
- JuliusBrussee/cavekit★ 1.2ksame name
- getsentry/sentry-dart★ 877same name
- poshan0126/dotclaude★ 871same name
- SparkDevNetwork/Rock★ 702same name
- strands-agents/box★ 650same name
- hyperlink-academy/leaflet★ 527same name
- openclaw/openclaw-enterprise★ 472same name
182 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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .opencode/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/dotnet-rules.mdCursor rule
- architecture-advisorSkill
- aspireSkill
- authenticationSkill
- build-fixSkill
- cachingSkill
- ci-cdSkill
- code-reviewSkill
- configurationSkill
- console-cliSkill
- dependency-injectionSkill
- desktop-mvvmSkill
- de-sloppifySkill
- dockerSkill
- doctorSkill
- dotnet-initSkill
- ef-coreSkill
- error-handlingSkill
- instinct-systemSkill
- loggingSkill
- messagingSkill
- migrateSkill
- minimal-apiSkill
- modern-csharpSkill
- modular-slicesSkill
- native-aotSkill
- openapiSkill
- opentelemetrySkill
- resilienceSkill
- scaffoldSkill
- tddSkill
- testingSkill
- verifySkill
- wrap-upSkill
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 169 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
- Distinctive: line 21
Never assume: Every gap in the idea becomes a question.
- Very specific: line 38
When requirements feel fuzzy mid-implementation: stop, /spec, re-plan
- Distinctive: line 121
Open Questions must be empty: If any remain, the spec cannot be approved — resolve or defer each one explicitly.
- Distinctive: line 122
If implementation later reveals a wrong assumption: stop, set status back to In Review, fix the spec with the developer, then resume.
- Very specific: line 128
Use the architecture-advisor skill: check existing markers (folder structure, project references).
- Distinctive: line 149
Ask: "Does this plan look right, or should I adjust anything?" Revise until the developer confirms.
“Common” is measured: kept by at least 6 in 10 of the 169 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 — Specification, Then Plan
What
One workflow in two phases. Phase 1 converts an idea into a written, versioned specification that the developer and Claude explicitly agree on. Phase 2 turns the approved spec into an architecture-aware implementation plan. No code before both. The contract:
- Never assume. Every gap in the idea becomes a question. If Claude catches itself thinking "probably", "presumably", or "the usual way" — that thought is a question to ask, not a decision to make.
- Relentless, but structured. Questions come in focused rounds (3–5 at a time) across nine dimensions — not one overwhelming dump, and not a single polite round that stops early.
- Agreement is explicit. Specs have a status lifecycle: Draft → In Review → Approved. Implementation never starts from a Draft. Approval requires the developer to read the final document and say so.
- Specs are files, not chat. Output persists to
docs/specs/<NNN>-<slug>.mdand survives the session. The plan, tests, and commits reference it.
When
- Any feature too big to describe completely in one sentence
- New product or module ideas ("I want to add team workspaces")
- Any non-trivial task of 3+ steps or with architectural decisions (new module, cross-cutting concern): "plan", "let's plan", "design this"
- When requirements feel fuzzy mid-implementation: stop,
/spec, re-plan - Trigger phrases: "spec", "requirements", "PRD", "define the feature", "acceptance criteria"
Skip the spec phase (go straight to a short plan) when the task fits in one sentence. Skip both for bug fixes, typos, config tweaks, and single-endpoint CRUD where the entity is obvious.
How
Step 1: Capture and Restate
Take the raw idea and restate it in one paragraph: what Claude understood, in its own words. End with: "Is this the idea? What did I get wrong?" Do not begin questioning until the developer confirms the restatement — questioning the wrong idea wastes everyone's time.
Step 2: Questioning Rounds
Work through the nine dimensions in order. Each round: pick the 3–5 most load-bearing unanswered questions (answers that reshape later questions come first). Where the harness supports selectable options, present choices with trade-offs — and a recommendation — but the developer chooses; a recommendation is never silently applied.
| # | Dimension | What to pin down |
| 1 | Problem & users | Who hurts today, how they work around it, what success looks like |
| 2 | Scope | What is IN this iteration, what is explicitly OUT, where the MVP line sits |
| 3 | Domain & data | Entities, relationships, lifecycle (create→archive→delete?), retention |
| 4 | API contract | Resources, endpoints, request/response shapes, pagination, versioning |
| 5 | Authorization | Who can do what, role/claim model, tenant boundaries |
| 6 | Edge cases & failure modes | Concurrency, duplicates, idempotency, partial failure, limits |
| 7 | Non-functionals | Expected volume, latency budget, growth assumptions |
| 8 | Integrations | External services, published events, webhooks, side effects |
| 9 | Acceptance criteria | Testable Given/When/Then for every behavior in scope |
Rules of relentless questioning:
- Record every answer in the draft spec immediately — answers are requirements, not conversation.
- Challenge contradictions on the spot: "In round 1 you said X; this answer implies not-X. Which wins?"
- "I don't know" is a legal answer → moves to Deferred Decisions with an explicit fallback the developer chooses now ("default to soft-delete until decided"). Silent deferral is forbidden.
- A dimension is done when a follow-up round generates zero new questions for it.
- The questioning phase is done when ALL nine dimensions are done. Do not stop because the conversation feels long — stopping early is how assumptions sneak in.
Step 3: Draft the Spec File
Determine the next number from existing files in docs/specs/ (create the
directory if missing). Write docs/specs/<NNN>-<slug>.md:
# Spec NNN: <Title>
**Status:** Draft
**Date:** <today>
## Problem <!-- who hurts, why now -->
## Scope <!-- ### In / ### Out — both explicit -->
## Domain Model <!-- entities, relationships, lifecycle -->
## API Contract <!-- endpoints table: verb, route, request, response, errors -->
## Authorization <!-- who can do what -->
## Edge Cases & Failure Modes
## Non-Functional Requirements
## Integrations
## Acceptance Criteria <!-- Given/When/Then, numbered AC-1, AC-2, ... -->
## Deferred Decisions <!-- decision, chosen fallback, revisit trigger -->
## Open Questions <!-- MUST be empty before approval -->Step 4: Review Loop
Set status to In Review. Present the complete spec and ask: "Read this end-to-end. What is wrong, missing, or over-engineered?" Fold corrections in and re-present. Repeat until the developer has no further changes. New answers may spawn new questions — that is the process working, not a failure to converge.
Step 5: The Agreement Gate
Approval is a deliberate act, never inferred from silence or "looks good" in
passing. Ask explicitly: "Do you approve this spec? After approval, code follows
the spec — changes go through the spec first." On approval, set
**Status:** Approved (<date>).
- Open Questions must be empty. If any remain, the spec cannot be approved — resolve or defer each one explicitly.
- If implementation later reveals a wrong assumption: stop, set status back to In Review, fix the spec with the developer, then resume. Code never silently diverges from an approved spec.
Step 6: Detect Architecture and Map Impact
Use the architecture-advisor skill: check existing markers (folder structure,
project references); if none, run its questionnaire. Load the matching skill
(modular-slices by default; the architecture-advisor references for VSA, Clean Architecture or DDD when
chosen). Then map what the spec touches: projects and folders, cross-cutting
concerns (auth, caching, validation, logging), migrations, and blast radius of
existing code via find_references / find_callers. Without an approved spec
(small task), clarify the task with focused questions first and assume nothing.
Step 7: Produce the Plan
Map each acceptance criterion to steps. Order so the foundation lands first.
## Plan: <Title> (spec NNN)
**Architecture:** <detected> **Affected:** <layers/modules> **Steps:** <n>
1. <Step> -- <file/layer> -- <why this order> -- covers AC-1
2. ...
### Open Questions <!-- must be answered before coding -->
### Risks <!-- issue and mitigation -->Ask: "Does this plan look right, or should I adjust anything?" Revise until the developer confirms; only then implement. Plans are living: if implementation goes sideways, stop and re-plan instead of pushing on.
Step 8: Handoff
/scaffoldgenerates the slices the plan calls for/tddturns acceptance criteria into the first failing tests (AC-n to test name)- Commits reference the spec:
feat: team workspaces (spec 004)
Example
User: /spec users should be able to invite teammates
Claude: Here's what I understood: an existing user can invite another person
to join their... workspace? account? That's already my first gap.
Is this the idea? What did I get wrong?
User: yes, invite to their organization
Claude: Round 1 — Scope & Users:
1. Can invitees be people without an existing account, or only registered users?
2. Who can invite — any member, or only admins/owners?
3. Out of scope check: bulk invites and SSO members — both OUT for now?
User: 1: both. 2: admins only. 3: correct, both out.
Claude: Round 2 — Edge cases (your "both" in Q1 raises these):
1. Inviting an email with a pending invite — error, or resend?
2. Invite expiry — 7 days, 30 days, never?
[…rounds continue until all nine dimensions are exhausted…]
Claude: Spec written to docs/specs/004-team-invitations.md (In Review).
User: looks right. approved.
Claude: Status: Approved (2026-06-12). Mapping AC-1..AC-9 to a plan:
Architecture: modular slices (Identity module). 7 steps ... Does this
plan look right, or should I adjust anything?Related
/tdd— Acceptance criteria become the first failing tests/scaffold— Generates the slices the plan calls for/verify— Run after implementing the planarchitecture-advisor— Load during Step 6 if the feature forces architectural decisions
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.

