Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95026

trace

Use when encountering bugs, test failures, runtime errors, broken builds, or "this doesn't work" reports. Systematic root-cause analysis before any patch…

БесплатноБез исполняемых скриптов
jeremylongshoreот jeremylongshore★ 2 961 звезда на GitHub

Установить trace в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Trace

Root cause, not symptom. Never patch over a bug without understanding why it happened.

All agents inherit the session model. Reviewers and Debuggers bold-labeled; Workers plain.

Per-Step Agent Map (DOCTRINE rule 12)

Every substantive step dispatches at least one Agent. Atomic steps (per DOCTRINE 12.2.8) are a single Worker → Reviewer pair with no independent angles to fan out.

Step Status Workers Reviewers Notes
1 — Reproduce Atomic (12.2.8) Searcher Reviewer Runs if repro missing; single Worker→Reviewer pair
2 — Gather evidence Atomic (12.2.8) searcher specialist × 3 Reviewer 3 parallel Searchers → single Reviewer; one Worker-group→Reviewer pair
3 — Hypothesize Atomic (12.2.8) debugger specialist Reviewer Single Debugger (5 Whys + ranked hypotheses); may fan out Step 4 across hypotheses (rule 18)
4 — Verify 2 sub-phases Implementer × N Debugger · Reviewer 4a: parallel Implementers → Reviewer; 4b: Debugger re-evaluation → Reviewer
5 — Fix at root Atomic (12.2.8) Implementer × N Reviewer N Implementers (one per file) → Reviewer; single Worker-group→Reviewer pair
6 — Regression test Atomic (12.2.8) Writer Reviewer Single Writer → single Reviewer; no parallel angle
7 — Memory + final Atomic (12.2.8) Writer Reviewer Single Writer → integration Reviewer; no parallel angle

Step 1 — Reproduce

Atomic — single Searcher → Reviewer pair (DOCTRINE 12.2.8). No parallel angles: artifact retrieval is a single-scope search when the symptom is unknown.

If the user supplied a stack trace, test name, or log snippet — skip the Worker dispatch entirely (Step 1 is then trivially fulfilled by existing input; proceed to Step 2).

Otherwise dispatch Searcher — locating bug reproduction in recent changes/tests.

Collect: failing test name or command, error message, stack trace, log lines, recent commits touching the affected surface.

Then dispatch **Reviewer** — confirming reproduction is valid with the collected artifacts.

Reviewer confirms:

  • The failure is consistent and deterministic (or flags intermittent).
  • The error matches the stated symptom.
  • The repro is not a test-environment artifact (missing seed data, wrong env vars, clock skew).

If environmental (CI-only, intermittent, time-dependent) — flag explicitly before proceeding to Step 2.

Step 2 — Gather Evidence

Atomic — one Worker-group (3 parallel Searchers) → single Reviewer pair (DOCTRINE 12.2.8). The three Searchers are parallel angles inside one sub-phase, not independent sub-phases. They are dispatched as the searcher specialist — path-anchored evidence, read-only, no fan-out.

Dispatch simultaneously in a single message:

  • Searcher — reading error stack traces and logs
  • Searcher — mapping the code paths involved
  • Searcher — finding related tests (passing and failing)

Each Searcher writes its findings as a structured list: file paths, line numbers, key values, timestamps.

Then dispatch **Reviewer** — verifying evidence coverage over all three Searcher outputs.

Reviewer confirms the three Searchers actually triangulate the failure surface. If gaps remain (e.g., no log found, code path incomplete), the Reviewer names specific missing angles — re-run the Searcher(s) for those gaps only, then re-run the Reviewer. Repeat until coverage is confirmed.

Failure recovery: Searcher tool errors and NEEDS_REVISION verdicts follow DOCTRINE rule 14 (skills/hyperflow/failure-recovery.md). For trace specifically, a Searcher that aborts mid-evidence-gathering leaves the debugger with incomplete coverage — flag the gap explicitly in the Step 3 Reviewer output and carry it forward as a known uncertainty in the root-cause synthesis. Do not silently proceed as if evidence is complete.

Step 3 — Hypothesize

Atomic — single Debugger → Reviewer pair (DOCTRINE 12.2.8). 5 Whys and hypothesis ranking are a single sequential reasoning task; one Debugger call produces both in one pass.

Dispatch **Debugger** — 5 Whys + hypothesis ranking: <bug-summary> — the debugger specialist agent, carrying its charter (root-before-symptom, written 5-Whys chain, web-research-first on a gated flow for known-issue/changelog lookups). When ≥ 2 hypotheses are genuinely independent, the debugger may fan out Step 4 verification across them (depth 1, ≤ 3 sub-workers — DOCTRINE rule 18); a single-hypothesis bug never fans out.

Single call produces:

Part A — 5 Whys causal chain (depth-first):

  • Why does this fail? → because X → why X? → because Y → continue to root.
  • Goal: reach a structural cause (data contract violation, state mutation, missing guard, timing assumption), not a surface symptom.
  • Output: one causal chain ending at the deepest reachable root.

Part B — Hypothesis fan-out (using Part A's causal chain):

  • Emit 1–3 r
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Bash(git:*)
  3. 03Bash(npm:*)
  4. 04Bash(pnpm:*)
  5. 05Glob
  6. 06Grep
  7. 07Agent
  8. 08AskUserQuestion

Вложенные файлы

  • references/memory-system.md
  • references/output-style.md
  • references/reviewer-prompt.md
  • references/worker-prompt.md

FAQ

Что делает скилл trace?

Use when encountering bugs, test failures, runtime errors, broken builds, or "this doesn't work" reports. Systematic root-cause analysis before any patch — never blind-patches symptoms. Standalone, ends with a final-integration review of the fix. Trigger with /hyperflow:trace, "debug this", "find the root cause", "why is this failing", "this test is broken".

Как установить скилл trace?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл trace запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить trace с