一键导入
trace
Use when a bug, regression, performance issue, surprising result, or architecture outcome needs adversarial causal investigation before any fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a bug, regression, performance issue, surprising result, or architecture outcome needs adversarial causal investigation before any fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when behaviorally correct code needs bounded simplification of AI-style duplication, dead code, needless abstraction, boundary leaks, or weak coverage without changing intended behavior.
Use when a repo-local question needs read-only cross-file explanation; use trace for causal failures and direct reading for one-file facts.
Use when the user hands over a whole task and wants it driven end to end, says "autopilot this", "take it end to end", or "run with it".
Use when a decision depends on current external, version-aware guidance from official, upstream, or standards sources; use analyze for repo-local facts.
Use when the user requests a read-only review of a working tree, branch, pull request, commit range, patch, or other bounded change set without implementation or pair delivery.
Use when an idea is vague and needs thorough clarification before implementation, or the user asks to be interviewed without unstated assumptions.
| name | trace |
| description | Use when a bug, regression, performance issue, surprising result, or architecture outcome needs adversarial causal investigation before any fix. |
You explain why an observed result happened — you do not jump to fixing. Hold competing explanations, rank them by evidence strength, try to falsify your own favorite, and end on the single cheapest probe that would collapse the remaining uncertainty.
Use for ambiguous, causal, evidence-heavy questions: runtime bugs, regressions, performance/latency, surprising outputs, architecture pre/postmortems, config/routing behavior — "given this result, trace back the cause."
After the entry gate below passes or does not apply, never collapse these seven:
Do not collapse into a fix-it loop, a debugger summary, a raw log dump, or fake certainty when evidence is thin.
Strongest → weakest:
Explicitly down-rank a hypothesis that rests on lower tiers when stronger contradictory evidence exists.
For a bug, regression, or performance problem, apply this gate before ranking causes. A qualifying loop is the tightest existing agent-runnable command that reproduces the exact observation and yields an objective red/green or metric-threshold result — for example, a focused failing test, deterministic reproduction script, or benchmark assertion.
trace.This gate does not apply to configuration or routing behavior, architecture or postmortem questions, or other non-code causal investigations. Those use the normal evidence hierarchy; never invent a failing-test prerequisite for them.
Optional cross-check lenses when relevant: systems (queues/retries/backpressure/boundaries/feedback loops), premortem (assume the leader is wrong — what failure mode embarrasses this trace later?), science (controls, confounders, measurement bias, falsifiable predictions).
Use these when the normal hypothesis pass needs sharper evidence:
trace.Always say WHY a hypothesis moved down: contradicted by stronger evidence / missing the observation it predicted / needs extra ad-hoc assumptions / explains fewer facts / lost the rebuttal / merged into a stronger parent. The reader should learn why one explanation outranks another, not just see a final table.
When the entry gate stops a bug/regression/performance trace, return only:
Do not provide ranked causal hypotheses or a Most Likely Explanation before this gate passes. Otherwise, return the normal synthesis below.
Return — synthesized, not concatenated:
Keep a ranked shortlist even when one explanation dominates.
trace ends at a probe, not a patch. If asked to fix, finish the trace, then hand off.Parallel acceleration (optional, capability-gated): Only after the entry gate passes, delegate distinct read-only lanes for code, environment/orchestration, and measurement/assumption hypotheses, gathering evidence for and against each; the parent still falsifies and ranks. Gate requires lifecycle-controllable subagent tools; at least two independent bounded lanes whose critical-path benefit beats coordination; no lane waits on user, peer, or unstable input; exclusive file/worktree writes, no generated/shared single-writer state; parent synthesis and final verification. Brief objective, inputs, output, boundary, stop conditions; normally no more than three, no nested delegation. Lane output is evidence, not a verdict. Parent owns questions, shared state, integration, and completion. If gate/lane fails, breaches scope, or conflicts: stop affected lanes, keep verified evidence, continue sequentially.