Software DevelopmentOfficial · trailofbits

Reproduce Bug skill for Claude

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

Reproduce Bug SKILL.md

The full skill file from trailofbits/skills (CC-BY-SA-4.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

  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

ShortcutRequired 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.

How to install Reproduce Bug

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit trailofbits/skills/plugins/patching-bugs/skills/reproduce-bug#main ~/.claude/skills/reproduce-bug

Codex

npx degit trailofbits/skills/plugins/patching-bugs/skills/reproduce-bug#main ~/.codex/skills/reproduce-bug

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Reproduce Bug skill do?

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

+How do I install Reproduce Bug in Claude Code?

Copy the skill folder into ~/.claude/skills/reproduce-bug, for example with "npx degit trailofbits/skills/plugins/patching-bugs/skills/reproduce-bug#main ~/.claude/skills/reproduce-bug". Claude Code loads it automatically and uses it when a task matches.

+Does Reproduce Bug work with ChatGPT or Codex?

Yes. Reproduce Bug uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/reproduce-bug. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Reproduce Bug free?

Reproduce Bug is published on GitHub by trailofbits under the CC-BY-SA-4.0 license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Rust Review

    Official

    Performs comprehensive Rust security review for safe/unsafe boundary issues, memory safety in unsafe blocks, concurrency hazards,…

    trailofbits/skills★ 8.3k
  5. Second Opinion

    Official

    Gets independent code reviews from Codex or Antigravity for uncommitted changes, branch diffs, and commits.

    trailofbits/skills★ 8.3k
  6. Slicing Code Context

    Official

    Selects bounded, graph-informed source slices with Trailmark and delegates focused code analysis or patch-proposal work to a smaller…

    trailofbits/skills★ 8.3k
  7. Spec To Code Compliance

    Official

    Check code against the documentation that specifies it - which requirements hold, which the code contradicts, which are absent, and what…

    trailofbits/skills★ 8.3k
  8. Taint Trace

    Official

    Improves taint-analysis coverage and precision by using Trailmark graphs to repair native source, sink, sanitizer, propagation, and type…

    trailofbits/skills★ 8.3k
  9. Trailmark Structural

    Official

    Runs full Trailmark structural analysis by building a graph, running `preanalysis()`, and reporting hotspots, taint, blast radius,…

    trailofbits/skills★ 8.3k

See all software development skills →

More skills from trailofbits

  1. Reproduce Regression

    Official

    Use when deploying before/after systems and building a live-system PoC for a regression candidate.

    trailofbits/skills★ 8.3k
  2. Review Walkthrough

    Official

    Generates an interactive HTML walkthrough for reviewing code changes. Use only when explicitly called.

    trailofbits/skills★ 8.3k

All skills by trailofbits →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.