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

prepare-regression

하는 일

이 스킬은 에이전트가 풀 리퀘스트나 커밋 범위의 이전 버전과 새 버전을 고정하고, 제목, 메시지, 검토 댓글도 함께 보관하도록 합니다. 회귀 조사를 시작하는 사람을 위한 것입니다.

사용하는 경우

  • ✓풀 리퀘스트를 조사하려고 하며 변경 전후의 고정된 사본이 먼저 필요할 때.
  • ✓커밋 범위의 시작점이 불분명해서 고정해야 할 때.
  • ✓변경의 논의와 보안 메모를 날짜와 링크와 함께 저장하고 싶은 경우.

스킬 링크

https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/prepare-regression/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/prepare-regression/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분.

작동 방식

에이전트는 변경의 정확한 시작점과 끝점을 알아내고, 각각의 소스 코드를 복사하며, 시간 기록과 함께 논의를 저장합니다. 나중 단계가 같은 자료를 쓰도록 이 기록들을 봉인합니다.

기술 내용 (원본 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

  1. 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.
  2. 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.
  3. Run snapshot.py via uv run --no-project with 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.
  4. Write and seal prepare.json with 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: complete or blocked, matching the record.
  • Record: sealed prepare.json path, 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬