ix-debug
Root cause analysis — trace execution path to a failure, narrow candidates, read minimal source only at suspected failure points.
来源信息
- 仓库
- ix-infrastructure/ix-gemini-plugin
- 最近来源活动
- 2026年5月17日 23:17
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- ix-debug
- description
- Root cause analysis — trace execution path to a failure, narrow candidates, read minimal source only at suspected failure points.
## Goal
Answer: where in the execution path is this likely failing, and why? Stop once you have 1-3 root cause candidates with supporting evidence.
If the Ix runtime is unavailable, `ix_status` will report this; fall back to grep + file reads.
## Preferred path — unified query
For most cases:
```
ix_query({ mode: "debug", targets: [$ARGUMENTS], query: $ARGUMENTS })
```
Use the returned `preview_markdown` as the primary analysis. Supplement below if candidates need confirmation.
## Phase 1 — Locate the entry point (always)
Call: `ix_locate({ symbol: $ARGUMENTS })`
If `$ARGUMENTS` is a symptom description, also call:
- `ix_text({ pattern: $ARGUMENTS, limit: 10 })`
## Phase 2 — Explain (always)
Call: `ix_explain({ symbol: <entry-point> })`
Classify: boundary (unexpected input), orchestrator (wrong sequencing), utility (wrong assumptions by caller).
Stop if: the explanation makes the failure source obvious.
## Phase 3 — Trace the execution path
Call: `ix_trace({ symbol: <entry-point> })`
Look for: state validation, cross-subsystem calls, high-callee-count functions.
Narrow to 1-3 most suspicious nodes.
## Phase 4 — Callers (if failure might come from upstream)
Call: `ix_callers({ symbol: <entry-point> })`
## Phase 5 — Targeted code read (at most 2 calls)
For each root cause candidate (max 2), read the source file at the relevant line range.
Hard limit: 2 source reads maximum.
## Output
```text
## Debug: [entry point]
**Execution path:**
[entry-point] -> [step] -> [step] -> [suspected failure point]
**Root cause candidates:**
1. [function/file] — [reason: what assumption might be wrong]
2. [function/file] — [reason]
**Evidence:**
- [what graph data supports each candidate]
- [what code read revealed, if any]
**Confidence:** [high / medium / low] — [why]
**Next steps:**
- Add logging at [specific point] to confirm
- Check [specific edge case] in [function]
```
在 GitHub 查看