prepare-regression
하는 일
이 스킬은 에이전트가 풀 리퀘스트나 커밋 범위의 이전 버전과 새 버전을 고정하고, 제목, 메시지, 검토 댓글도 함께 보관하도록 합니다. 회귀 조사를 시작하는 사람을 위한 것입니다.
사용하는 경우
- ✓풀 리퀘스트를 조사하려고 하며 변경 전후의 고정된 사본이 먼저 필요할 때.
- ✓커밋 범위의 시작점이 불분명해서 고정해야 할 때.
- ✓변경의 논의와 보안 메모를 날짜와 링크와 함께 저장하고 싶은 경우.
스킬 링크
https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/prepare-regression/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 풀 리퀘스트의 변경 전후 코드를 댓글과 함께 고정된 사본으로 받아서 조사하고 싶어요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경의 정확한 시작점과 끝점을 알아내고, 각각의 소스 코드를 복사하며, 시간 기록과 함께 논의를 저장합니다. 나중 단계가 같은 자료를 쓰도록 이 기록들을 봉인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Prepare a change
When to Use
Input: PR URL or repository plus commit/range, and registry assignment. Follow project guidance after resolving the target commit.
When NOT to Use
The same inputs have a verified preparation record; reuse it.
Prepare
- Read the standard and file contract. Pin the complete change as S0/S1: commit parent or explicit range baseline; merge base to frozen head for unmerged PRs; merge first parent to merge commit, squash parent to squash, or the complete rebased series for merged PRs. Ambiguous ranges and missing root baselines block preparation.
- Freeze commit titles/messages or PR title, body, discussion, reviews and inline comments with URLs and collection time. Paginate APIs; record limits and lifecycle. Locate security/threat-model documents in both states; record paths or search limitations.
- Run snapshot.py via
uv run --no-projectwith repository, S0, S1 and a new directory, or equivalent Git commands for special source needs. Preserve dependency/submodule/LFS revisions. Exclude later history; keep exports pristine and build in separate copies. - Write and seal
prepare.jsonwith boundary explanations, frozen context and source artifacts. If blocked, preserve collected evidence and name the prerequisite.
Report Back
Keep detailed evidence in the sealed package. Return only:
- Status:
completeorblocked, matching the record. - Record: sealed
prepare.jsonpath, or why none was produced. - Result: selected S0/S1 and material collection limitations.
- Blocker: missing prerequisite or required caller action, if blocked.
Rationalizations to Reject
- “The PR is merged”: that does not identify the complete change boundary.
자주 묻는 질문
왜 에이전트에게 고정된 스냅숏이 필요한가요?
브랜치가 검토 도중 바뀌어도 이후 검사가 매번 같은 코드를 비교하도록 하기 위해서입니다.
코드 호스트에 실시간 연결이 필요한가요?
코드와 댓글을 모으려면 저장소나 풀 리퀘스트에 접근할 수 있어야 합니다. 부딪힌 제약의 기록도 결과와 함께 저장됩니다.
커밋 범위가 애매하면 어떻게 하나요?
스킬이 멈추고 아무것도 준비하지 않으므로, 먼저 범위를 고칠 수 있습니다.
상세 정보
작성자의 원본 설명
Use when pinning before/after sources and collecting PR or commit context for a regression investigation.
repo: trailofbits/skills
인기도
- GitHub 스타
- 8.0k
- 순위
- #12697
- 라이선스
- 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가지 문제를 검사하도록 돕습니다.