review-swarm
Skill này làm gì
Tool này rà soát các thay đổi trong code để tìm vấn đề. Nó dùng nhiều 'agent' (trợ lý AI nhỏ) cùng xem code song song, mỗi agent tập trung vào một loại vấn đề (như bảo mật hoặc hiệu năng), để đảm bảo mọi thứ hoạt động tốt và không rủi ro.
Khi nào nên dùng
- ✓Khi bạn đã thay đổi code và muốn đảm bảo không có gì bị hỏng.
- ✓Trước khi gộp các thay đổi vào dự án chính để tránh sự cố.
- ✓Khi bạn nghi ngờ một thay đổi mới có thể gây rủi ro về bảo mật hoặc hiệu năng.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/review-swarm/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
“Rà soát các thay đổi mới nhất trong code của tôi về vấn đề bảo mật và hiệu năng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Tool chia công việc cho bốn AI hỗ trợ. Mỗi AI kiểm tra một khía cạnh cụ thể của code (như bảo mật, hiệu năng, v.v.). Sau đó, một agent chính tổng hợp mọi phát hiện, lọc bỏ những vấn đề ít quan trọng và trình bày bản tóm tắt các vấn đề đáng chú ý nhất.
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 Swarm
When to Use
Use this skill when you need parallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or reliability issues, and contract or test coverage gaps. Use when the user asks for a review swarm, parallel review, diff review,...
Review a diff with four read-only sub-agents in parallel, then have the main agent filter, order, and summarize only the issues that matter. This skill is review-only: sub-agents do not edit files, and the main agent does not apply fixes as part of this workflow.
Step 1: Determine Scope and Intent
Prefer this scope order:
- Files or paths explicitly named by the user
- Current git changes
- An explicit branch, commit, or PR diff requested by the user
- Most recently modified tracked files, only if the user asked for a review and there is no clearer diff
If there is no clear review scope, stop and say so briefly.
When using git changes, choose the smallest correct diff command:
- unstaged work:
git diff - staged work:
git diff --cached - mixed staged and unstaged work: review both
- explicit branch or commit comparison: use exactly what the user requested
Before launching reviewers, read the closest local instructions and any relevant project docs for the touched area, such as:
AGENTS.md- repo workflow docs
- architecture or contract docs for the touched module
Build a short intent packet for the reviewers:
- What behavior is meant to change
- What behavior should remain unchanged
- Any stated or inferred constraints, such as compatibility, rollout, security, or migration expectations
If the user did not state the intent clearly, infer it from the diff and say that the inference may be incomplete.
Step 2: Launch Four Read-Only Reviewers in Parallel
Launch four sub-agents when the scope is large enough for parallel review to help. For a tiny diff or one very small file, it is acceptable to review locally instead.
For every sub-agent:
- give the same scope and the same intent packet
- state that the sub-agent is read-only
- do not let the sub-agent edit files, run
apply_patch, stage changes, commit, or perform any other state-mutating action - ask for concise findings only
- ask for: file and line or symbol, issue, why it matters, recommended follow-up, and confidence
- tell the sub-agent to avoid nits, style preferences, and speculative concerns without concrete impact
- tell the sub-agent to send findings back to the main agent only
Use these four review roles.
Sub-Agent 1: Intent and Regression Review
Review whether the diff matches the intended behavior change without introducing extra behavior drift.
Check for:
- Unintended behavior changes outside the stated scope
- Broken edge cases or fallback paths
- Contract drift between callers and callees
- Missing updates to adjacent flows that should change together
This sub-agent is read-only. It must not edit files, apply patches, or make any other workspace changes.
Recommended sub-agent role: reviewer
Sub-Agent 2: Security and Privacy Review
Review the diff for security regressions, privacy risks, and trust-boundary mistakes.
Check for:
- Missing or weakened authn or authz checks
- Unsafe input handling, injection risks, or validation gaps
- Secret, token, or sensitive data exposure
- Risky defaults, permission expansion, or trust of unverified data
This sub-agent is read-only. It must not edit files, apply patches, or make any other workspace changes.
Recommended sub-agent role: reviewer
Sub-Agent 3: Performance and Reliability Review
Review the diff for new cost, fragility, or operational risk.
Check for:
- Duplicate work, redundant I/O, or unnecessary recomputation
- Added work on startup, render, request, or other hot paths
- Leaks, missing cleanup, retry storms, or subscription drift
- Ordering, race, or failure-handling problems that make the change brittle
This sub-agent is read-only. It must not edit files, apply patches, or make any other workspace changes.
Recommended sub-agent role: reviewer
Sub-Agent 4: Contracts and Coverage Review
Review the diff for compatibility gaps and missing safety nets.
Check for:
- API, schema, type, config, or feature-flag mismatches
- Migration or backward-compatibility fallout
- Missing or weak tests for the changed behavior
…
Câu hỏi thường gặp
“git diff” là gì?
Đó là lệnh hiển thị sự khác biệt giữa hai phiên bản code. Nó giống như xem những gì bạn đã thay đổi.
Các agent AI có thể thay đổi code của tôi không?
Không, chúng chỉ đọc và phân tích. Chúng không thực hiện bất kỳ thay đổi nào đối với code của bạn.
Điều gì xảy ra nếu không có vấn đề nào?
Nếu không tìm thấy vấn đề đáng kể nào, tool sẽ thông báo rằng không có vấn đề quan trọng cần báo cáo.
Chi tiết
Mô tả gốc của tác giả
Parallel read-only multi-agent review of a current git diff or explicit file scope to find behavioral regressions, security or privacy risks, performance or reliability issues, and contract or test coverage gaps.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5635
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.