Chuyển đến nội dung
Skillpedia
Agent48k · #5635

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.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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/review-swarm/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

“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:

  1. Files or paths explicitly named by the user
  2. Current git changes
  3. An explicit branch, commit, or PR diff requested by the user
  4. 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:

  1. What behavior is meant to change
  2. What behavior should remain unchanged
  3. 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:

  1. Unintended behavior changes outside the stated scope
  2. Broken edge cases or fallback paths
  3. Contract drift between callers and callees
  4. 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:

  1. Missing or weakened authn or authz checks
  2. Unsafe input handling, injection risks, or validation gaps
  3. Secret, token, or sensitive data exposure
  4. 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:

  1. Duplicate work, redundant I/O, or unnecessary recomputation
  2. Added work on startup, render, request, or other hot paths
  3. Leaks, missing cleanup, retry storms, or subscription drift
  4. 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:

  1. API, schema, type, config, or feature-flag mismatches
  2. Migration or backward-compatibility fallout
  3. 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.

repo: sickn33/agentic-awesome-skills

Độ 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

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ự