debugging
БесплатноБез исполняемых скриптовНе проверенRun a reproduce → isolate → verify debugging workflow for concrete bugs, regressions, flaky failures, and environment-specific behavior. Use when the user…
от akillness★ 63 звезды на GitHubОб этом скилле
Debugging
Use this skill when the job is to turn a concrete failure into a bounded diagnosis loop.
The center of the skill is small and repeatable:
- define the failing behavior in testable terms,
- build or confirm the cheapest reliable reproducer,
- isolate the narrowest failing boundary,
- run one discriminating check per hypothesis,
- verify the fix under the same conditions.
Read references/handoff-boundaries.md before taking work that may belong to log-analysis, testing-strategies, code-review, or performance-optimization.
Read references/debug-loop.md for the full experiment-loop scaffolding.
Read references/mode-selection-and-fast-checks.md when the case is clearly a regression, flake, env/config mismatch, or artifact-led investigation.
When to use this skill
- A command, test, request, or UI flow fails and the user needs a root-cause workflow
- A bug is reproducible or close to reproducible and needs narrowing before patching
- A regression has a likely change window or last-known-good state
- A flaky failure needs repeated-run evidence, isolation, and stabilization of one concrete case
- CI/staging/prod-only behavior now has enough evidence to compare environment or config differences
- The user asks how to reproduce, isolate, bisect, confirm, or verify a bug fix
When not to use this skill
- The user only has logs / stack traces and still needs the first actionable failure → use
log-analysis - The real task is test-program design, flake policy, or coverage planning → use
testing-strategies - The task is reviewing a diff / PR for correctness, risk, or missing evidence → use
code-review - The main job is telemetry rollout, dashboards, or observability-platform design → use
monitoring-observability - The main job is bottleneck measurement and optimization tradeoffs → use
performance-optimization
Instructions
Step 1: Freeze the failure definition
Write the failure in a form that can be retested.
Capture:
- expected behavior
- actual behavior
- exact trigger, input, or state
- environment: local / CI / staging / production / browser / mobile / runtime
- deterministic vs flaky vs unknown
- last-known-good state if this may be a regression
Minimum shape:
Expected: ...
Actual: ...
Trigger: ...
Environment: ...
Confidence: high | medium | low
If the report is still just "something failed" with giant logs and no narrowed symptom, route to log-analysis first.
Step 2: Choose the right first evidence source
Pick the cheapest path that can falsify or confirm your next hypothesis.
Use this routing shortcut:
- Known failing command/test/request/UI flow → reproduce it directly
- Regression with last-known-good → compare recent changes and consider
git bisect - Flaky / intermittent → measure frequency first with repeated runs
- CI/staging/prod only → compare env/config/runtime facts before speculating about code
- Artifact-led case → inspect the first meaningful log/trace/screenshot, then narrow to one suspect boundary
- Performance-only complaint → route to
performance-optimizationunless a concrete broken behavior still needs diagnosis
Step 3: Build the smallest reliable reproducer
Prefer the cheapest reproduction that still fails.
Common shapes:
- one CLI command
- one HTTP request or API call
- one UI flow with exact steps
- one failing test or fixture
- one save file / seed / payload / config combination
- one commit range for regression hunting
Useful tactics:
- reduce unrelated setup
- freeze time/randomness/network when possible
- capture exact env/config values that differ
- keep repeated-run loops focused on one suspect
Step 4: Isolate the boundary before proposing fixes
Narrow the problem first.
Isolation angles:
- boundary — UI vs API vs DB vs worker vs config vs dependency vs asset/runtime
- input — one payload, record, seed, scene, or fixture
- history — what changed between good and bad
- environment — local vs CI vs staging vs production
- timing — ordering, retries, caching, clocks, async waits, shared state
High-value questions:
- Can one file/module/config branch now be named as the primary suspect?
- Is the failure about data shape, state transition, config drift, dependency behavior, or code path?
- Is the current bottleneck still diagnosis, or has the task shifted to review / test-policy / optimization work?
Step 5: Run one discriminating check per hypothesis
Do not patch five things at once.
For each hypothesis:
- state why it explains the failure
- run one read-only or reversible check first
- record the result
- keep or reject the hypothesis based on evidence
Good first checks:
- inspect the request/payload/config at the narrowed boundary
- compare one good state and one bad state
- rerun one targeted test instead of the whole suite
Установить debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashWriteВложенные файлы
FAQ
Что делает скилл debugging?
Run a reproduce → isolate → verify debugging workflow for concrete bugs, regressions, flaky failures, and environment-specific behavior. Use when the user already has a failing command, test, request, UI flow, or narrowed symptom and needs root-cause diagnosis or fix verification rather than raw log-line selection, broad test-policy design, PR review, or generic performance tuning.
Как установить скилл debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 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