跳到正文
Skillpedia
通用编程102k · #829

github-code-review

它能做什么

这个技能引导 AI 对 GitHub 上的代码改动进行详细审查,涵盖安全、性能、架构和风格。适合希望在合并前进行彻底二次检查的开发者。

适用场景

  • ✓当有人在合并前请求审查某个 GitHub 拉取请求的时候。
  • ✓当你希望对代码改动进行安全和性能检查的时候。
  • ✓当你希望把总结发布到 GitHub 拉取请求上的时候。

技能链接

https://github.com/ruvnet/RuView/blob/main/.claude/skills/github-code-review/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/RuView/blob/main/.claude/skills/github-code-review/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我审查拉取请求 123 的安全问题和性能问题,并在 GitHub 上留下一份总结。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 使用 GitHub 的命令行工具读取拉取请求的文件和差异。它把改动送入多项审查检查,然后把各项发现合并成一份报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

常见问题

它检查代码的哪些方面?

该技能列出了安全、性能、风格、架构和无障碍性检查。

它需要 GitHub 的命令行工具吗?

需要。该技能使用 gh 命令读取拉取请求。

它会自动修复问题吗?

该技能会给出发现的问题供你审阅,但不承诺自动修复。

详情

作者的原始描述

Comprehensive GitHub code review with AI-powered swarm coordination

repo: ruvnet/RuView

热度

GitHub 星标
102k
排名
#829
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能