AI PR Review — 自动代码审查机器人,从 Claude Code 权限链逆向的安全审查引擎
Project description
AI PR Review
自动代码审查机器人 — 从 Claude Code 权限链逆向的安全/质量审查引擎
安装
pip install ai-pr-review
使用
# 快速审查一个 PR
pr-review https://github.com/owner/repo/pull/123
# 审查并发表评论到 PR
export GITHUB_TOKEN='ghp_xxxx'
pr-review https://github.com/owner/repo/pull/123 --post
# 保存审查报告
pr-review https://github.com/owner/repo/pull/123 --output report.md
# 深度审查(调用 LLM)
pr-review https://github.com/owner/repo/pull/123 --deep
# JSON 输出
pr-review https://github.com/owner/repo/pull/123 --json
审查规则
| 级别 | 说明 | 来源 |
|---|---|---|
| 🔴 严重 | SQL注入、命令注入、硬编码密钥 | Claude Code bashSecurity.ts |
| 🟠 高 | XSS、路径遍历、不安全的反序列化 | Claude Code permission system |
| 🟡 中 | N+1查询、CSRF、调试信息泄露 | Claude Code 审计经验 |
| 🔵 低 | TODO遗留、魔数、过长函数 | PEP8 规范 |
定价
| 功能 | 免费 | Pro ($10/月) |
|---|---|---|
| 基础审查 (规则引擎) | ✅ 每天5次 | ✅ 无限 |
| 深度审查 (LLM) | ❌ | ✅ |
| PR 自动评论 | ❌ | ✅ |
| CI/CD 集成 | ❌ | ✅ |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_pr_review-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ai_pr_review-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b30e38208770f4e0dc052c858fb8a4941c9cc5b281ede6812afd25d215394485
|
|
| MD5 |
595a106b5b511e3cfa7a203bc463cf60
|
|
| BLAKE2b-256 |
b0f98976be62493e352e5ee4e5612e6853c311dab34e380d933a7b79a57d8fbf
|