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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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>- Multi-Agent Review System
- Specialized Review Agents
- PR-Based Swarm Management
- Automated Workflows
- Quality Gates & Checks
- Security Review Agent
- Performance Review Agent
- Architecture Review Agent
- Style & Convention Agent
- Accessibility Agent
🚀 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 命令读取拉取请求。
它会自动修复问题吗?
该技能会给出发现的问题供你审阅,但不承诺自动修复。
详情
热度
- GitHub 星标
- 102k
- 排名
- #829
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
AgentDB Advanced Features
102k帮你的智能体了解 AgentDB 的高级功能,例如在多台机器之间同步数据库,以及把向量搜索与元数据过滤结合起来。
AgentDB Learning Plugins
102k让你的智能体为 AgentDB 构建并训练学习插件,使用能从过去经验中不断改进的强化学习方法。
AgentDB Memory Patterns
102k让你的智能体跨会话记住对话和上下文,并以 AgentDB 作为其持久记忆存储。
AgentDB Performance Optimization
102k帮你的智能体提升 AgentDB 的搜索速度并减少内存占用,借助压缩、快速搜索索引和缓存。