cavekit-backprop
БесплатноБез исполняемых скриптовНе проверенCavekit bug-to-spec protocol. Use on test failures, user bug reports, post-mortems, or /ck:check violations to trace root cause and decide what §B and §V…
от casualjim★ 18 звёзд на GitHubОб этом скилле
cavekit-backprop — bug → spec memory
Plan-then-execute fixes code and forgets. Cavekit backprop fixes code and updates SPEC.md so recurrence is harder.
Backprop analysis is usually paired with cavekit-spec, which performs approved SPEC.md mutations.
Read bundled ../../FORMAT.md before drafting §B or §V entries.
When to backprop
/ck:buildverification fails.- User reports a bug.
- Post-mortem after incident.
/ck:checkflags VIOLATE or DRIFT and root cause is found.
Six steps
1. Trace
Read failure output or bug report. If cavecrew-investigator is available, use it for read-only compressed trace evidence: exact file:line, callers, tests, interface boundary, and related context. The investigator must not design, fix, edit, mutate state, or draft SPEC.md changes. If unavailable, use codebase-memory tools when available, then exact reads/search as fallback.
Find exact file:line or behavior boundary. Name root cause in one concise sentence.
2. Analyze
Analyze and ask the user when classification is unclear. Follow the user decision policy.
Questions to resolve when needed:
- Would a new §V invariant catch this class of bug?
- Is §I wrong because the spec claimed the wrong external shape?
- Is §T wrong because the task built the wrong work?
- Is this a one-off mechanical typo or external dependency issue where §V would add noise?
Offer 2-4 concrete options, for example: §B only, §B + §V (Recommended), §B + §V + §T, or No spec change.
3. Propose spec change
Draft changes. Ask for approval unless the user explicitly requested direct mutation.
Template:
§B row: B<next>|<date>|<root cause>|V<N>
§V line: V<next>: <testable rule that would have caught it>
If no invariant is useful, use - in the §B fix cell and explain why.
Example:
§B row: B3|2026-04-20|refund job ran twice on retry|V7
§V line: V7: ∀ refund → idempotency key check before charge reversal
4. Generate or update test plan
New invariant without verification is weak. Propose a test or check that cites the invariant, for example TestV7_RefundIdempotent.
5. Verify
If implementation work is in scope, fix code and run the targeted test plus appropriate suite. If this skill is being used for analysis only, hand the test/code work back to /ck:build.
6. Log
Use cavekit-spec to append §B and §V/§T changes after user approval. cavekit-backprop and cavecrew-investigator do not mutate SPEC.md. Do not commit automatically; commit only when explicitly requested by the user in this session.
Good invariant qualities
- Testable in code, config, or observable behavior.
- Scoped to behavior rather than one file.
- Stated positively when possible.
- References §I surface where applicable.
- Short enough to stay useful in every future Cavekit invocation.
Bad:
V8: code should be correct.
Good:
V8: ∀ pg_query ! params via driver, ⊥ string concat.
When not to add §V
- Pure one-off typo with no recurring class.
- One-time migration.
- External dependency failure where the fix is a dependency pin/upgrade.
Still record a §B entry so future similar failures have precedent.
Output shape
Every backprop analysis should produce:
- root cause;
- proposed §B row;
- proposed §V entry when useful;
- proposed test/check;
- next action:
/ck:spec bug: ...,/ck:build ..., or fix code.
Установить cavekit-backprop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cavekit-backprop?
Cavekit bug-to-spec protocol. Use on test failures, user bug reports, post-mortems, or /ck:check violations to trace root cause and decide what §B and §V updates should be made through cavekit-spec.
Как установить скилл cavekit-backprop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cavekit-backprop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic