trace — Investigation and Root Cause Analysis
SkillDatabases & dataShow the provenance trace — every reported number linked to the SQL that produced it, with a confidence badge. Use after an analysis when someone asks "where did that number come from?"
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the trace — Investigation and Root Cause Analysis skill
What this skill tells your AI
The instructions your AI receives, as published by ai-analyst-lab/ai-analyst in .claude/skills/trace/SKILL.md and read by ahel’s review.
Runtime syntax: invoke the plugin copy through the active runtime's owner-qualified skill selector; use a bare selector only when intentionally selecting a user-tier copy (a separately installed personal copy; Genie no longer seeds this tier). Cross-skill prose below uses bare names as portable semantic routes; the orchestrator resolves the selector for the active runtime.
Investigate unknown failures: dispatch a trace subagent to reproduce, trace, and isolate root cause, then hand the report to fix. The deliverable is findings only — report and stop; never apply fixes, however obvious.
When to Use
- A failure exists but the cause is unknown
- Stack traces or error messages don't point to an obvious defect
- Multiple files or systems may be involved
reviewhit a failure with unclear root cause and needs a diagnosis beforefix
Flow
- Collect symptoms: error messages, stack traces, logs, and expected vs actual behavior from the wish or reporter.
- Dispatch tracer: native delegation surface → trace subagent, briefed with the symptoms, relevant context (files, recent changes, environment), and read-only stop conditions (see Dispatch).
- Investigate: the tracer reproduces, hypothesizes, traces, and isolates root cause autonomously.
- Receive report: the tracer's final message is the diagnosis (format below); the native team notifies you on completion — no polling.
- Hand off: pass the report to
fix, or escalate to the orchestrator.
Report Format
Root cause: <what's actually broken — file, line, condition>
Evidence: <reproduction steps, traces, proof>
Causal chain: <root cause → intermediate effects → observed symptom>
Recommended correction: <what to change, where, why>
Affected scope: <other files or features impacted>
Confidence: <high / medium / low>
Include file paths and line numbers in every root-cause claim so fix can act without re-investigating. If root cause spans multiple systems, report each separately with its own confidence level.
Dispatch
Trace runs through a fresh read-only scout role on the active runtime. It may search files and run non-mutating diagnostic commands, but it must not edit, stage, commit, or publish. Use native follow-up messaging to keep the same investigation context.
Rules
- Report findings and stop — investigation only.
fixapplies the correction; never combine the two. - Reproduce before theorizing — if the failure can't be reproduced, the report must say so.
- Evidence required: every root-cause claim carries file paths, line numbers, and a causal chain grounded in tool output from this session — never inferred from memory.
- Verify symbols before citing them. Confirm every function named in "Recommended correction" via
grep -n "export.*<name>"against the actual file — a hallucinated name sendsfixinto a failing type-check and wastes a fix loop.
Session close (required)
When spawned as a native subagent, your final message IS the completion signal — the orchestrator is notified when you finish; do not poll or emit a separate contract call. End with exactly one terminal outcome as the last word:
- done — diagnosis delivered in the Report Format with root cause, evidence, and confidence.
- blocked — cannot proceed (unreproducible without missing access, environment unavailable). State exactly what you need.
- failed — aborted or irrecoverable. State why.
blocked / failed must include a one-line reason.
Signals
- GitHub stars
- 297
- Forks
- 137
- Last commit
- Sep 2026
Others that do the same job
Advanced
- Catalog kind
- skill
- Gateway key
trace- Source
- github.com/ai-analyst-lab/ai-analyst