spec
Skill0 starsChanged 8 months agoMITView on GitHub
Create or amend feature specifications with typed code examples, verifiable acceptance criteria, and explicit edge cases. Produces .knowledge/features/<feature>/spec.md — the definitive WHAT document for a feature. ALWAYS use this skill when the user wants to define what a feature does before building it, whether they say "spec", "specify", "requirements", "user stories", "acceptance criteria", "what should this do", "define the feature", "expected behavior", "edge cases for", or any variant asking about feature behavior, inputs/outputs, or success criteria. Also trigger when the user wants to amend an existing spec, add user stories, refine acceptance criteria, or define what's in/out of scope for a feature. This skill describes WHAT to build (behavior, contracts, verification) — never HOW (architecture, algorithms, data structures → use /plan), never task breakdowns (→ /tasks), never code (→ /implement), never project principles (→ /constitution).
96 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- MagicJosh/rastheir own version, first seen Oct 6, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- heymegabyte/agent-skillstheir own version, first seen Oct 5, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- MicTx/spec-harnesstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use tickets, make-pdf and 9 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.
toveruxSkilltickets
Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.
Also in 3 projects that use this
chloropineSkillmake-pdf
Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".
Also in 3 projects that use this
anombyte93Skilldiscover
Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.
Also in 5 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
chloropineSkillcontext-restore
Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)
Also in 3 projects that use this
GoogleSkillmetrics
Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.
Also in 3 projects that use this
- +1 more from chloropine
Other versions96 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 96
- garrytan/gstack★ 143ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- JuliusBrussee/cavekit★ 1.1ksame name
- kdlbs/kandev★ 899same name
- getsentry/sentry-dart★ 873same name
- codewithmukesh/dotnet-claude-kit★ 750same name
- Klerith/fernando-skills★ 281same name
- atelier-fashion/adlc-toolkit★ 171same name
- jvm-skills/jvm-skills★ 140same name
- jh941213/my-cc-harness★ 126same name
86 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.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
If .knowledge/constitution.md does not exist, STOP.
- Distinctive: line 29
When the user mixes what and how, say so directly: *"The trie, radix tree, and algorithm choices are /plan concerns — they describe how to …
- Very specific: line 33
Check if .knowledge/features/<feature>/spec.md already exists.
- Very specific: line 40
Read .knowledge/constitution.md and .knowledge/architecture.md (if it exists) for context.
- Very specific: line 67
Before proposing, read what's available: constitution.md, architecture.md, and any existing specs in .knowledge/features/.
- Distinctive: line 88
Do NOT proceed to Phase 2 with vague answers.
- Very specific: line 207
Every user story MUST have typed Input/Output code examples.
- Distinctive: line 212
If the feature contradicts the constitution, flag it and ask the user to resolve the conflict before proceeding.
“Common” is measured: kept by at least 6 in 10 of the 79 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
You produce .knowledge/features/<feature>/spec.md — the definitive document for what a feature does, who it's for, and how to verify it works. The spec describes behavior, not implementation. /plan handles the how.
Prerequisite
If .knowledge/constitution.md does not exist, STOP. Tell the user to run /constitution first.
What vs. How
This boundary is the spec's most important discipline. If the user provides implementation details, acknowledge them but redirect — they belong in /plan.
What (belongs here):
- "The router matches HTTP requests to handlers based on URL patterns" — observable behavior
- "Returns
{ valid: false, error: 'EXPIRED' }when the token is past expiry" — input/output contract - "Compile-time error if handler accesses a parameter not in the pattern" — verifiable criterion
How (redirect to /plan):
- "Use a trie data structure for matching" — internal data structure
- "Implement Aho-Corasick for multi-pattern matching" — algorithm choice
- "Store routes in a radix tree with compressed nodes" — implementation architecture
- "O(n) complexity where n is path length" — performance of an implementation
When the user mixes what and how, say so directly: "The trie, radix tree, and algorithm choices are /plan concerns — they describe how to build the router, not what it does. What does the router do from the developer's perspective?"
Phase 0: Detection
Check if .knowledge/features/<feature>/spec.md already exists.
- If it exists: Read it in full. You are in amendment mode. Also read
.knowledge/constitution.mdto check compatibility. Ask the user what they want to change. Propose surgical amendments — section by section, showing current vs. proposed. Preserve unchanged sections verbatim. Do NOT restart the interview. Add new content (user stories, edge cases, hors scope items) alongside existing content. If the amendment contradicts the constitution, flag it before proceeding. - If it does not exist: Proceed to Phase 1.
Phase 1: Extract & Discover
Read .knowledge/constitution.md and .knowledge/architecture.md (if it exists) for context. Extract constraints and principles that apply to this feature.
Parse the user's initial message for information already provided. Map it against the categories below — acknowledge what you understood, ask follow-ups for gaps, skip what's answered.
Then interview the user. ONE question at a time.
Questions (ask only what's missing):
- Purpose — "What does this feature do? What problem does it solve for the user?"
- Users — "Who uses this feature? What's their context? (developer using an API, end user in a browser, CI pipeline, etc.)"
- Behavior — "Walk me through the main scenario. What does the user do, and what happens?"
- Inputs/Outputs — "What goes in? What comes out? Be specific — types, formats, examples."
- Variations — "What are the alternative paths? What if the input is invalid? What if a dependency fails?"
- Boundaries — "What does this feature explicitly NOT do?"
Pushback is mandatory. The spec must contain typed code examples with concrete inputs and outputs. Vague answers cannot become verifiable acceptance criteria.
- "You said 'it handles errors' — which errors? What does the user see for each one? What's the error format?"
- "'It processes the data' — what data? What type? What's an example input and the exact expected output?"
- "'The usual CRUD operations' — list them. For each one: what's the input, what's the output, what can go wrong?"
- "'It should be fast' — that's a principle, not a behavior. What's the observable behavior? Does the user see a loading state? A progress indicator? Nothing?"
- "'It works like X' — show me. Write the code the user would write to use this feature."
Proactive proposals
Sometimes the user doesn't have an answer — they say "you decide", "I'm not sure", "what do you think?", "fill it in", or simply don't know. Don't stall the interview. Instead, propose an answer grounded in existing .knowledge/ context.
Before proposing, read what's available: constitution.md, architecture.md, and any existing specs in .knowledge/features/. Base your proposal on constraints, principles, patterns, or precedents you find there. If nothing in .knowledge/ supports a reasonable proposal, say so — do not guess.
Format every proposal like this:
Proposal:
<your suggested answer>Reasoning: <which.knowledge/source supports this and why — cite the file and the specific principle, constraint, or pattern> Confirm, adjust, or reject?
The user's decision is final. If they confirm, treat it as their answer and move on. If they adjust, use their version. If they reject, ask the question again or try a different angle.
Examples:
- User says "I don't know what errors to handle — you decide."
→ Read
constitution.mdfor error-handling principles. If it says "all public APIs return typed Result objects", propose specific error variants based on that pattern, citing the principle. - User says "what do you think the output format should be?"
→ Check existing specs in
.knowledge/features/for output format precedents. Ifrouter/spec.mdreturns{ success: true, data: T }, propose the same shape for consistency, citing that spec. - User says "fill in the edge cases." → Derive edge cases from the input types and constraints already discussed, plus any relevant interdits from the constitution. Cite each source.
Do NOT proceed to Phase 2 with vague answers.
Phase 2: Draft
Generate the spec using the template below. Present it to the user for review. Do NOT write to disk yet.
Critical rule: Every User Story must include a typed code example showing the feature being used. Not pseudo-code — real TypeScript (or the project's language) that a developer could read and understand the expected behavior from. If the feature is not code-facing (UI, CLI output), show the exact input/output exchange instead.
Phase 3: Validate & Write
Iterate until the user confirms, then write to .knowledge/features/<feature>/spec.md. Create the directory if needed.
Template
# Spec — <Feature Name>
> Package: `<package name if applicable>`
> Feature: <short identifier>
---
## Objective
<1-2 sentences: what this feature does and why it matters. Tied to a user need, not an implementation detail.>
---
## Constraints
> From constitution.md — which principles and interdits apply to this feature.
- <Constraint 1 — e.g. "Zero runtime overhead (Principle #2)">
- <Constraint 2 — e.g. "No reflect-metadata (Interdit)">
---
## User stories
### US-1: <Title>
> As a <role>, I want <action> so that <benefit>.
**Input:**
```typescript
// Exact input — types, structure, example values
<code>
```
**Output:**
```typescript
// Exact output — what the user gets back
<code>
```
**Acceptance criteria:**
- <Criterion — verifiable, not subjective>
- <Criterion>
### US-2: <Title>
> As a <role>, I want <action> so that <benefit>.
**Input:**
```typescript
<code>
```
**Output:**
```typescript
<code>
```
**Acceptance criteria:**
- <Criterion>
---
## Edge cases
> What happens when things go wrong or inputs are unexpected. Each edge case must specify the input, the expected behavior, and the error (if any).
### EC-1: <Description>
**Input:** <what triggers this edge case>
**Expected behavior:** <what should happen — error message, fallback, rejection>
### EC-2: <Description>
**Input:** <trigger>
**Expected behavior:** <outcome>
---
## Hors scope
> What this feature explicitly does NOT cover. Prevents scope creep during implementation.
- <Thing this feature won't do — and why if not obvious>
- <Thing>
---
## Questions ouvertes
> Unresolved points that need a decision before or during implementation.
- <Question — with context on why it matters>Rules
- This skill produces ONLY
spec.mdfor a feature. Never architecture, plans, tasks, or code. - Every user story MUST have typed Input/Output code examples. "The function returns the result" is not an output.
{ success: true, data: User[] }is. - Acceptance criteria must be verifiable — a test could be written from them. "It works correctly" is not a criterion. "Returns a 404 with
{ error: 'NOT_FOUND', message: 'User {id} does not exist' }when the user ID doesn't match any record" is. - Edge cases must specify exact input and exact expected behavior. "Handles bad input gracefully" is not an edge case.
- Constraints must reference specific principles or interdits from the constitution by name.
- Hors scope must be explicit — if a related behavior is not covered, say so. This prevents
/implementfrom guessing. - If the feature contradicts the constitution, flag it and ask the user to resolve the conflict before proceeding.
- The spec describes what, not how. If you catch yourself writing implementation details (algorithms, data structures, internal architecture), stop — that belongs in
/plan.
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.

