Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. The user asks for a spec (/spec, optional --mode=FULL|INTERMEDIATE|MINIMAL|AUTO and --issue=<number>). Without --issue, infer the ticket from context.
  2. The orchestrator routes a fresh ticket that is not trivial. Trivial tickets skip the spec and are handled inline.
  3. A class: spec review finding re-invokes you. You then author a delta-spec only: the approved spec on main is immutable, so a correction travels as specs/<NNNN>-<slug>.delta-<NN>.md. If the request has no class: 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

  1. Interview. Read references/interview-script.md before asking anything.
  2. 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 run task -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.
  3. Branch. Cut spec/<NNNN>-<slug> in its worktree with that id.
  4. Ground. Read references/pre-write-grounding.md before drafting.
  5. Write. Run the script again without --id-only, then fill the skeleton. Read references/output-contract.md for the frontmatter, the body sections, delta mode and self-validation.
  6. 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

Полный SKILL.md на GitHub

Установить spec-author в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/interview-script.mdreferences/output-contract.mdreferences/pre-write-grounding.mdreferences/shared-finding-class-taxonomy.mdreferences/shared-friction-reporting.mdscripts/scaffold-spec.ts

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить spec-author с