Langsung ke konten
Skillpedia
Keamanan8.0k · #12691

reproduce-bug

Fungsinya

Mencoba mereproduksi bug yang sudah dikenal di proyek lokal memakai kode asli dan input yang direncanakan, lalu menyimpan output mentahnya. Skill ini untuk developer dan peninjau yang mengonfirmasi bug yang dilaporkan sebelum memperbaikinya.

Kapan dipakai

  • ✓Saat developer perlu mereproduksi bug bernama di proyek lokal.
  • ✓Saat peninjau ingin melihat apakah bug kompilator atau runtime yang dilaporkan benar-benar terjadi.
  • ✓Saat tim membutuhkan bukti reproduksi sebelum menulis perbaikan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Reproduksi crash yang dilaporkan ini di proyek lokal saya dengan kode asli dan simpan outputnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membangun kode saat ini dengan perintah proyek itu sendiri dan menjalankan input yang direncanakan, termasuk kasus kontrol. Skill ini menyimpan stdout, stderr, status keluar, dan waktu, lalu melaporkan apakah bug direproduksi, tidak direproduksi, atau terblokir.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum

Bagaimana jika bug tidak terjadi?

Skill ini melaporkan tidak direproduksi ketika ada bukti yang andal bahwa perilaku itu tidak ada.

Bagaimana jika build gagal?

Skill ini melaporkan terblokir, karena penyiapan yang tidak andal tidak bisa menunjukkan bahwa bug memang tidak ada.

Apakah skill ini memperbaiki bug?

Tidak. Skill ini hanya mereproduksi bug. Patching adalah langkah terpisah.

Detail

Deskripsi asli dari pembuat

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

repo: trailofbits/skills

Popularitas

Bintang GitHub
8.0k
Peringkat
#12691
Lisensi
CC-BY-SA-4.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa