本文へスキップ
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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/prepare-regression/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル