debugging-triage
Systematic worker-level debugging: a Stop-the-Line triage process for test failures, broken builds, or unexpected behavior during a task. Used routinely by…
от uisee-ai★ 36 звёзд на GitHub
Установить debugging-triage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Debugging Triage
Triage discipline for problems during a task: stop the line, preserve evidence, triage in order, fix the root cause, prevent recurrence. Guessing wastes real money (every turn is billed). This skill is for workers' daily use; diagnosing an entire run that stalls without converging belongs to the Tier-2 diagnostician (the diagnosis skill).
Stop-the-Line Rules
1. Stop: stop feature work and further changes
2. Preserve evidence: save error output/logs/reproduction steps first
3. Triage: follow the six steps below without skipping any
4. Fix the root cause
5. Prevent recurrence (regression tests)
6. Resume only after verification passes
Never skip a failing test to work on the next feature—errors compound; skipped failures leave all subsequent work built on a broken foundation. In ZaoFu: dev.build.done with failing checks
= false completion, guaranteed rejection by verify, and a wasted rework round.
Six-Step Triage
1. Reproduce
Make the failure happen reliably. If you cannot reproduce it, you cannot fix it (or know whether your fix worked). For failures you cannot reproduce, investigate by dependency type:
- Timing-dependent: add timestamped logs in critical sections; insert delays to widen race windows; run under load/concurrency to increase collisions; loop 100× to improve reproducibility—a 50% reproduction rate is debuggable, 1% is not; raise the rate first;
- Environment-dependent: compare Node/browser versions and environment variables; check data differences (empty database vs populated); reproduce in a clean environment (CI=true)—fails in the worktree but works on the host = 90% likely environment-dependent (r4's no-TTY/port/cache issues all fall into this category);
- State-dependent: look for state leaking between tests/requests; global variables/singletons/shared caches; compare isolated runs with consecutive runs;
- Truly random: add defensive logging and record observed conditions; investigate again when it recurs.
2. Locate the Layer
Which layer is failing?
├── UI/frontend → console, DOM, network
├── API/backend → service logs, requests/responses
├── Data/schema → queries, schema, data integrity
├── Build tools → configuration, dependencies, environment
├── External service → connectivity, API changes, rate limits
└── Test itself → the test may be wrong (false negative)
For regressions, use bisect: git bisect run <test-cmd> automatically identifies the introducing commit
(lane branches have short histories, so bisect is very fast).
3. Minimize
Remove unrelated code/configuration/input until only the bug remains. A minimal reproduction reveals the root cause and prevents fixes that only address symptoms.
4. Fix the Root Cause, Not the Symptoms
"Duplicate users in the list" → deduplicating in the UI treats the symptom (bad); duplicates produced by the API JOIN are the root cause.
Keep asking "why does this happen?" until you reach the true cause; do not stop at the presentation layer. Root cause outside your
allowed_paths → reject the task instead of forcing a fix (dev.failed + an out-of-scope reason):
your rejection reason feeds back into replan as attribution counterevidence (FIX-11), which is far more valuable than unauthorized fixes—in r4, dev-sim-core's honest rejection corrected two rounds of misrouting.
5. Prevent Recurrence
Write a regression test that catches this specific failure: it must fail before the fix and pass afterward. This is required evidence for the completion report.
6. Verify End to End
Specific test → full relevant suite → build → manual smoke test if needed. Unrelated changes made while fixing a bug contaminate the fix; separate them when found.
Error Type Quick Reference
Test fails: Changed code it covers? → Determine whether the test is outdated or the code is wrong
(update outdated tests; never skip them). Changed unrelated code? → Side effects;
check shared state/imports/globals. Already flaky? → Timing/order/external dependencies
Build breaks: Type error → Read the error and check reference sites (consider cross-lane
contract drift first). Import error → Module exists? Correct exports? Correct path?
Dependency error → lockfile/install. Environment error → Node version/CI differences
Runtime: Undefined property → Trace the value upstream through the data flow;
network/CORS → URL/headers/service configuration; blank screen → error boundary/console/component tree;
no errors but wrong behavior → Add logs at key points and verify the data step by step
Safe Fallbacks and Instrumentation
Under time pressure, use safe fallbacks (defaults + warnings, graceful degradation + ErrorState); never silently swallow errors. Instrumentation discipline: add it only when you cannot locate the issue, remove it after the fix, and never retain sensitive data. Keep only error boundaries, API error logs with request context
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл debugging-triage?
Systematic worker-level debugging: a Stop-the-Line triage process for test failures, broken builds, or unexpected behavior during a task. Used routinely by writer/dev roles; mechanically paired with honest completion reporting, the rework evidence chain, and rejection counterevidence. Diagnosis of stalled runs that fail to converge belongs to diagnosis (a Tier-2 role).
Как установить скилл debugging-triage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debugging-triage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…