Saltar al contenido
Skillpedia
Seguridad8,0 mil · #12691

reproduce-bug

Qué hace

Intenta reproducir un error conocido en un proyecto local usando el código original y las entradas planeadas, y luego guarda la salida sin procesar. Es para desarrolladores y revisores que confirman un error reportado antes de corregirlo.

Cuándo usarla

  • ✓Cuando un desarrollador necesita reproducir un error con nombre en un proyecto local.
  • ✓Cuando un revisor quiere ver si un error reportado del compilador o del runtime realmente ocurre.
  • ✓Cuando un equipo necesita evidencia de reproducción antes de escribir una corrección.

Link de la skill

https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Reproduce este fallo reportado en mi proyecto local con el código original y guarda la salida.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill compila el código actual con el comando del propio proyecto y ejecuta las entradas planeadas, incluidos los casos de control. Guarda stdout, stderr, el estado de salida y el tiempo, y luego informa si el error se reprodujo, no se reprodujo o quedó bloqueado.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes

¿Qué pasa si el error no ocurre?

La skill informa que no se reprodujo cuando tiene evidencia confiable de que el comportamiento no existe.

¿Qué pasa si la compilación falla?

La skill informa que quedó bloqueado, porque una configuración poco fiable no puede demostrar que un error no existe.

¿Corrige el error?

No. Solo reproduce el error. El parche es un paso aparte.

Detalles

Descripción original del autor

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

repo: trailofbits/skills

Popularidad

Estrellas en GitHub
8,0 mil
Posición en el ranking
#12691
Licencia
CC-BY-SA-4.0
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas