spec · owainlewis — скилл для Claude Code: спека вместо тикета
Скилл пишет одну готовую к реализации спецификацию на одно изменение: поведение, техдизайн, обработка сбоев и проверки приёмки.
npx skills add owainlewis/blueprint --skill spec -a claude-codeЧто делает spec
Скилл spec превращает запрос в спецификацию, по которой можно работать без догадок. Источником служит docs/<feature-slug>/spec.md, GitHub issue или другой документ от пользователя. Если источник передан, скилл обновляет его, а не заводит второй тикет. Без источника берёт путь выше. Публикует в трекер только по просьбе.
Процесс разбит на пять шагов. Сначала скилл читает запрос, инструкции репозитория, требования, архитектуру и релевантный код, проверяя утверждения о текущем поведении. Потом фиксирует результат и границы, спрашивает про нерешённые развилки, которые меняют поведение, данные, интерфейсы, безопасность или стоимость. Дальше пишет спеку по заданной форме: результат и границы, требуемое поведение с ссылками на REQ-n, технический дизайн, приёмка и доказательства в таблице с AC-n, открытые решения. Завершает проверкой: свежий агент должен реализовать спеку, не изобретая значимых решений. На этом скилл останавливается и не планирует задачи.
Важная деталь: disable-model-invocation: true в описании скилла. Модель не вызовет его сама, запускать нужно вручную. Схему, индексы, миграции, транзакции и откат скилл описывает только там, где они затрагивают изменение. Мелкие уже решённые правки можно вести без формальной спеки.
Какие задачи решает
- зафиксировать поведение фичи до начала кода
- согласовать технический дизайн и границы изменения
- описать обработку ошибок и частичных сбоев
- связать условия приёмки с конкретными проверками
- сохранить спеку как запись решений после поставки
Примеры запросов агенту
- /spec добавь экспорт отчёта в CSV
- /spec переведи оплату на новый провайдер
- /spec обнови спеку docs/export/spec.md под частичные сбои
Как установить spec
1Через Skills CLI (Vercel)
npx skills add owainlewis/blueprint --skill spec -a claude-code2Вручную: положить файлы
~/.claude/skills/spec/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/spec/
1Через Skills CLI (Vercel)
npx skills add owainlewis/blueprint --skill spec -a codex2Вручную: положить файлы
.agents/skills/spec/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add owainlewis/blueprint --skill spec -a cursor2Вручную: положить файлы
.cursor/skills/spec/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install owainlewis/blueprint spec2Вручную: положить файлы
.github/skills/spec/SKILL.md1Через Skills CLI (Vercel)
npx skills add owainlewis/blueprint --skill spec -a gemini-cli2Командой платформы
gemini skills install https://github.com/owainlewis/blueprint --path skills/specВручную: положить файлы
.devin/skills/spec/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add owainlewis/blueprint --skill spec -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о spec
Как установить spec в Claude?
Выполните npx skills add owainlewis/blueprint --skill spec -a claude-code. Скилл появится в ~/.claude/skills/spec/SKILL.md.
Что делает spec?
Пишет одну спецификацию на одно связное изменение: требуемое поведение, технический дизайн, обработка сбоев и проверки приёмки. Спека заменяет тикет.
Можно ли вызвать spec автоматически?
Нет. В описании стоит disable-model-invocation: true, поэтому запускать скилл нужно вручную.
Исходный текст
SKILL.md · MIT
--- name: spec description: "Defines one feature or major change: required behavior, technical design, failure handling, and acceptance checks. Use when consequential decisions must be settled before delivery. The spec is the ticket." user-invocable: true argument-hint: "<feature, change, issue, or brief>" disable-model-invocation: true --- # Spec Write one implementation-ready specification for one coherent change. The spec is the ticket: its source may be `docs/<feature-slug>/spec.md`, a GitHub issue, or another user-supplied document. Update the supplied source; do not create a duplicate ticket or document. Without a supplied source, use the Markdown path above. Publish to a tracker only when asked. ## Process 1. Read the request, repository instructions, requirements, architecture, and relevant implementation. Reuse settled decisions and verify claims about current behavior. 2. Define the outcome and scope. Ask about unresolved choices that could change behavior, data, interfaces, security, compatibility, operations, cost, or proof. Leave reversible local mechanics to implementation. 3. Write the spec using the shape below. Explain the change from current behavior; link shared requirements and architecture instead of restating them. 4. Check that a fresh agent could implement it without inventing a consequential decision. Trace success, denial, invalid input, and partial failure where relevant. 5. Stop with the spec ready for review. Do not plan tasks or implement it. ## Spec shape ### Outcome and scope State the problem, affected user or caller, desired result, constraints, and non-goals. ### Required behavior Describe inputs, actions, observable results, permissions, business rules, and failure recovery. Reference applicable `REQ-n` IDs. Settle feature-specific product details here. ### Technical design Explain changed responsibilities, interfaces, data, and execution order. Use concrete types, payloads, state tables, or diagrams when they remove ambiguity. Cover schema changes, indexes, migrations, transaction boundaries, concurrency, retries, cancellation, security, compatibility, observability, rollout, and rollback only where they affect the change. State important choices, their reasons, and their costs. Name any required change to system architecture. Do not silently override an accepted rule. Record the proposed architecture change for review before delivery. ### Acceptance and proof Pair each observable condition and affected architectural rule with a check. | ID | Done when | How to check | |---|---|---| | AC-1 | Concrete result | Command, automated scenario, or manual check | Preserve existing `AC-n`, `REQ-n`, and `INV-n` references. Never reuse or renumber IDs. Do not invent executable commands for code that does not exist; define the scenario and expected result instead. ### Open decisions State missing answers, recommended defaults when justified, and whether they block delivery. Write None when settled. Do not hide unknowns behind placeholders. ## Lifecycle State the decision status and delivery status separately. After delivery, retain the spec as a record of the feature decisions and acceptance checks. Link delivered PRs and proof without claiming unrun checks passed. Record consequential changes made during delivery; do not erase the reasoning. Keep current product and system rules in requirements and architecture. ## Boundaries One spec may lead to several tasks and pull requests. Use `/plan` when splitting helps delivery. Small, decided fixes can use their task description and checks without a formal spec. Do not require root documents for a local change that does not need them. ## Return Report the source, main decision and tradeoff, and any blocking question.
© owainlewis · MIT · owainlewis/blueprint
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — spec от других авторов.