跳到正文
Skillpedia
通用编程41k · #7029

trace

它能做什么

这项技能调查某个观察到的结果为何会发生,而不是直接跳到修复。适合面对令人困惑的 bug、变慢或意外结果,并希望先弄清原因的人。

适用场景

  • ✓当一个 bug、变慢或意外结果没有明显原因的时候。
  • ✓当你希望在做任何更改之前,把几种解释与证据进行比较的时候。
  • ✓当你想知道哪一项下一步检查最能缩小原因范围的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/trace/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/trace/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们的夜间任务上周变慢了,但没人知道为什么。请追踪可能的原因,并告诉我下一步应该做哪项检查。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会重新陈述观察到的现象,提出相互竞争的解释,并为每种解释收集支持和反对的证据,通常是并行进行。然后它会对这些解释排序,指出最大的缺失事实,并建议能最快解决问题的探测方法。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Trace Skill

Use this skill for ambiguous, causal, evidence-heavy questions where the goal is to explain why an observed result happened, not to jump directly into fixing or rewriting code.

This is the orchestration layer on top of the built-in tracer agent. The goal is to make tracing feel like a reusable OMC operating lane: restate the observation, generate competing explanations, gather evidence in parallel, rank the explanations, and propose the next probe that would collapse uncertainty fastest.

Good entry cases

Use /oh-my-claudecode:trace when the problem is:

  • ambiguous
  • causal
  • evidence-heavy
  • best answered by exploring competing explanations in parallel

Examples:

  • runtime bugs and regressions
  • performance / latency / resource behavior
  • architecture / premortem / postmortem analysis
  • scientific or experimental result tracing
  • config / routing / orchestration behavior explanation
  • “given this output, trace back the likely causes”

Core tracing contract

Always preserve these distinctions:

  1. Observation -- what was actually observed
  2. Hypotheses -- competing explanations
  3. Evidence For -- what supports each explanation
  4. Evidence Against / Gaps -- what contradicts it or is still missing
  5. Current Best Explanation -- the leading explanation right now
  6. Critical Unknown -- the missing fact keeping the top explanations apart
  7. Discriminating Probe -- the highest-value next step to collapse uncertainty

Do not collapse into:

  • a generic fix-it coding loop
  • a generic debugger summary
  • a raw dump of worker output
  • fake certainty when evidence is incomplete

Evidence strength hierarchy

Treat evidence as ranked, not flat.

From strongest to weakest:

  1. Controlled reproductions / direct experiments / uniquely discriminating artifacts
  2. Primary source artifacts with tight provenance (trace events, logs, metrics, benchmark outputs, configs, git history, file:line behavior)
  3. Multiple independent sources converging on the same explanation
  4. Single-source code-path or behavioral inference
  5. Weak circumstantial clues (timing, naming, stack order, resemblance to prior bugs)
  6. Intuition / analogy / speculation

Explicitly down-rank hypotheses that depend mostly on lower tiers when stronger contradictory evidence exists.

Strong falsification / disconfirmation rules

Every serious /trace run must try to falsify its own favorite explanation.

For each top hypothesis:

  • collect evidence for it
  • collect evidence against it
  • state what distinctive prediction it makes
  • state what observation would be hard to reconcile with it
  • identify the cheapest probe that would discriminate it from the next-best alternative

Down-rank a hypothesis when:

  • direct evidence contradicts it
  • it survives only by adding new unverified assumptions
  • it makes no distinctive prediction compared with rivals
  • a stronger alternative explains the same facts with fewer assumptions
  • its support is mostly circumstantial while the rival has stronger evidence tiers

Team-mode orchestration shape

Use Claude built-in team mode for /trace.

The lead should:

  1. Restate the observed result or “why” question precisely
  2. Extract the tracing target
  3. Generate multiple deliberately different candidate hypotheses
  4. Spawn 3 tracer lanes by default in team mode
  5. Assign one tracer worker per lane
  6. Instruct each tracer worker to gather evidence for and against its lane
  7. Run a rebuttal round between the leading hypothesis and the strongest remaining alternative
  8. Detect whether the top lanes genuinely differ or actually converge on the same root cause
  9. Merge findings into a ranked synthesis with an explicit critical unknown and discriminating probe

Important: workers should pursue deliberately different explanations, not the same explanation in parallel.

Default hypothesis lanes for v1

Unless the prompt strongly suggests a better partition, use these 3 default lanes:

  1. Code-path / implementation cause
  2. Config / environment / orchestration cause
  3. Measurement / artifact / assumption mismatch cause — covers verification-method defects, not just system defects. Examples: the verification query reuses a single dimensional key across distinct entities, tenants, streams, or groups; the comparison filter shape does not match the schema grain; or the catalog or column name was assumed portable acros
常见问题

追踪时它会修改代码吗?

不会。目标是在进行任何修复之前先解释原因。

它会汇报什么?

观察到的现象、相互竞争的解释、每种解释的支持和反对证据,以及当前最佳的解释。

什么时候它不太适合?

当问题已经很清楚、只需修复时,直接调试或执行类技能是更好的选择。

详情

作者的原始描述

Evidence-driven tracing lane that orchestrates competing tracer hypotheses in Claude built-in team mode

repo: Yeachan-Heo/oh-my-claudecode

热度

GitHub 星标
41k
排名
#7029
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能