feature-spec
Skill1 starsChanged 3 months agoMITView on GitHub
Use when turning a vague or short feature idea into a full specification before implementation — a one-line/paragraph request like "add X", a wishlist item, or a feature handed off in an automated/unattended pipeline for a downstream agent to build. Triggers - "write a spec for…", "turn this idea into a spec", "flesh out this feature", specifying behavior / states / edge cases / defaults / acceptance criteria before coding.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- NassimF/claude-skillstheir own version, first seen Nov 29, 2026
- modeled-information-format/mif-docs-plugintheir own version, first seen Nov 25, 2026
- devexpert-io/harness-startertheir own version, first seen Nov 24, 2026
- chatquill/claude-code-websitestheir own version, first seen Nov 22, 2026
- decebal/decebal-claude-skillstheir own version, first seen Nov 22, 2026
- lyeyixian/skillstheir own version, first seen Nov 16, 2026
Used with
Projects with it also use changelog, tech-debt and 3 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.
HashiCorpSkillchangelog
Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.
Also in 6 projects that use this
AnthropicSkilltech-debt
Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.
Also in 3 projects that use this
MicrosoftSkillretrospective
Review how work went and improve the next round. USE WHEN asked for a retro, delays, or process lessons. DO NOT USE for code review or transcript replay.
Also in 3 projects that use this
AnthropicSkilldesign-system
Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.
Also in 4 projects that use this
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- WikiEducationFoundation/WikiEduDashboard★ 434same name
- PackmindHub/packmind★ 323same name
- https-deeplearning-ai/sc-spec-driven-development-files★ 310same name
- natnew/awesome-ai-scientists★ 21same name
- devexpert-io/harness-starter★ 11same name
- yasunori0418/skills★ 10same name
- insight68/Skills★ 5same name
- carreiras/claude-skills★ 4same name
- dvy1987/agent-loom★ 4same name
- gonimar/claude-web-studio★ 4same name
16 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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-criticSkill
- autonomous-build-loopSkill
- build-and-verifySkill
- codebase-auditSkill
- code-reviewSkill
- create-project-pluginSkill
- guided-learningSkill
- humanize-writingSkill
- implementation-planSkill
- runtime-qaSkill
- solidify-repoSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
6
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 45
Default interactive. Switch to autonomous when the invoker says so (a parent loop calls this non-interactively) or when there is plainly no …
- Distinctive: line 55
Before producing anything, classify and announce the tier and feature type with a one-line reason:
- Distinctive: line 67
When unsure between tiers, pick the smaller one — you can always deepen a section.
- Distinctive: line 114
Don't ask/flag about reversible preferences or standard conventions — assume and note them.
- Very specific: line 138
Write to the project's spec location when it has one.
- Distinctive: line 143
Autonomous: write it directly and return a final message in this exact shape so the loop can parse it:
- Distinctive: line 158
Triage before content: Always declare tier + feature type first.
“Common” is measured: kept by at least 6 in 10 of the 23 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
Feature Spec
Turn a vague feature request into a complete, right-sized specification of what to build and how it behaves — before any code.
Core principle
A strong model already writes thorough specs when a feature is salient. Its three real failures, confirmed by testing, are:
- It doesn't right-size. It produces a 10-section spec for a one-click button and the same shape for a large feature. Over-production is a defect.
- Coverage is driven by salience, not a checklist. It nails accessibility for an obvious copy button but silently omits a11y for a settings/download flow, and omits i18n almost always. The fix is fixed checklists, not more eloquence.
- Output isn't loop-ready. Inconsistent structure, no tier label, assumptions buried in prose — an autonomous pipeline can't route on it.
So this skill's job is proportion, uniform coverage, and a structured handoff — not teaching spec-writing. Enumeration beats eloquence.
When to use
- A feature request is vague, one-line, or a paragraph and needs fleshing out before implementation.
- A wishlist item is being processed (interactively or by an unattended agent loop) and must become a buildable spec.
When NOT to use
- The change is mechanical and obvious (rename, copy tweak, dependency bump) — just do it; a spec is over-production.
- Designing internal architecture/structure — that is a separate concern. This specifies behavior, not internal design.
- Implementing — this produces a spec; a different step builds from it.
Modes
Default interactive. Switch to autonomous when the invoker says so (a parent loop calls this non-interactively) or when there is plainly no human in the loop (running inside a detached/long-running task). Explicit signal wins.
In autonomous mode you MUST NOT call AskUserQuestion. A blocking question in a
detached task hangs the pipeline. Convert every would-be question into a flagged
assumption (see Ask-or-flag).
Step 0 — Triage (always first, state it out loud)
Before producing anything, classify and announce the tier and feature type with a one-line reason:
| Tier | When | What you produce |
| SKIP | Trivial / single-component / bugfix | No spec. State 1–3 assumptions and stop. |
| LITE | One surface, one clear job | Core spine only; declarative acceptance criteria; self-audit. No reviewer subagent. ≤ ~80 lines. |
| FULL | Multi-surface / novel / user-facing | Core spine + applicable modules + EARS/Gherkin + self-audit + reviewer subagent. ≤ ~400 lines, more only when Decisions Needed genuinely requires it. |
Feature type: UI or non-UI. This gates the UI module. A backend/API/job feature never gets an accessibility, i18n, or design-token checklist.
When unsure between tiers, pick the smaller one — you can always deepen a section.
Size discipline. The line budgets are caps, not targets. A spec for a bug fix never exceeds LITE unless the fix changes a contract — a three-sentence bug report once produced a 1,461-line spec plus three ruling documents. Specs live wherever the project already keeps them and the project's archive convention applies; this skill never grows an unbounded active set. When the spec directory holds more than a couple of dozen active specs with no archive in sight, say so in one line under the handoff.
The pipeline
Fill the template in references/template.md. Scale depth to the tier; never pad a
LITE spec to look like a FULL one.
Core spine (every non-SKIP feature):
- Problem frame — the job (JTBD / 5-Whys), actors, success outcomes, explicit non-goals.
- Behavior & states — the states/transitions the feature moves through. For non-UI: lifecycle/status, partial/failure/retry states.
- Data / interface contract (non-UI especially) — inputs, outputs, error shapes, invariants.
- Edge cases & failure modes — concurrency, zero/one/many, limits, partial failure, retries/idempotency.
- Defaults vs. settings — default the ~80% safe path; expose a setting only for durable/divergent preferences; record each default's rationale.
- Scope slicing — MVP → v1 → vision + explicit Out-of-Scope.
- Acceptance criteria — notation per
references/notation.md(declarative for LITE; add EARS + Gherkin for FULL).
Producer/consumer scan (FULL): for every behavior the feature changes, name both sides of the data flow — what produces the data or state, and what consumes it — and record the pair in the interface-contract section. A feature that scopes in a consumer while scoping its producer out is flagged, not assumed safe: the costliest spec defect on record was a timing change in a consumer that the spec treated as not touching the producer, so nothing in the run analysed what it did to the producer's ordering.
Conditional UI module (only when feature type = UI): load
references/state-and-interaction.md and references/accessibility-i18n.md and walk
their checklists — the state catalog, interaction inventory, accessibility, i18n,
and design tokens. These are the surfaces salience-driven specs silently drop.
Ask-or-flag gate (the behavioral heart)
Same calibration in both modes: act only when the answer materially changes what gets built AND cannot be inferred from repo, conventions, or sensible defaults. Don't ask/flag about reversible preferences or standard conventions — assume and note them.
- Interactive: batch the high-impact, non-inferable questions (≤5) via
AskUserQuestion, each with options + a recommended default + a "use default" escape. Everything else → an Assumptions entry. - Autonomous: never ask. Each would-be question becomes an assumption using
the most conservative, reversible default, recorded in a prominent
## Decisions Neededsection, each entry severity-taggedhigh/normal. High-stakes/irreversible ambiguities: pick the safest default, taghigh, and continue — never halt. The flags are the safety valve.
Self-audit and review
- Self-audit (every tier): end by listing any template/checklist items you did not address, then fix them. Do not claim done with the list non-empty.
- Reviewer subagent: on FULL (and always in autonomous mode, where it's the only gate left), dispatch a fresh general-purpose agent via Agent with read-only tools. Give it the spec + the template/checklist criteria and not your reasoning. Ask it to report missing coverage (states, edge cases, a11y/i18n, defaults, loop-handoff fields). Revise before finishing.
Output and handoff
Write to the project's spec location when it has one; docs/specs/<feature-slug>.md
is the default. Create the directory only at write time — never while drafting (no
empty dirs left in the tree).
- Interactive: present the spec, then write it on the user's go.
Autonomous: write it directly and return a final message in this exact shape so the loop can parse it:
SPEC: <path to the spec> TIER: LITE|FULL DECISIONS_NEEDED: none | <n> (highest: high|normal)Clean specs route straight to planning; specs with
highflags get surfaced to a human. This skill stops at the spec. The next stage readsSPEC:and turns it into an implementation plan — do not write the plan, the file map, or the code here.
Hard rules
- Triage before content. Always declare tier + feature type first. No silent full-pipeline on a small feature; no silent thin spec on a big one.
- Never call
AskUserQuestionin autonomous mode. - Run the checklists for the feature type — don't rely on salience. If feature type = UI, a11y and i18n are non-optional sections, even when the change "seems too small to need them."
- Document every assumption. An assumption not written down is a silent bug.
- Claims about current behavior are measured, not inferred. Any statement of the
form "X currently does / doesn't Y", and every root-cause diagnosis, must come from
running or inspecting the artifact — a measurement, a log, a test run — and the spec
must say how it was measured. If it cannot be measured now, write it as
ASSUMEDand list it under Decisions Needed. Reading the source and reasoning about it is inference, not measurement. Two projects independently had to invent "the builder measures and overturns the spec" because specs named root causes that measured false. - Name both sides of every changed data flow. A consumer scoped in with its producer scoped out is a flagged decision, never a silent one.
- Right-size depth to tier. Padding a LITE spec is the same defect as a thin FULL spec, and both tiers have a line cap.
Common mistakes
- Skipping triage and defaulting to FULL. The #1 baseline failure. Declare the tier first and mean it.
- Letting salience pick coverage. "It's just a button" → a11y/i18n dropped. Walk the checklist for the feature type regardless.
- Asking in autonomous mode. Hangs the loop. Flag instead.
- Burying decisions in prose. In autonomous mode, high-stakes guesses must be in
## Decisions Needed, severity-tagged, not scattered in paragraphs. - Over-asking interactively. Questions that don't change the build, or re-ask inferable things, make the skill annoying. Assume and document those.
- Asserting a root cause read off the source. A confident diagnosis that nobody
measured is the defect that makes downstream builders distrust every spec. Measure,
or mark it
ASSUMED. - Specifying the reader and forgetting the writer. Changing when or how something is consumed almost always changes what the producer must guarantee.
Gotchas
- Completeness comes from the checklist, not the prose. The references exist so coverage is uniform across runs; load and walk them rather than free-styling.
- The handoff line is a contract. The
SPEC:/TIER:/DECISIONS_NEEDED:block is what a parent loop greps. Keep its shape stable. - Right-sizing is the anti-over-engineering guard. A spec heavier than the feature is itself the failure this skill prevents — apply it to your own output.
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.

