spec-author
БесплатноЗапускает вложенные скриптыНе проверенQualifies a ticket's intent and drafts one specification file under specs/ (frontmatter, Intent, Requirements, Scenarios, Out of scope, Open questions), or a…
от crewrig★ 24 звезды на GitHubОб этом скилле
Spec Author
Turns a raw intent into one draft specification under specs/ that follows
docs/spec-format.md. You own qualification, the question "what does the
user actually want". You do not plan, design or implement: those stages come
after the spec and are judged against it, so a spec that smuggles in a design
choice pre-empts them.
When to activate
- The user asks for a spec (
/spec, optional--mode=FULL|INTERMEDIATE|MINIMAL|AUTOand--issue=<number>). Without--issue, infer the ticket from context. - The orchestrator routes a fresh ticket that is not
trivial. Trivial tickets skip the spec and are handled inline. - A
class: specreview finding re-invokes you. You then author a delta-spec only: the approved spec onmainis immutable, so a correction travels asspecs/<NNNN>-<slug>.delta-<NN>.md. If the request has noclass:tag, say in your reply that the routing step should have set it (hiding the defect would let it recur) and still author the delta. If it asks you to re-author the existing spec instead of a delta, decline that part.
Inputs: a free-form intent, or --issue <N> (read it with
gh issue view <N> --json title,body,comments), or the orchestrator's context.
Pick the interaction mode in this order: invocation flag, the parent ticket's declared mode, then the default INTERMEDIATE. AUTO asks no question.
Workflow
- Interview. Read
references/interview-script.mdbefore asking anything. - Ownership and id (new spec): run the script below with
--id-only. For a delta-spec the script makes no call, so check ownership yourself first: in the CrewRig repository runtask -x ticket-pickup -- --issue <N>and stop on any non-zero exit; elsewhere read the issue's assignees and stop if someone else owns it. - Branch. Cut
spec/<NNNN>-<slug>in its worktree with that id. - Ground. Read
references/pre-write-grounding.mdbefore drafting. - Write. Run the script again without
--id-only, then fill the skeleton. Readreferences/output-contract.mdfor the frontmatter, the body sections, delta mode and self-validation. - Close the open questions (below), then self-validate and hand over.
Script
Run node <skill-dir>/scripts/scaffold-spec.ts from the repository root or one
of its worktrees; add --json for a machine-readable result.
| Call | Purpose |
|---|---|
--issue <N> --slug <slug> --complexity <tier> --mode <mode> --id-only |
Run the ticket pickup check and reserve the id; print the id; write nothing. |
the same without --id-only |
Pickup, reservation, then write specs/<NNNN>-<slug>.md. |
--delta --parent <NNNN> --issue <N> |
Write the next delta-spec of that parent. No tool is called. |
add --dry-run |
Run no tool and write nothing; print the path, the content and the commands. |
The slug is ASCII kebab-case, 40 characters at most. Running --id-only
and then the writing call is safe: the pickup check passes again for the
ticket's owner and the reservation returns the issue's existing id. Once the
file exists, a third call refuses with target-exists; edit the file instead.
| Exit | Meaning | What you do |
|---|---|---|
0 |
Done. data.unsecured is true when the id could not be secured; the file then carries unsecured-id: true. |
Continue. Leave that line in place: CI reads it. |
1 |
A finding, named in findings[].rule. ticket-pickup: the ticket belongs to someone else or its owner is unknown. id-reservation: the reservation failed. branch-mismatch: the branch id or slug differs from the reserved one (an unsecured reservation computes a fresh id each time). |
Stop and tell the user. Never retry hoping for a different answer, never compute max(existing) + 1 yourself, never assign or unassign anyone. For branch-mismatch, rename the branch to the reserved id and slug, or ask the user. |
1 |
A refused input: slug, complexity, mode, target-exists, parent-missing (also when --delta has no --parent). |
Nothing was written and no tool ran. Correct the input and rerun. For parent-missing the parent spec is not under specs/ of this checkout: check the id; if the parent was given to you as a file, write the delta yourself from the output contract. |
2 |
Usage error. | Fix the call. |
3 |
The repository tools are absent (not the CrewRig repository, or no repository). | Do the manual equivalent: read the issue's assignees and stop if someone else owns it; take the next unused number after fetching the default branch and checking open pull requests and branches. If the caller gave you the id, use it. Then run with --dry-run and write that file yourself with the id in place of NNNN; add unsecured-id: true to the frontmatter unless the id is known to be secured. |
The ticket assignment, any comment on the issue and the reservation ref are written by the two repository tools, not by the script. Only the user may
Установить spec-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл spec-author?
Qualifies a ticket's intent and drafts one specification file under specs/ (frontmatter, Intent, Requirements, Scenarios, Out of scope, Open questions), or a delta-spec for a spec-class review finding, with a bundled script that secures the spec id first. Use when a non-trivial ticket needs a spec before planning, or the user asks to write, draft or specify a feature, requirements or Given/When/Then scenarios, or to author a delta-spec. Not for implementation plans, ADRs, PR descriptions or commit messages.
Как установить скилл spec-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-author запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic