Pular para o conteúdo
Skillpedia
Código em geral7,6 mil · #13141

bug-trace

O que ela faz

Esta skill rastreia um bug relatado até a sua causa raiz. Ele lê o relato, segue o caminho de código que falha, encontra a alteração que o quebrou e descarta outras explicações. É para desenvolvedores que investigam um bug cuja causa ainda não é conhecida.

Quando usar

  • ✓Quando chega um relato de bug e você ainda não sabe o que o causa.
  • ✓Quando um bug tem vários sintomas e você precisa tratar cada um separadamente.
  • ✓Quando você quer descartar explicações concorrentes antes de decidir uma correção.

Link da skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/bug-trace/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/bug-trace/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Pode descobrir por que o checkout falha para alguns usuários, começando por este relato de bug?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente anota cada passo do caminho que falha, com sua pré-condição, verifica cada um no código atual, procura alterações recentes que tocam esse caminho e testa as explicações concorrentes.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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:

  1. Write the path as hops, each with file:line and its runtime precondition.
  2. Check every precondition against today's code.
  3. List what changed on the path: system-history analyze.ts --focus with every file on the path, then read each regression candidate with pr.ts.
  4. Hold at least two explanations, and run the check that separates them.
  5. Reproduce in the branch browser when the path runs there.
  6. Check 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.

Output

For each symptom:

  • the hop list, and the broken hop;
  • the trigger commit, or none-found and what you checked;
  • the explanations you ruled out, and how;
  • the evidence level: reproduced, traced (a broken hop shown in code), or inferred;
  • the framework rule involved;
  • the sibling sites.
Perguntas frequentes

Ele altera o código do produto?

Não. A skill rastreia apenas a causa e não edita o código durante o rastreamento.

De onde o relato pode vir?

Pode vir de uma issue, de um chamado, de um arquivo ou de um texto colado.

E se a causa ainda não estiver clara?

A skill pede que você mantenha pelo menos duas explicações e execute uma verificação que as diferencie.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
7,6 mil
Posição no ranking
#13141
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas