본문으로 건너뛰기
Skillpedia
보안8.0k · #12691

reproduce-bug

하는 일

원본 코드와 계획된 입력으로 로컬 프로젝트의 알려진 버그를 재현하려고 시도하고, 원시 출력을 저장합니다. 고치기 전에 보고된 버그를 확인하는 개발자와 검토자를 위한 것입니다.

사용하는 경우

  • ✓개발자가 로컬 프로젝트에서 지정된 버그를 재현해야 할 때.
  • ✓검토자가 보고된 컴파일러나 런타임 버그가 실제로 일어나는지 보고 싶을 때.
  • ✓팀이 수정을 쓰기 전에 재현 증거가 필요한 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/reproduce-bug/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  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.
자주 묻는 질문

버그가 일어나지 않으면 어떻게 하나요?

그 동작이 없다는 신뢰할 수 있는 증거가 있을 때 재현되지 않음으로 보고합니다.

빌드가 실패하면 어떻게 되나요?

막힘으로 보고합니다. 신뢰할 수 없는 설정으로는 버그가 없다는 것을 보여 줄 수 없기 때문입니다.

버그를 고치나요?

아니요. 재현만 합니다. 패치는 별도의 단계입니다.

상세 정보

작성자의 원본 설명

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬