Chuyển đến nội dung
Skillpedia
Lập trình chung102k · #829

github-code-review

Skill này làm gì

Skill này hướng dẫn AI review chi tiết các thay đổi code trên GitHub, gồm bảo mật, hiệu năng, kiến trúc và phong cách. Skill dành cho lập trình viên muốn một lần xem xét kỹ trước khi gộp.

Khi nào nên dùng

  • ✓Khi có người yêu cầu review một pull request trên GitHub trước khi gộp.
  • ✓Khi bạn muốn kiểm tra bảo mật và hiệu năng cho các thay đổi code.
  • ✓Khi bạn muốn một bản tóm tắt được đăng lên pull request trên GitHub.

Liên kết skill

https://github.com/ruvnet/RuView/blob/main/.claude/skills/github-code-review/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/ruvnet/RuView/blob/main/.claude/skills/github-code-review/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

“Review pull request 123 xem có vấn đề bảo mật và hiệu năng không, rồi để lại bản tóm tắt trên GitHub.”

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

Cách hoạt động

AI đọc các file và diff của pull request bằng công cụ dòng lệnh của GitHub. Nó đưa các thay đổi qua nhiều bước kiểm tra, rồi gộp các phát hiện thành một báo cáo.

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.

GitHub Code Review Skill

AI-Powered Code Review: Deploy specialized review agents to perform comprehensive, intelligent code reviews that go beyond traditional static analysis.

🎯 Quick Start

Simple Review

# Initialize review swarm for PR
gh pr view 123 --json files,diff | npx ruv-swarm github review-init --pr 123

# Post review status
gh pr comment 123 --body "🔍 Multi-agent code review initiated"

Complete Review Workflow

# Get PR context with gh CLI
PR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)
PR_DIFF=$(gh pr diff 123)

# Initialize comprehensive review
npx ruv-swarm github review-init \
  --pr 123 \
  --pr-data "$PR_DATA" \
  --diff "$PR_DIFF" \
  --agents "security,performance,style,architecture,accessibility" \
  --depth comprehensive

📚 Table of Contents

<details> <summary><strong>Core Features</strong></summary> </details> <details> <summary><strong>Review Agents</strong></summary> </details> <details> <summary><strong>Advanced Features</strong></summary> </details> <details> <summary><strong>Integration & Automation</strong></summary> </details>

🚀 Core Features

Multi-Agent Review System

Deploy specialized AI agents for comprehensive code review:

# Initialize review swarm with GitHub CLI integration
PR_DATA=$(gh pr view 123 --json files,additions,deletions,title,body)
PR_DIFF=$(gh pr diff 123)

# Start multi-agent review
npx ruv-swarm github review-init \
  --pr 123 \
  --pr-data "$PR_DATA" \
  --diff "$PR_DIFF" \
  --agents "security,performance,style,architecture,accessibility" \
  --depth comprehensive

# Post initial review status
gh pr comment 123 --body "🔍 Multi-agent code review initiated"

Benefits:

  • ✅ Parallel review by specialized agents
  • ✅ Comprehensive coverage across multiple domains
  • ✅ Faster review cycles with coordinated analysis
  • ✅ Consistent quality standards enforcement

🤖 Specialized Review Agents

Security Review Agent

Focus: Identify security vulnerabilities and suggest fixes

# Get changed files from PR
CHANGED_FILES=$(gh pr view 123 --json files --jq '.files[].path')

# Run security-focused review
SECURITY_RESULTS=$(npx ruv-swarm github review-security \
  --pr 123 \
  --files "$CHANGED_FILES" \
  --check "owasp,cve,secrets,permissions" \
  --suggest-fixes)

# Post findings based on severity
if echo "$SECURITY_RESULTS" | grep -q "critical"; then
  # Request changes for critical issues
  gh pr review 123 --request-changes --body "$SECURITY_RESULTS"
  gh pr edit 123 --add-label "security-review-required"
else
  # Post as comment for non-critical issues
  gh pr comment 123 --body "$SECURITY_RESULTS"
fi
<details> <summary><strong>Security Checks Performed</strong></summary>
{
  "checks": [
    "SQL injection vulnerabilities",
    "XSS attack vectors",
    "Authentication bypasses",
    "Authorization flaws",
    "Cryptographic weaknesses",
    "Dependency vulnerabilities",
    "Secret exposure",
    "CORS misconfigurations"
  ],
  "actions": [
    "Block PR on critical issues",
    "Suggest secure alternatives",
    "Add security test cases",
    "Update security documentation"
  ]
}
</details> <details> <summary><strong>Comment Template: Security Issue</strong></summary>
🔒 **Security Issue: [Type]**

**Severity**: 🔴 Critical / 🟡 High / 🟢 Low

**Description**:
[Clear explanation of the security issue]

**Impact**:
[Potential consequences if not addressed]

**Suggested Fix**:
```language
[Code example of the fix]

**R

Câu hỏi thường gặp

Nó kiểm tra những phần nào của code?

Skill liệt kê các kiểm tra bảo mật, hiệu năng, phong cách, kiến trúc và khả năng truy cập.

Có cần công cụ dòng lệnh của GitHub không?

Có. Skill dùng lệnh gh để đọc pull request.

Nó có tự sửa lỗi không?

Skill tạo ra các phát hiện để bạn xem xét. Nó không hứa sẽ tự động sửa.

Chi tiết

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

Comprehensive GitHub code review with AI-powered swarm coordination

repo: ruvnet/RuView

Độ phổ biến

Sao GitHub
102k
Vị trí xếp hạng
#829
Giấy phép
MIT
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ự