repro-first-debugging
БесплатноБез исполняемых скриптовНе проверенDebug by reproducing the failure first, then forming and testing hypotheses before editing code. Use when asked to fix a bug, a failing test, a crash or…
от aiskillstore★ 509 звёзд на GitHubОб этом скилле
Reproduce first, then fix
Goal: fix the cause, prove the fix, and avoid editing on a guess.
Process
- Restate the failure in one line: expected behavior, actual behavior, where it was seen. Ask for the error text, steps or input if they are missing. Do not start from a vague description.
- Reproduce it. Run the failing test or the smallest command that triggers it. Capture the exact output. If you cannot reproduce it, stop and report what you tried; do not "fix" something you cannot see fail.
- Shrink it. Reduce to the smallest input or test that still fails. Prefer turning the reproduction into an automated failing test in the project's test framework.
- List hypotheses. Write two or three plausible causes, each with the evidence that would confirm or kill it. Rank by likelihood and cost to check.
- Test the hypotheses, cheapest first. Read the code path, add temporary logging or assertions, bisect (
git bisector by reverting suspects), check recent changes (git log -p -- <path>). Record what each check showed. Remove temporary logging afterwards. - Fix the cause, not the symptom. Make the smallest change that explains the evidence. If the fix needs a workaround, say so and why.
- Prove it. The failing test now passes; run the nearby tests and the full suite if fast. Show the before and after output.
- Look for siblings. Search for the same pattern elsewhere (
rg) and report, but do not change unrelated code without asking.
Report
Failure: <expected vs actual>
Reproduction: <command> -> <output summary>
Root cause: <what and why, with file:line>
Evidence: <the checks that confirmed it, and the hypotheses ruled out>
Fix: <summary of the change>
Verification: <failing test now passes; commands and results>
Related risks: <similar code found, not changed>
Rules
- No code edits before step 2 succeeds, unless the user explicitly asks for a blind fix.
- Never delete or weaken a test to make it pass.
- Never claim success without showing a command that failed before and passes now.
- If three hypotheses fail, stop and report what you know and what you need.
Установить repro-first-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл repro-first-debugging?
Debug by reproducing the failure first, then forming and testing hypotheses before editing code. Use when asked to fix a bug, a failing test, a crash or unexpected behavior.
Как установить скилл repro-first-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repro-first-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (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