spec
Skill4 starsChanged 3 months agoMITView on GitHub
Draft a spec document for a tracked ticket before implementation — the entry point when the user describes a need in prose: "ich brauche …", "mach die spec", "schreib eine Spec für X", "wir sollten X bauen", "draft a spec". Captures the WHAT plus acceptance criteria and proposes open decisions with recommendations. Interactive by default (sets `spec: drafting`); `--auto` drafts the whole spec non-interactively (sets `spec: review`). Invoke as `/ticket-flow:spec <ticket-id> [author] [--auto]`.
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 backprop, ios-clean 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.
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
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
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
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
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
- +2 more from Saqlain-811
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- 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
- codewithmukesh/dotnet-agent-kit★ 853same name
- codewithmukesh/dotnet-claude-kit★ 853same name
- SparkDevNetwork/Rock★ 703same name
- strands-agents/box★ 650same name
183 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, 2 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
2
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 36
No date is extracted in either mode — neither bd's display nor KANBAN.md's four columns (# · Tag · Title · Note) store a creation date.
- Very specific: line 128
Do not invent answers to genuine design decisions.
- Very specific: line 154
Every decision ends with a one-line Recommendation: rationale.
- Very specific: line 155
Only put *real* decisions here — not implementation trivia.
- Very specific: line 174
When the user reviews a spec: review item and locks the decisions:
- Very specific: line 187
If the spec has no ## Decisions section, there is nothing to lock — just set status: approved and drop spec: review.
- Distinctive: line 195
NO changes to other KANBAN.md items.
- Distinctive: line 196
NO automatic column moves (Inbox stays Inbox until the user explicitly moves it).
“Common” is measured: kept by at least 6 in 10 of the 170 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
/ticket-flow:spec — Create item spec from template
Args: <kanban-id> (required, numeric) · <author> (optional, default: git config user.name, fallback $USER) · --auto (optional, position-independent — non-interactive full draft)
Examples:
/ticket-flow:spec 94→ drafting author =git config user.name(e.g.Jane Doe)/ticket-flow:spec 80 agent→ drafting author = agent/ticket-flow:spec 80a agent→ for split sub-items (letter suffix allowed)/ticket-flow:spec 94 --auto→ full autonomous draft, no questions, Kanban note →spec: review
Prerequisites
- The item must already exist as a tracked ticket:
a bd issue (raw bd-id, or a
kanban-<id>label for numeric ids). - Items in ROADMAP.md are out of scope — triage them into bd first.
- Template:
docs/specs/SPEC-TEMPLATE.md(in the project).
Steps
- Find the item — resolve the bd issue, do not read
KANBAN.md:
Emptysource "${CLAUDE_PLUGIN_ROOT}/skills/kanban/bd-helper.sh" BD_ID="$(bd_id_for "$id")" # raw bd-ids pass through; numeric ids scan kanban-<id> labelsBD_ID→ error ("item #<id>not tracked in bd"). Extract fields — from
bd show "$BD_ID" --json:tagfromissue_type(bug/feature/task→change),title,notefrom the bdnotesfield,clusterfrom acluster-<marker>label if present (else-).No date is extracted in either mode — neither bd's display nor KANBAN.md's four columns (
# · Tag · Title · Note) store a creation date. The frontmattercreated:is set in step 6.- Build the slug:
- Lowercase the title, map umlauts (ä→a, ö→o, ü→u, ß→ss), all special chars →
-, collapse multiple-→ single-, strip leading/trailing- - Max 50 chars, cut at word boundary
- Examples: "Add user authentication" →
add-user-authentication; "Refactor session-token-storage layer" →refactor-session-token-storage-layer
- Lowercase the title, map umlauts (ä→a, ö→o, ü→u, ß→ss), all special chars →
- Target path:
docs/specs/${id}-${slug}.md. If the file already exists → error ("Spec already exists:<path>") and no KANBAN update. - Read the template:
Readdocs/specs/SPEC-TEMPLATE.md. - Fill the frontmatter:
--- id: <id> title: <title> tag: <tag> cluster: <cluster or "-> created: <today> status: draft reference-fork: none subitems: false testable-surface: none ---id/title/tag/clusterare verbatim from the step-2 fields.created:is today's date (date +%F) — KANBAN.md stores no creation date, and the field records when this spec doc was written, which is today. The optional fields (reference-fork,subitems,testable-surface) default to the safe values above; interactive mode leaves them for the spec author to update,--autopopulates them per the rules below. - Title heading in the template: replace
# <Title>with# ${title}(no cluster marker). - Keep the rest verbatim — the spec author fills it in. The template's body sections are: Context, Acceptance Criteria, Out of Scope, Reference Fork (Cherry #7), Testable Surfaces (Cherry #1), Sub-Items (Cherry #6), References, Notes. (In
--automode the agent fills the body instead — see Autonomous mode (--auto) below.) Writethe filled spec to the target path.Surface the spec link + status marker — write to bd only. Do not touch
KANBAN.md(a board snapshot is available on demand via/ticket-flow:board):source "${CLAUDE_PLUGIN_ROOT}/skills/kanban/bd-helper.sh" BD_ID="$(bd_id_for "$ID")" if [[ -n "$BD_ID" ]]; then bd_update_notes_replace_prefix "$BD_ID" "[Spec]" "[Spec](docs/specs/${ID}-${SLUG}.md)" # Status marker: `spec: drafting (<author>)` for interactive, `spec: review` for --auto. if [[ "$USE_AUTO" -eq 1 ]]; then bd_update_notes_replace_prefix "$BD_ID" "spec:" "spec: review" else AUTHOR="${AUTHOR:-$(git config user.name 2>/dev/null || true)}"; AUTHOR="${AUTHOR:-$USER}" bd_update_notes_replace_prefix "$BD_ID" "spec:" "spec: drafting (${AUTHOR})" fi fiThe merge-safe
bd_update_notes_replace_prefixwrappers preserve any other notes (e.g.branch:from a prior /pickup,[Verify]from a prior /finish).- Report:
📋 #<id> spec created → docs/specs/<id>-<slug>.md (status: draft) → note: spec: drafting (<author>) Next steps: fill in Acceptance Criteria + Context in the spec, then set `status: approved`.
Edge cases
- ID with letter suffix (e.g.
80afor sub-items): allowed. The slug carries the full ID including the suffix. - Cluster marker with backticks: KANBAN.md uses
`[mess-align]` Multipoint-Messung. Strip the backticks when extracting; in the frontmatter writecluster: [mess-align](without backticks). - Multiple plan links in the note: keep all, in order.
- Note already has
spec: pending: replace withspec: drafting (<author>). - Note already has
spec: drafting (...): a spec probably exists — step 4's edge case should catch it. If not: warn and update the author. --autowith an<author>arg: the author is ignored —--autowritesspec: review, notspec: drafting (<author>).--auto, note already hasspec: pending: replace withspec: review(same slotspec: draftingwould take in interactive mode).
Autonomous mode (--auto)
/ticket-flow:spec <id> --auto produces a complete spec in one shot — it asks the user no questions. It runs the same steps 1–7 and 9, but step 8 is replaced and steps 10–11 differ.
Step 7.5 (codebase grounding — optional, ticket-flow-n3j) — for a non-trivial feature (anything beyond a doc fix, a config tweak, or a one-line change), dispatch one feature-dev:code-explorer agent before filling the body, so Context and Acceptance Criteria are grounded in the actual code rather than guessed:
Agent(subagent_type: "feature-dev:code-explorer",
description: "Explore code for spec #<id>",
prompt: "Trace the implementation relevant to: <feature title + Kanban note>.
Return entry points with file:line, the execution flow, key
components, and the files essential to understand this area.")Read the files the explorer flags as essential, then fill the body from that understanding. Skip this for trivial items — it is a cost, not a ritual. feature-dev must be installed; if the agent type is unavailable, fall back to .claude/rules/project-conventions.md (written by /ticket-flow:discover; older projects still have docs/PROJECT-CONVENTIONS.md) plus a direct read of the obvious files. See docs/research/feature-dev-vs-superpowers.md.
Step 8 (replaced) — fill the whole body from the Kanban item + available context (codebase, linked specs, prior items):
- Context — why the item exists, who's affected, where the demand comes from (2–3 sentences).
- Acceptance Criteria — measurable, verifiable, no "how". Derived from the title/note + codebase context.
- Out of Scope — explicit non-goals that prevent scope creep.
- Reference Fork (Cherry #7) — answer the "is there an OSS project to fork as starting-point?" question. If yes, set
reference-fork: <url>in frontmatter and fill the section. If no, setreference-fork: noneand write one sentence why. If genuinely unclear, omit the picked answer and add a## Decisionsentry (see below). - Testable Surfaces (Cherry #1) — identify the modules/files whose business logic must have unit tests (alloc-free, lock-free, pure-function-shaped). Update frontmatter
testable-surface:to the comma-separated paths, ornonefor docs/config-only items. - Sub-Items (Cherry #6) — fill only when the item is too coarse for one worktree (rare). If filled, set
subitems: trueand list the sub-items. Default: leave the section out, frontmatter stayssubitems: false. - References — code pointers (
skills/<name>/SKILL.md:NN), linked items, prior specs. - Notes — constraints, edge cases, assumptions worth flagging.
- Verification — leave the template placeholder untouched (
/ticket-flow:finishfills it).
Do not invent answers to genuine design decisions. Where a real choice exists — architecture, data/display format, a behavior with no single obvious right answer — surface it in a ## Decisions section instead of guessing or asking.
The ## Decisions section — inserted right after ## Context, before ## Acceptance Criteria. Omit it entirely when the item has no genuine design ambiguity (--auto still produces a valid, complete spec).
Grounding the options (optional, ticket-flow-5yb) — when a decision is genuinely architectural (not a display-format or naming choice), dispatch 2–3 feature-dev:code-architect agents in parallel, each with a different brief (minimal change / clean architecture / pragmatic balance). Each returns a codebase-grounded blueprint; turn them into the ### D# options below. For non-architectural decisions, write the options directly — no dispatch.
Format (proven by hand in docs/specs/8-beads-first-architecture.md):
## Decisions
### D1 — <short decision title>
<the question / what is ambiguous — 1–2 sentences>
- **Option 1 (recommended)** — <description + why it's the default>
- Option 2 — <description>
- Option 3 — <description> # 2–N options total
Recommendation: **Option 1** — <one-line rationale>.Rules for ## Decisions:
- Each decision is an
###heading numberedD1,D2, … (sequential, no gaps). - 2–N options per decision; exactly one option carries the
(recommended)marker. - Every decision ends with a one-line
Recommendation:rationale. - Only put real decisions here — not implementation trivia. If unsure whether something is a decision, it probably isn't: pick the obvious default and mention it in
## Notes.
Step 10 (changed) — the Kanban note gets spec: review instead of spec: drafting (<author>). Everything else about step 10 is unchanged (keep existing pipe sub-fields, insert [Spec](...) at the start, same order convention). spec: review signals "drafted autonomously, waiting on the user's decision-review" — see the status-marker list in skills/kanban/SKILL.md.
Step 11 (changed) — report:
📋 Kanban: #<id> spec drafted autonomously
→ docs/specs/<id>-<slug>.md (status: draft)
→ KANBAN note: spec: review
→ Decisions: <n> open (D1–D<n>) # or "none" when the section was omitted
Next: review the Decisions, then either record the picks via the
/ticket-flow:spec review step (below) or pass them to /ticket-flow:flow
(--decisions a,b,c / --use-recommendations).Reviewing an autonomous spec
When the user reviews a spec: review item and locks the decisions:
- Record the picks in a
## Decision Logat the bottom of the spec (after## Notes):## Decision Log Locked <YYYY-MM-DD> — via /ticket-flow:spec review. - **D1 → Option <n>** — <one-line summary of the chosen option>. - **D2 → Option <n>** — <one-line summary>. - Frontmatter — set
status: approved. - Kanban note — remove the
spec: reviewmarker. The item is now free to move to Backlog (DoR permitting). - If the spec has no
## Decisionssection, there is nothing to lock — just setstatus: approvedand dropspec: review.
The decisions can also be locked at flow-time instead of here — /ticket-flow:flow <id> --decisions … / --use-recommendations writes the same ## Decision Log. See skills/flow/SKILL.md.
Constraints
- Subagent dispatches are limited to the two scoped, optional
--auto-mode exceptions below (code-explorer/code-architect—ticket-flow-n3j/ticket-flow-5yb). Every other step, and the whole of interactive mode, runs directly via Bash / Read / Edit / Write — no dispatch. - Interactive mode: NO content changes to the spec template body (only frontmatter + title heading get filled — the author fills the body afterwards).
--automode fills the body (Context / ACs / Out of Scope / References / Notes + an optional## Decisionssection) — see the Autonomous mode (--auto) section. - NO changes to other KANBAN.md items.
- NO automatic column moves (Inbox stays Inbox until the user explicitly moves it).
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.

