Use when a named runtime or compiler bug in a local repository needs independent reproduction.
Capabilities
When NOT to Use
Do not use for bug discovery, patching, or a claim that cannot be exercised locally
Procedure
Exit nonzero for the bug, zero otherwise; a setup crash is inconclusive
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.0
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
-
Select
failure_typefrom 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,
reportnot_reproduced; if setup or observations are unreliable, reportblocked. -
Runtime: exercise the built
target_artifactwith a PoC that recordsPATCH_LOADED
as defined in the contract, then printsPATCH_REACHEDimmediately before the assertion.
Exit nonzero for the bug, zero otherwise; a setup crash is inconclusive.
Compile: record the targetexpected_diagnosticfrom the failed compiler invocation;
use emptypoc_argvand nulltarget_artifact. -
Save any unchanged PoC source under
reproduce/poc/and raw receipts
underreproduce/receipts/. Writereproduce.jsonwith the baseline commit,
command argument arrays, artifact path, observed result, outcome, and your agent
identity. Setfinding.statustoreproducedornot_reproducedfrom the result.
If reproduction isblocked, leavefinding.statusashypothesis.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"
}
- 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. Stateblockedwith 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. |
Explore more skills
Browse all- Variant AnalysisHunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use…
- Modern CppGuides C++ code toward modern idioms (C++20/23/26). Use when writing new C++ code, modernizing legacy patterns, or…
- Spec to Code ComplianceCheck code against the documentation that specifies it - which requirements hold, which the code contradicts, which are…
- Firebase Apk ScannerScans Android APKs for Firebase security misconfigurations including open databases, storage buckets, authentication…
- codeqlScans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis.…
- Dimensional AnalysisAudits code for unit and decimal-scaling bugs and annotates it with dimensional comments recording the units of each…
Security
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Reviews (0)
More from Trail of Bits
View source →Frequently asked questions about reproduce-bug
What does the reproduce-bug skill do?
Use when a named runtime or compiler bug in a local repository needs independent reproduction. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the reproduce-bug skill?
Run `npx @skills-hub-ai/cli install trail-of-bits-reproduce-bug` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/trail-of-bits-reproduce-bug/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does reproduce-bug work with?
reproduce-bug runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the reproduce-bug skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use reproduce-bug after installing it?
In Claude Code, type `/trail-of-bits-reproduce-bug` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the reproduce-bug skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/trail-of-bits-reproduce-bug)<a href="https://skills-hub.ai/skills/trail-of-bits-reproduce-bug"><img src="https://skills-hub.ai/api/badges/skill/trail-of-bits-reproduce-bug" alt="Install on Skills Hub"></a>More options in the badge docs.