review-pr
Skill này làm gì
Skill cho phép agent AI đọc một pull request, kiểm tra mã về rủi ro bảo mật và khi chạy, rồi đưa ra khuyến nghị rõ ràng. Skill dành cho người bảo trì cần quyết định một thay đổi có an toàn để chạy hoặc gộp không.
Khi nào nên dùng
- ✓Khi bạn dán liên kết pull request trên GitHub và muốn biết có an toàn để chạy không.
- ✓Khi bạn cần quyết định nhanh gộp, đóng hoặc thay thế một đóng góp của người khác.
- ✓Khi bạn muốn một bản tóm tắt ngắn về pull request thay đổi gì và vì sao.
Liên kết skill
https://github.com/blackboardsh/electrobun/blob/main/.skills/review-pr/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đây là liên kết một pull request. Nó có an toàn để chạy không, và tôi có nên gộp nó không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc mô tả pull request, xem các thay đổi mã khi cần, rồi đánh giá rủi ro. Sau đó agent đưa ra khuyến nghị ngắn, còn mọi hành động review và gộp trên GitHub vẫn do bạn quyết định.
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.
Review PR
Overview
Use this skill when the user pastes a PR link and wants a security-first assessment before running, testing, or merging it. The goal is to understand the PR intent, inspect the diff, decide whether it is safe to run, and then help with feedback, fixes, merge readiness, or a close recommendation.
This skill is discussion-first, but it should still support fast maintainer throughput. Loading the skill does not authorize guessing which PR to inspect from local branches, refs, or open worktrees. Wait for the user to paste a PR URL, review that one PR, give a concise rundown, and discuss it with the user before taking any local git actions beyond basic repository state checks.
If the maintainer is clearly trying to fly through PRs, keep the discussion short and move quickly to a decisive recommendation:
MergeCloseSupersede with direct fix
Use Supersede with direct fix when the underlying issue is legitimate but the PR implementation is too broad, changes the wrong behavior, or is close but not quite right. In that case, offer to implement the narrower fix locally and draft the close comment for the maintainer.
Workflow
0. Wait for the PR URL
- Do not infer the target PR from local branches such as
pr-*, from recent git history, or from the current worktree. - Review one PR at a time, in the order the user pastes them.
- If no PR URL has been pasted in the current discussion, ask for it and stop there.
- After the user pastes a PR URL, read it first and respond with a rundown before fetching refs, checking out branches, or diffing local PR branches.
1. Read the PR first
- Read the PR description and discussion before touching the branch.
- Capture the claimed intent, test plan, linked issue, and any mention of permissions, downloads, shell execution, networking, updater behavior, or native code.
- If the description is missing or inaccessible, say so explicitly and continue with the code review.
- The first substantive reply after reading should be a rundown for discussion with the user:
- what the PR claims to do
- what parts of the codebase it likely touches
- which runtime host or VM should be used for build/run/test work
- obvious security or runtime-risk areas to focus on
- any missing context or questions
- Do not assume the user wants immediate local branch inspection. Discuss first, then inspect locally if it will materially help the review.
- If the user is clearly in rapid triage mode, keep this rundown to a few lines and then continue with local diff inspection.
1.5 Determine the review host before execution advice
- Use the PR title, description, discussion, and changed-file list to infer which OS should be used for runtime verification.
- State this explicitly before recommending any build, run, or test command.
- If the current machine does not match the target runtime, say so clearly:
- static review can continue on the current machine
- build/run/manual verification should move to the correct VM or host OS
- Use these common signals:
package/src/native/win/*,WebView2,DirectComposition,D3D11,D3D12,DXGI,HWND,.vcxproj, Windows packaging: review and test on Windowspackage/src/native/macos/*, Cocoa, AppKit, WKWebView, Metal, CAMetalLayer, notarization,.mmchanges: review and test on macOSpackage/src/native/linux/*, GTK, WebKitGTK, X11, Wayland, Flatpak,.desktop, distro packaging: review and test on Linux- shared JS/TS/build/config/template changes with no OS-specific runtime path: static review anywhere, but runtime verification may require multiple OSes
- CI, release, signing, packaging, updater, installer changes: often require an OS matrix, not a single VM
- If the PR description is vague, use the file change list and symbols/imports to infer the target environment anyway.
- If a PR is clearly platform-specific, tell the user to switch to that machine before any execution recommendation.
2. Avoid executing untrusted changes too early
- Do not run the PR branch, install dependencies, or execute tests until the diff passes a basic security screen.
- Treat package manager commands as code execution because lifecycle hooks and install scripts may run.
- If execution becomes necessary, state exactly what will run and why.
3. Build and test Electrobun the right way
- Never try to build individual parts of Electrobun directly.
- To build local Electrobun changes, run `bu
Câu hỏi thường gặp
Nó có gộp hoặc đóng pull request giúp tôi không?
Không. Nó chỉ đưa ra khuyến nghị, còn mọi hành động review và gộp vẫn thuộc về bạn.
Nó có review nhiều pull request cùng lúc không?
Không. Nó xử lý từng pull request một, theo thứ tự bạn dán.
Tùy chọn Supersede là gì?
Nó nghĩa là ý tưởng tốt nhưng pull request quá rộng hoặc sai, nên agent đề nghị viết một bản sửa hẹp hơn và soạn bình luận đóng.
Chi tiết
Mô tả gốc của tác giả
Review a GitHub pull request from its link, read the PR description, inspect the code locally only when useful, and judge whether the change is safe to run from a security and runtime-safety perspective. Use only after the user pastes a PR URL. Handle one PR at a time, make a clear merge/close/supersede recommendation, and keep all GitHub review and merge actions with the user.
repo: blackboardsh/electrobun
Độ phổ biến
- Sao GitHub
- 13k
- Vị trí xếp hạng
- #11379
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.