bug-trace
What it does
This skill traces a reported bug to its root cause. It reads the report, follows the failing code path, finds the change that broke it and rules out other explanations. It is for developers investigating a bug whose cause is not yet known.
When to use it
- ✓When a bug report arrives and you do not yet know what is causing it.
- ✓When a bug has several symptoms and you need to treat each one separately.
- ✓When you want to rule out rival explanations before deciding on a fix.
Skill link
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/bug-trace/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you find out why checkout fails for some users, starting from this bug report?”
5 new skills a week. 1 minute to read.
How it works
The agent writes down each step of the failing path with its precondition, checks each one against the current code, looks for recent changes that touch the path, and tests competing explanations.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Bug trace
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.
1. Take in the report
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.
2. Split symptoms
A report often lists several. Treat each one on its own, with a short label.
3. Trace each symptom
Follow references/bug-investigation.md:
- Write the path as hops, each with file:line and its runtime precondition.
- Check every precondition against today's code.
- List what changed on the path: system-history
analyze.ts --focuswith every file on the path, then read each regression candidate withpr.ts. - Hold at least two explanations, and run the check that separates them.
- Reproduce in the branch browser when the path runs there.
- Check
AGENTS.md, skills, andpackages/corefor 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.
Output
For each symptom:
- the hop list, and the broken hop;
- the trigger commit, or
none-foundand what you checked; - the explanations you ruled out, and how;
- the evidence level:
reproduced,traced(a broken hop shown in code), orinferred; - the framework rule involved;
- the sibling sites.
FAQ
Does it change the product code?
No. The skill traces the cause only and does not edit the code while tracing.
Where can the report come from?
It can come from an issue, a ticket, a file or pasted text.
What if the cause is still unclear?
The skill asks you to hold at least two explanations and run a check that separates them.
Details
Original description by the author
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.
repo: BuilderIO/agent-native
Popularity
- GitHub stars
- 7.6k
- Ranking position
- #13141
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
design-exploration
7.6kHelps your agent explore several UI design directions side by side, let you pick one, and then refine the chosen design.
visual-edit
7.6kHelps your agent open a running local app in a visual editor so you can review and edit its real screens together.
turn-into-app
7.6kTurns a workflow, spreadsheet or project into a polished visual app, with populated screens and an agent working behind the controls.
visual-plan
7.6kTurns a plain text plan into an interactive visual plan with diagrams, file maps, code snippets and open questions.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.