Find the root cause of a reported bug: take in the report (GitHub issue, Jira ticket, file, or pasted text), trace the failing path hop by hop with each hop's runtime precondition, find the recent change that broke it, and rule out rival explanations. Use for any bug investigation where the cause is not yet known.
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
This skill finds a root cause. It doesn't judge whether the cause is
systemic; investigate-bug adds that judgment on top. Never change
product code while tracing.
pnpm exec tsx .agents/skills/bug-trace/scripts/bug-intake.ts \
--issue <N|url> | --jira <KEY|url> | --file <path> | --text "<report>" \
[--title "<line>"] [--run <id>]It writes bug.json to the run directory and prints the run id
(bug-gh-123, bug-eng-456, or bug-<date>-<hash>). Re-running with the
same report reuses the run. Jira intake uses jira-refactor-findings'
client and credentials.
A report often lists several. Treat each one on its own, with a short label.
Follow references/bug-investigation.md:
analyze.ts --focus
with every file on the path, then read each regression candidate with
pr.ts.AGENTS.md, skills, and packages/core for a rule or primitive
the code bypasses.When fanning out to sub-agents, give each one the symptom, its entry point, and the whole brief. Don't give it a theory or a short list of files: that list becomes the boundary of its search.
For each symptom:
none-found and what you checked;reproduced, traced (a broken hop shown in code),
or inferred;BuilderIO/agent-native
a0356c6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.