Pular para o conteúdo
Skillpedia
Segurança8,0 mil · #12691

reproduce-bug

O que ela faz

Tenta reproduzir um bug conhecido em um projeto local usando o código original e as entradas planejadas, e depois salva a saída bruta. É para desenvolvedores e revisores que confirmam um bug relatado antes de corrigi-lo.

Quando usar

  • ✓Quando um desenvolvedor precisa reproduzir um bug nomeado em um projeto local.
  • ✓Quando um revisor quer ver se um bug relatado de compilador ou de runtime realmente acontece.
  • ✓Quando uma equipe precisa de evidências de reprodução antes de escrever uma correção.

Link da skill

https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/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/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/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

“Reproduza esta falha relatada no meu projeto local, no código original, e salve a saída.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill compila o código atual com o próprio comando do projeto e roda as entradas planejadas, incluindo casos de controle. Salva stdout, stderr, status de saída e tempo, e informa se o bug foi reproduzido, não reproduzido ou bloqueado.

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

Texto original do autor, em inglês, direto do GitHub.

Reproduce Bug

When to Use

Use for the reproduction step of patching-bugs with one finding.json and a local baseline checkout. Read the record contract. Before target commands, follow its project guidance.

When NOT to Use

Do not use for bug discovery, patching, or a claim that cannot be exercised locally. Report a blocker when the build or environment cannot exercise the claim.

Procedure

  1. Select failure_type from the record contract. Build the current baseline with the project's own command. Exercise the planned scoped inputs before any edit and retain their observations, including valid controls. Save raw stdout, stderr, exit status, and timing. If the behavior is absent with trustworthy evidence, report not_reproduced; if setup or observations are unreliable, report blocked.

  2. Runtime: exercise the built target_artifact with a PoC that records PATCH_LOADED as defined in the contract, then prints PATCH_REACHED immediately before the assertion. Exit nonzero for the bug, zero otherwise; a setup crash is inconclusive. Compile: record the target expected_diagnostic from the failed compiler invocation; use empty poc_argv and null target_artifact.

  3. Save any unchanged PoC source under reproduce/poc/ and raw receipts under reproduce/receipts/. Write reproduce.json with the baseline commit, command argument arrays, artifact path, observed result, outcome, and your agent identity. Set finding.status to reproduced or not_reproduced from the result. If reproduction is blocked, leave finding.status as hypothesis.

    Reproduce record schema:

{
  "schema_version": 1,
  "failure_type": "runtime",
  "outcome": "reproduced",
  "baseline_commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "build_argv": ["python", "build.py"],
  "poc_argv": ["python", "poc.py"],
  "target_artifact": "dist/app.py",
  "observed": "The PoC wrote outside uploads after PATCH_REACHED.",
  "blocker": null,
  "agent": "reproducer-1"
}
  1. Manifest the complete reproduce/ directory, including the PoC and record, using the record helper: run uv run --no-project <script> manifest <reproduce-step-dir>. Then check the record before handoff. State blocked with the actual failure when build or setup prevents a valid run.

Rationalizations to Reject

Shortcut Required action
A unit test imitates the bug. Exercise the target compiler or built runtime artifact.
A nonzero exit proves reproduction. Require the target diagnostic, or runtime marker and assertion.
Perguntas frequentes

E se o bug não acontecer?

A skill informa não reproduzido quando tem evidências confiáveis de que o comportamento está ausente.

E se o build falhar?

A skill informa bloqueado, já que uma configuração não confiável não consegue mostrar que um bug está ausente.

Ela corrige o bug?

Não. Só reproduz o bug. A correção é uma etapa separada.

Detalhes

Descrição original do autor

Use when a named runtime or compiler bug in a local repository needs independent reproduction.

repo: trailofbits/skills

Popularidade

Estrelas no GitHub
8,0 mil
Posição no ranking
#12691
Licença
CC-BY-SA-4.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas