code-reviewer by alirezarezvani/claude-skills
npx skills add https://github.com/alirezarezvani/claude-skills --skill code-reviewer用于分析拉取请求、检测代码质量问题并生成审查报告的自动化代码审查工具。
分析分支间的 git diff 以评估审查复杂性并识别风险。
# 将当前分支与 main 分支进行比较分析
python scripts/pr_analyzer.py /path/to/repo
# 比较特定分支
python scripts/pr_analyzer.py . --base main --head feature-branch
# 用于集成的 JSON 输出
python scripts/pr_analyzer.py /path/to/repo --json
检测内容:
any 类型输出包括:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
分析源代码中的结构性问题、代码异味和 SOLID 原则违反情况。
# 分析一个目录
python scripts/code_quality_checker.py /path/to/code
# 分析特定语言
python scripts/code_quality_checker.py . --language python
# JSON 输出
python scripts/code_quality_checker.py /path/to/code --json
检测内容:
阈值:
| 问题 | 阈值 |
|---|---|
| 过长函数 | >50 行 |
| 过大文件 | >500 行 |
| 上帝类 | >20 个方法 |
| 过多参数 | >5 个 |
| 深层嵌套 | >4 层 |
| 高复杂度 | >10 个分支 |
将 PR 分析和代码质量检查结果合并成结构化的审查报告。
# 为当前仓库生成报告
python scripts/review_report_generator.py /path/to/repo
# Markdown 输出
python scripts/review_report_generator.py . --format markdown --output review.md
# 使用预计算的分析结果
python scripts/review_report_generator.py . \
--pr-analysis pr_results.json \
--quality-analysis quality_results.json
报告包括:
结论:
| 评分 | 结论 |
|---|---|
| 90+ 且无高优先级问题 | 批准 |
| 75+ 且 ≤2 个高优先级问题 | 批准并附带建议 |
| 50-74 | 请求修改 |
| <50 或有严重问题 | 阻止 |
references/code_review_checklist.md
系统化的检查清单,涵盖:
references/coding_standards.md
语言特定的标准,适用于:
references/common_antipatterns.md
包含示例和修复方法的反模式目录:
| 语言 | 扩展名 |
|---|---|
| Python | .py |
| TypeScript | .ts, .tsx |
| JavaScript | .js, .jsx, .mjs |
| Go | .go |
| Swift | .swift |
| Kotlin | .kt, .kts |
每周安装量
207
仓库
GitHub 星标数
3.6K
首次出现
2026 年 1 月 20 日
安全审计
安装于
claude-code172
opencode151
gemini-cli150
codex140
cursor130
github-copilot121
Automated code review tools for analyzing pull requests, detecting code quality issues, and generating review reports.
Analyzes git diff between branches to assess review complexity and identify risks.
# Analyze current branch against main
python scripts/pr_analyzer.py /path/to/repo
# Compare specific branches
python scripts/pr_analyzer.py . --base main --head feature-branch
# JSON output for integration
python scripts/pr_analyzer.py /path/to/repo --json
What it detects:
any typesOutput includes:
Analyzes source code for structural issues, code smells, and SOLID violations.
# Analyze a directory
python scripts/code_quality_checker.py /path/to/code
# Analyze specific language
python scripts/code_quality_checker.py . --language python
# JSON output
python scripts/code_quality_checker.py /path/to/code --json
What it detects:
Thresholds:
| Issue | Threshold |
|---|---|
| Long function | >50 lines |
| Large file | >500 lines |
| God class | >20 methods |
| Too many params | >5 |
| Deep nesting | >4 levels |
| High complexity | >10 branches |
Combines PR analysis and code quality findings into structured review reports.
# Generate report for current repo
python scripts/review_report_generator.py /path/to/repo
# Markdown output
python scripts/review_report_generator.py . --format markdown --output review.md
# Use pre-computed analyses
python scripts/review_report_generator.py . \
--pr-analysis pr_results.json \
--quality-analysis quality_results.json
Report includes:
Verdicts:
| Score | Verdict |
|---|---|
| 90+ with no high issues | Approve |
| 75+ with ≤2 high issues | Approve with suggestions |
| 50-74 | Request changes |
| <50 or critical issues | Block |
references/code_review_checklist.md
Systematic checklists covering:
references/coding_standards.md
Language-specific standards for:
references/common_antipatterns.md
Antipattern catalog with examples and fixes:
| Language | Extensions |
|---|---|
| Python | .py |
| TypeScript | .ts, .tsx |
| JavaScript | .js, .jsx, .mjs |
| Go | .go |
| Swift | .swift |
Weekly Installs
207
Repository
GitHub Stars
3.6K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code172
opencode151
gemini-cli150
codex140
cursor130
github-copilot121
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装
Neki:PlanetScale 分片式 Postgres 数据库,实现水平扩展与高可用性
366 周安装
投资组合管理器 - 实时持仓分析与再平衡建议 | Alpaca API集成
363 周安装
Expo React Native 性能优化指南:8大类42条关键规则,提升应用启动与渲染速度
365 周安装
Pipedrive CRM API 集成指南:使用 Membrane CLI 自动化销售流程
360 周安装
Semgrep 静态代码分析工具:快速安全扫描与自定义规则创建指南
366 周安装
Roblox游戏开发指南:Luau脚本、多人游戏、UI设计、盈利策略与性能优化
370 周安装
| Kotlin | .kt, .kts |