cavekit-spec
БесплатноБез исполняемых скриптовНе проверенCreate, distill, amend, or backprop bugs into project-root SPEC.md using Cavekit FORMAT.md. Use when users invoke /ck:spec, ask to write a Cavekit spec, amend…
от casualjim★ 18 звёзд на GitHubОб этом скилле
cavekit-spec — SPEC.md mutator
This is the sole Cavekit workflow that mutates project-root SPEC.md content beyond task status flips.
Read bundled ../../FORMAT.md before writing or checking spec structure. That file defines the SPEC.md schema, addressing rules, pipe-table rules, and caveman-style encoding for spec content. The bundled FORMAT.md is reference material; the working SPEC.md lives at the user's project root.
Dispatch
Inspect the user's request and project state:
- No
SPEC.mdat project root AND request describes an idea → NEW - No
SPEC.mdat project root AND request includesfrom-code→ DISTILL SPEC.mdexists AND request starts with or clearly meansbug:→ BACKPROPSPEC.mdexists AND request starts with or clearly meansamend→ AMENDSPEC.mdexists and no mode is clear → ask the user to choose mode before proceeding
INPUTS — spec is the sole mutator
The reach-for verbs produce material; cavekit-spec writes it. Sectioned
ownership: ingest each handoff block into the section that verb owns, show a
diff, write on OK. ⊥ rewrite a section the handoff did not name.
- cavekit-grill → sharpened §G + §C
- cavekit-research → §R rows (add the §R section if absent)
- cavekit-review → drafted §V lines + the risk verdict
- cavekit-deepen → §I/§V/§T amendments
§R RESEARCH is optional — create the section only when a research handoff
arrives; omit it otherwise (right-size).
Question protocol
Follow the user decision policy whenever Cavekit needs a decision from the user.
Required cases:
- unclear dispatch mode;
- missing AMEND target or replacement text;
- choosing between multiple plausible edits;
- approving
SPEC.mdmutation after a proposed diff; - deciding whether BACKPROP should add only §B, add §B+§V, or add §B+§V+§T.
Rules:
- Share needed context in normal assistant text before asking: current § item, evidence, proposed diff/plan, tradeoffs, and recommendation.
- Ask only after that context is visible to the user. The question is a decision step, not the place where the plan is explained.
- Do not put full plan, diff, evidence, nuanced rationale, or long replacement text in the question string, option descriptions, or previews.
- Keep the
questionfield short: ask only for the decision. - Options are decision controls, not context transport.
- Group 1-4 questions in one tool call when supported.
- Use 2-4 concrete options per question.
- Put recommended option first and suffix label with
(Recommended)when applicable. - Keep option labels ≤60 chars and headers ≤16 chars.
- Keep option descriptions concise: identify action and key consequence only. Exact § refs are OK; long replacement text belongs in pre-question context.
- If the user must supply arbitrary text, use the host's supported custom input.
Example for missing amend target/change:
Need amend target/change missing.
Current evidence:
- §V.149 still names prohibited `AgentTool` collapse.
- Code now uses `tin_reactor::Error::Tool(#[from] tin_tools::Error)`.
- `AgentTool` variant should remain forbidden.
Proposed amendment:
- Amend §V.149 to: `V149: tin_reactor::Error::Tool(#[from] tin_tools::Error); AgentTool variant ⊥.`
Tradeoff:
- V149-only fixes spec drift.
- V149 + task adds explicit regression guard if tests do not already cover it.
Then ask separately using the available decision tool:
Question: Which amendment should apply?
Options:
- Amend V149 (Recommended): Update invariant only; no new task.
- Amend + task: Update invariant and add guard task/test.
- Different target: Supply the exact § ref or text.
NEW — idea → spec
Input: user idea.
Steps:
- Extract goal as one caveman-format line → §G.
- List stated or implied non-negotiable constraints → §C.
- List external surfaces the user named or the code clearly exposes → §I.
- Propose initial testable invariants → §V numbered
V1.... - Break goal into ordered tasks → §T pipe table with status
., idsT1..., andcitesentries for relevant §V/§I refs. - Create §B with only header row:
id|date|cause|fix.
Write SPEC.md at project root. Show the full file and ask spec OK? with options like accept, amend, or stop.
DISTILL — code → spec
Walk the current repo. If cavecrew-investigator is available, use it first for read-only compressed repository mapping: public surfaces, package metadata, main entrypoints, tests/assertions, TODOs, config/env/files, and likely invariants. The investigator must return file:line evidence only and must not design, fix, edit, or mutate state. If unavailable, continue with codebase-memory tools when available, then exact reads/search as fallback.
Produce:
- §G: infer from README, package metadata, main entrypoints, or obvious behavior.
- §C: infer stack, language, runtime, and locked constraints.
- §I: enumerate public CLIs, APIs, config files, env vars, files, or package
Установить cavekit-spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cavekit-spec?
Create, distill, amend, or backprop bugs into project-root SPEC.md using Cavekit FORMAT.md. Use when users invoke /ck:spec, ask to write a Cavekit spec, amend §G/§C/§I/§V/§T/§B, distill a spec from code, or record a bug via backprop.
Как установить скилл cavekit-spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cavekit-spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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