reproduce-bug
하는 일
원본 코드와 계획된 입력으로 로컬 프로젝트의 알려진 버그를 재현하려고 시도하고, 원시 출력을 저장합니다. 고치기 전에 보고된 버그를 확인하는 개발자와 검토자를 위한 것입니다.
사용하는 경우
- ✓개발자가 로컬 프로젝트에서 지정된 버그를 재현해야 할 때.
- ✓검토자가 보고된 컴파일러나 런타임 버그가 실제로 일어나는지 보고 싶을 때.
- ✓팀이 수정을 쓰기 전에 재현 증거가 필요한 경우.
스킬 링크
https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“원본 코드로 제 로컬 프로젝트에서 보고된 이 충돌을 재현하고, 출력을 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 프로젝트 자체 명령으로 현재 코드를 빌드하고, 대조군을 포함한 계획된 입력을 실행합니다. stdout, stderr, 종료 상태, 실행 시간을 저장하고, 버그가 재현되었는지, 재현되지 않았는지, 막혔는지를 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
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_LOADEDas 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.
{
"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: runuv 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. |
자주 묻는 질문
버그가 일어나지 않으면 어떻게 하나요?
그 동작이 없다는 신뢰할 수 있는 증거가 있을 때 재현되지 않음으로 보고합니다.
빌드가 실패하면 어떻게 되나요?
막힘으로 보고합니다. 신뢰할 수 없는 설정으로는 버그가 없다는 것을 보여 줄 수 없기 때문입니다.
버그를 고치나요?
아니요. 재현만 합니다. 패치는 별도의 단계입니다.
상세 정보
작성자의 원본 설명
Use when a named runtime or compiler bug in a local repository needs independent reproduction.
repo: trailofbits/skills
인기도
- GitHub 스타
- 8.0k
- 순위
- #12691
- 라이선스
- CC-BY-SA-4.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
audit-context-building
8.0k에이전트가 보안 검토 전에 낯선 코드베이스를 익히고, 각 함수가 가정하고 보장하며 의존하는 것을 정리하도록 돕습니다.
algorand-vulnerability-scanner
8.0k에이전트가 TEAL이나 PyTeal 기반 Algorand 스마트 계약에서 키 재설정 공격, 수수료 미검증 등 보안 문제 11가지를 찾도록 돕습니다.
audit-prep-assistant
8.0k에이전트가 외부 보안 검토를 위해 코드베이스를 준비하도록 돕습니다. 정적 분석, 테스트 커버리지, 죽은 코드 정리, 명확한 문서화를 포함합니다.
cairo-vulnerability-scanner
8.0k에이전트가 StarkNet Cairo 스마트 계약에서 오버플로, 위험한 계층 간 메시지, 서명 재사용 등 6가지 문제를 검사하도록 돕습니다.