Aller au contenu
Skillpedia
Sécurité8.0k · #12691

reproduce-bug

Ce qu’il fait

Tente de reproduire un bug connu dans un projet local, à partir du code d'origine et des entrées prévues, puis conserve les sorties brutes. Il s'adresse aux développeurs et relecteurs qui confirment un bug signalé avant de le corriger.

Quand l’utiliser

  • ✓Quand un développeur doit reproduire un bug précis dans un projet local.
  • ✓Quand un relecteur veut voir si un bug signalé de compilateur ou d'exécution se produit réellement.
  • ✓Quand une équipe a besoin de preuves de reproduction avant de rédiger une correction.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Reproduis ce plantage signalé dans mon projet local, sur le code d'origine, et enregistre la sortie.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill compile le code actuel avec la commande du projet et lance les entrées prévues, y compris les cas témoins. Il enregistre la sortie standard, les erreurs, le code de sortie et la durée, puis indique si le bug a été reproduit, non reproduit ou bloqué.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes

Que se passe-t-il si le bug ne se produit pas ?

Le skill indique « non reproduit » lorsqu'il dispose de preuves fiables que le comportement est absent.

Que se passe-t-il si la compilation échoue ?

Le skill indique « bloqué », car une configuration peu fiable ne peut pas prouver l'absence d'un bug.

Corrige-t-il le bug ?

Non. Il se contente de reproduire le bug. La correction est une étape séparée.

Détails

Description originale de l’auteur

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

repo: trailofbits/skills

Popularité

Étoiles GitHub
8.0k
Position au classement
#12691
Licence
CC-BY-SA-4.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires