spec
Skill0 starsChanged 2 months agoMITView on GitHub
Create structured engineering specs through interactive pairing. Use when the user wants to create a spec, design doc, technical specification, architecture document, RFC, or engineering plan. Triggers on "let's spec this out", "create a spec", "design doc", "write a technical plan", "plan the architecture". Works for greenfield and brownfield projects. Outputs to docs/specs/.
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 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.
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.
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
- veracity-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 17 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Create structured engineering specifications through interactive, phased collaboration.
- Distinctive: line 43
Create the spec directory and empty section files.
- Distinctive: line 48
Create the directory structure:
- Distinctive: line 93
Section order is suggested, not mandatory: If the user wants to jump to §6 Implementation Plan, go there.
- Distinctive: line 97
Only add content the user explicitly provides or approves.
- Distinctive: line 99
Place constraints in the section they shape, not just where they're mentioned.
- Very specific: line 108
Add it to research/sources.md with a one-line description.
- Distinctive: line 117
When the user pastes back results, integrate findings into the appropriate section files.
- Distinctive: line 123
When all sections are filled (or the user says "done" / "finalize"):
- Distinctive: line 125
Do a structural consistency pass — cross-references valid, constraint IDs used, no orphaned references.
- Distinctive: line 126
Do a content consistency pass — three checks, each reported to the user:
- Distinctive: line 127
Every quality claim in §1/§2 has a matching constraint in §7.
- Very specific: line 128
Every measurement in research/ (DOC-N) became a §7 constraint, or was dropped with a stated reason.
- Very specific: line 130
Update README with final status: all sections marked [x] done or [ ] skipped.
- Distinctive: line 131
Add a "Quick Start" section to README pointing to the most important sections.
- Distinctive: line 138
Use these templates when creating each section file in Phase 1.
- Very specific: line 441
Keep linked_paths narrow. A broad entry (package.json, a whole src/) drags unrelated changes into this spec's merge gate, so add a path …
- Very specific: line 445
Leave tests[].name and argv as placeholders until the tests exist.
- Distinctive: line 541
User drives content, Claude drives structure: Never invent requirements.
- Distinctive: line 542
Scaffold first, fill interactively: Create the empty structure immediately so the user can see what they're building toward.
- Distinctive: line 544
TDD-first in §6: Every prompt in the Implementation Plan must list failing test names before implementation instructions.
- Distinctive: line 545
Empty sections are fine: Don't fill sections preemptively.
- Distinctive: line 547
One question at a time: Don't overwhelm the user with multiple questions.
“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-Driven Design
Create structured engineering specifications through interactive, phased collaboration.
Outputs organized markdown files into docs/specs/<spec-name>/ of the current project.
Arguments
$0— spec name (kebab-case). If not provided, ask the user.$1— brief description of what the spec covers (free text, optional). Used to seed the README subtitle and give context for Phase 2 questions. If not provided, proceed normally — the user will supply context interactively.--brownfieldflag — if present, include acurrent-state/folder for existing system analysis.
Workflow Overview
There are 3 phases. Always start with Phase 1. Do not skip ahead.
Phase 1: Scaffold
Create the spec directory and empty section files. This gives the user a concrete structure to react to.
Steps:
- Determine the spec name from
$0or ask the user. Capture the description from$1if provided. - Create the directory structure:
docs/specs/<spec-name>/
├── spec.json
├── README.md
├── spec/
│ ├── 1-problem-motivation.md
│ ├── 2-scope.md
│ ├── 3-high-level-architecture.md
│ ├── 4-data-flow-components.md
│ ├── 5-interfaces-apis.md
│ ├── 6-implementation-plan.md
│ ├── 7-non-functional-requirements.md
│ └── 8-risks-alternatives.md
├── research/
│ └── sources.md
└── current-state/ ← only if --brownfield
└── analysis.md- Each spec section file gets the scaffold template (see "Section Scaffolds" below).
spec.jsongets the scaffold below. This file is not optional —dotbabel-validate-specsrejects a spec directory without one, so a scaffold that omits it produces a spec that fails validation on its first run.- The README gets a status dashboard showing all sections as
[ ] empty. - Tell the user the scaffold is created.
- If
$1was provided: "Scaffold created. Based on your description — {$1} — let's start with §1 Problem/Motivation. What specifically is broken or missing that this addresses?" - If no description: "Scaffold created. Let's fill it in — starting with §1 Problem/Motivation. What problem are we solving?"
- If
Do not fill in any content during scaffolding. The scaffold is purely structural (the description goes only in the README header, not into section bodies).
Phase 2: Interactive Fill-In
Walk through each section with the user. For each section:
- Ask a focused question about what belongs in that section.
- Listen — only write what the user provides or explicitly approves. Never invent requirements.
- Write — update the section file with the user's input, properly formatted.
- Tag — assign constraint IDs where appropriate (ARCH-1, PERF-1, etc.) for cross-referencing.
- Update README — mark the section status as
[~] in-progressor[x] done. - Offer next — suggest moving to the next section, or ask if they want to go deeper.
Section order is suggested, not mandatory. If the user wants to jump to §6 Implementation Plan, go there. If they want to revisit §2 Scope after filling §5, do that.
Rules:
- Only add content the user explicitly provides or approves.
- Tag constraints with IDs (e.g., PERF-1, SEC-3, ARCH-1) for cross-referencing between sections.
- Place constraints in the section they shape, not just where they're mentioned.
- Cross-reference between sections: "See ARCH-1 in §3" or "Feeds into §6 Phase 2".
- Empty sections are fine — mark them and move on. The user fills them when ready.
Research Sources
As the user references documents, codebases, or external resources:
- Assign each a DOC-N identifier.
- Add it to
research/sources.mdwith a one-line description. - Tag which spec sections it feeds (e.g., "Feeds: §3, §5, §7").
Deep Dives
For complex sections (especially §4 Data Flow and §6 Implementation Plan), offer to generate analysis prompts the user can run in separate Claude Code sessions. Use the templates from references/cc-prompt-templates.md.
When the user pastes back results, integrate findings into the appropriate section files.
Phase 3: Finalize
When all sections are filled (or the user says "done" / "finalize"):
- Do a structural consistency pass — cross-references valid, constraint IDs used, no orphaned references.
- Do a content consistency pass — three checks, each reported to the user:
- Every quality claim in §1/§2 has a matching constraint in §7.
- Every measurement in
research/(DOC-N) became a §7 constraint, or was dropped with a stated reason. - §6.4 covers every output §5 ships.
- Update README with final status: all sections marked
[x] doneor[ ] skipped. - Add a "Quick Start" section to README pointing to the most important sections.
- Tell the user the spec is complete and where to find it.
Section Scaffolds
Use these templates when creating each section file in Phase 1.
1-problem-motivation.md
# §1 — Problem / Motivation
> Why does this exist? What's broken? Why now?
## The Question
<!-- The single question a user asks that this feature answers.
One sentence, in the user's words, not the system's.
If you cannot write it, the spec is not ready for §2. -->
## Why
<!-- What is the core problem or opportunity? -->
## What
<!-- What does the solution look like at a high level? -->
## Why Now
<!-- What changed that makes this urgent? Incidents? Scale? Business needs? -->2-scope.md
# §2 — Scope
> What's in, what's out, and where are the boundaries?
## In Scope
<!-- Bulleted list of what this spec covers -->
## Out of Scope
<!-- Bulleted list of what this spec explicitly does NOT cover, with brief reasoning -->
## Boundaries
<!-- What files/systems/services does this touch vs. not touch? -->
| Touches | Does Not Touch |
| ------- | -------------- |
| | |
## Urgency
<!-- How time-sensitive is this? Any hard deadlines? -->3-high-level-architecture.md
# §3 — High-Level Architecture
> System view: components, data stores, external dependencies, deployment.
## System Overview
<!-- How does the system fit together at the highest level? -->
## Data Stores
<!-- What databases, caches, queues, or storage systems are involved? -->
| Store | Role | Access Pattern |
| ----- | ---- | -------------- |
| | | |
## External APIs / Dependencies
<!-- What external services does this depend on? -->
| Service | Purpose | Rate Limits / Constraints |
| ------- | ------- | ------------------------- |
| | | |
## Deployment
<!-- Where does this run? Regions, runtimes, infrastructure. -->4-data-flow-components.md
# §4 — Data Flow / Components
> Current state analysis + target architecture.
## Current State
<!-- How does data flow through the system today? -->
## Component Boundaries
<!-- What are the key modules/services and their responsibilities? -->
## Shared State
<!-- What state is shared between components? How is it synchronized? -->
## Target Architecture
<!-- What does the new architecture look like? Key decisions and rationale. -->
### Key Decisions
<!-- Tag each as KD-N for cross-referencing -->5-interfaces-apis.md
# §5 — Interfaces and APIs
> External APIs, internal endpoints, database schemas.
## External APIs
<!-- APIs consumed from third parties -->
## Internal APIs
<!-- Endpoints this system exposes -->
## Database Schema
<!-- Key tables/collections and their structure -->6-implementation-plan.md
# §6 — Implementation Plan
> Phases, workstreams, prompts, tests, migrations, rollback.
## 6.1 Phased Rollout
<!-- Build order, dependencies, what's parallelizable -->
## 6.2 Workstream Breakdown
<!-- Parallel work tracks, interface contracts between them -->
## 6.3 Prompt Sequence
<!-- One prompt per implementation unit -->
<!--
Each prompt should include:
- <read-first> block listing 4-6 specific source files
- Command recommendation (/think, /ultraplan, /plan)
- TDD test names (the test is the first deliverable)
- Exact file paths to create/modify
-->
## 6.4 Testing Strategy
<!--
For each kind below: name where it applies, or write "N/A — <reason>".
An unexplained blank is not an answer.
· unit — per-function behavior
· contract — payload/API invariants that must never silently break
· property — invariants across the input space, not per-case
· golden/fixture — locks behavior against a validated reference
· integration — real dependencies; replay against historical data
· mutation — proves the suite constrains the code; use wherever the
code and its tests share an author, human or agent
· statistical — REQUIRED when the output is probabilistic, ranked, or
scored: name the metric, the baseline, and the sample size
· load/torture — behavior at full scale
· post-deploy — what reality reports back after shipping
-->
| Unit | Kinds applied | N/A + reason |
| ---- | ------------- | ------------ |
| | | |
## 6.5 Migration Sequence
<!-- Numbered steps, all additive (no breaking changes), deployable before code -->
## 6.6 Rollback Plan
<!-- Scenario → action table, coexistence strategy for old/new -->
| Scenario | Action | Notes |
| -------- | ------ | ----- |
| | | |7-non-functional-requirements.md
# §7 — Non-Functional Requirements
> Performance, reliability, operational, security constraints.
<!-- A threshold constraint names its metric, its value, and what happens on breach.
"Fast", "reliable", "a drift alarm" are adjectives, not constraints.
An invariant needs no number — "all writes are atomic", "never overwrites a
user file" are binary and testable exactly as written. Reach for a number
only where you are promising a threshold.
A measurement recorded in research/ is not a constraint until it lands here.
`dotbabel-validate-specs` enforces this: a comparative with no value fails. -->
## Performance
<!-- Tag each as PERF-N -->
## Reliability
<!-- Tag each as REL-N -->
## Operational
<!-- Tag each as OPS-N -->
## Security
<!-- Tag each as SEC-N -->8-risks-alternatives.md
# §8 — Risks and Alternatives
> Known risks with mitigations, rejected approaches with reasoning.
## Risks
<!-- Tag each as R-N -->
| ID | Risk | Likelihood | Impact | Mitigation |
| --- | ---- | ---------- | ------ | ---------- |
| | | | | |
## Rejected Alternatives
<!-- Tag each as A-N. Include WHY it was rejected — future readers need the reasoning. -->spec.json
The machine-readable half of the spec. dotbabel-validate-specs requires
id, title, status, owners, linked_paths and acceptance_commands;
acceptance_criteria is optional but is what makes the spec's claims
machine-checkable rather than prose.
{
"id": "<spec-name>",
"title": "<Spec Title>",
"status": "draft",
"owners": ["@<owner>"],
"linked_paths": ["<path/this/spec/governs>"],
"acceptance_commands": ["<the command that proves this spec works>"],
"depends_on_specs": [],
"active_prs": [],
"acceptance_criteria": [
{
"id": "AC-1",
"status": "planned",
"given": "<the precondition, in the system's own terms>",
"when": "<the action taken>",
"then": "<the observable outcome — one claim, not a list>",
"tests": [
{
"file": "<path/to/the.test.file>",
"name": "<the exact test name, copied verbatim from the test>"
}
],
"argv": [
"<the command that runs this test>",
"<its arguments>",
"<path/to/the.test.file>",
"--reporter=junit",
"--outputFile=.dotbabel/criteria/AC-1.junit.xml"
],
"report": { "format": "junit-xml", "path": ".dotbabel/criteria/AC-1.junit.xml" }
}
]
}Every new criterion starts planned. A criterion becomes active only in
the pull request that adds the tests it names — seeding active at scaffold
time asserts, from the first commit, that tests exist which do not, and the
verification command will fail looking for them.
linked_paths and acceptance_commands must both be non-empty — the
validator rejects an empty array for either, so replace the placeholders rather
than deleting them. depends_on_specs and active_prs must be present but may
stay empty.
Keep linked_paths narrow. A broad entry (package.json, a whole src/)
drags unrelated changes into this spec's merge gate, so add a path only when a
change there genuinely needs this spec's criteria to pass.
Leave tests[].name and argv as placeholders until the tests exist. The name
must later match the test verbatim — verification looks it up by exact
string in the JUnit report, so a paraphrase silently never matches.
argv is runner-agnostic: the only fixed requirement is that the command emits
JUnit XML at report.path, which every major runner can do. For a Node project
that is ["npx", "vitest", "run", "<file>", "--reporter=junit",
"--outputFile=…"]; Go uses gotestsum --junitfile, Python pytest
--junitxml. Write the one your project actually runs rather than copying the
Node form.
README.md
# {Spec Name} — Engineering Spec
> {description from $1, or omit this line if none provided}
>
> Created: {date}
## Status
| # | Section | Status |
| --- | --------------------------- | --------- |
| 1 | Problem / Motivation | [ ] empty |
| 2 | Scope | [ ] empty |
| 3 | High-Level Architecture | [ ] empty |
| 4 | Data Flow / Components | [ ] empty |
| 5 | Interfaces and APIs | [ ] empty |
| 6 | Implementation Plan | [ ] empty |
| 7 | Non-Functional Requirements | [ ] empty |
| 8 | Risks and Alternatives | [ ] empty |
## Quick Start
<!-- Filled in during finalization -->
## Research Sources
See [research/sources.md](research/sources.md) for indexed source documents.research/sources.md
# Research Sources
> Indexed documents feeding into this spec. Each tagged with which sections it informs.
<!-- Format:
- **DOC-N**: {title} — {one-line description}. Feeds: §N, §N.
-->current-state/analysis.md (brownfield only)
# Current State Analysis
> Analysis of the existing system being redesigned.
## System Overview
<!-- What exists today? -->
## Pain Points
<!-- What's broken, slow, or hard to maintain? -->
## Preserved Behaviors
<!-- What MUST remain the same after the rewrite? -->Constraint ID Conventions
| Prefix | Domain | Lives In |
| ARCH-N | Architecture | §3, §4 |
| IMPL-N | Implementation | §6 |
| TEST-N | Testing | §6 |
| PERF-N | Performance | §7 |
| REL-N | Reliability | §7 |
| OPS-N | Operational | §7 |
| SEC-N | Security | §7 |
| KD-N | Key Decisions | §4 target arch |
| R-N | Risks | §8 |
| A-N | Alternatives | §8 |
| DOC-N | Research docs | research/sources.md |
Key Principles
- User drives content, Claude drives structure. Never invent requirements. Place user input in the correct section with proper tagging.
- Scaffold first, fill interactively. Create the empty structure immediately so the user can see what they're building toward.
- Cross-reference everything. Constraints reference sections. Docs reference sections. Prompts reference docs and files.
- TDD-first in §6. Every prompt in the Implementation Plan must list failing test names before implementation instructions.
- Empty sections are fine. Don't fill sections preemptively. Mark them empty and move on.
- Constraints belong where they shape design. A testing requirement goes in §6, not §7. A modularity requirement goes in §4, not §7. Operational limits go in §7.
- One question at a time. Don't overwhelm the user with multiple questions. Ask about one section or one aspect, then write what they give you.
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.

