Chuyển đến nội dung
Skillpedia
Bảo mật8.0k · #12697

prepare-regression

Skill này làm gì

Skill này để agent đóng băng phiên bản cũ và mới của một pull request hoặc dải commit, cùng tiêu đề, thông điệp và bình luận review. Dành cho người mới bắt đầu điều tra hồi quy.

Khi nào nên dùng

  • ✓Khi bạn sắp điều tra một pull request và muốn có bản trước và sau cố định trước đã.
  • ✓Khi bạn có một dải commit với điểm bắt đầu chưa rõ và cần ghim nó lại.
  • ✓Khi bạn muốn lưu phần thảo luận và ghi chú bảo mật của một thay đổi kèm ngày giờ và liên kết.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/prepare-regression/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần một bản sao cố định của code pull request này trước và sau thay đổi, cùng bình luận, để điều tra.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xác định điểm bắt đầu và kết thúc chính xác của thay đổi, sao chép mã nguồn cho từng phía, và lưu phần thảo luận kèm dấu thời gian. Nó niêm phong các bản ghi này để các bước sau dùng cùng một tư liệu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Vì sao agent cần một ảnh chụp cố định?

Để các kiểm tra sau so sánh cùng một code mỗi lần, ngay cả khi nhánh thay đổi sau khi review bắt đầu.

Nó có cần kết nối trực tiếp đến nền tảng code không?

Nó cần quyền truy cập repository hoặc pull request để thu thập code và bình luận. Các bản ghi về giới hạn gặp phải được lưu cùng kết quả.

Điều gì xảy ra nếu dải commit không rõ ràng?

Skill dừng lại và không chuẩn bị gì, để bạn sửa dải commit trước.

Chi tiết

Mô tả gốc của tác giả

Use when pinning before/after sources and collecting PR or commit context for a regression investigation.

repo: trailofbits/skills

Độ phổ biến

Sao GitHub
8.0k
Vị trí xếp hạng
#12697
Giấy phép
CC-BY-SA-4.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự