Command Palette

Search for a command to run...

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

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

  1. No SPEC.md at project root AND request describes an idea → NEW
  2. No SPEC.md at project root AND request includes from-code → DISTILL
  3. SPEC.md exists AND request starts with or clearly means bug: → BACKPROP
  4. SPEC.md exists AND request starts with or clearly means amend → AMEND
  5. SPEC.md exists 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.md mutation after a proposed diff;
  • deciding whether BACKPROP should add only §B, add §B+§V, or add §B+§V+§T.

Rules:

  1. Share needed context in normal assistant text before asking: current § item, evidence, proposed diff/plan, tradeoffs, and recommendation.
  2. Ask only after that context is visible to the user. The question is a decision step, not the place where the plan is explained.
  3. Do not put full plan, diff, evidence, nuanced rationale, or long replacement text in the question string, option descriptions, or previews.
  4. Keep the question field short: ask only for the decision.
  5. Options are decision controls, not context transport.
  6. Group 1-4 questions in one tool call when supported.
  7. Use 2-4 concrete options per question.
  8. Put recommended option first and suffix label with (Recommended) when applicable.
  9. Keep option labels ≤60 chars and headers ≤16 chars.
  10. Keep option descriptions concise: identify action and key consequence only. Exact § refs are OK; long replacement text belongs in pre-question context.
  11. 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:

  1. Extract goal as one caveman-format line → §G.
  2. List stated or implied non-negotiable constraints → §C.
  3. List external surfaces the user named or the code clearly exposes → §I.
  4. Propose initial testable invariants → §V numbered V1....
  5. Break goal into ordered tasks → §T pipe table with status ., ids T1..., and cites entries for relevant §V/§I refs.
  6. 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

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