全部插件

pr-genius

pr-genius · 版本 2.2.3 · 更新于 2026年11月29日

mcp-name: io.github.zsxh1990/pr-genius

  • 逐版审核
  • 开发运行时
  • MIT
  • 0次下载

说明

以下为插件作者提供的原文。


type: Knowledge Bundle title: PR Genius — 提交前改进顾问 description: 大型开源项目 PR 知识库 + 提交前改进顾问,Agent 可读结构化数据 version: 2.1.5 created: 2026-07-01 updated: 2026-07-22 author: zsxh1990

PR Genius — 知道什么 PR 会被关的顾问

550+ 真实案例,帮你找到合并概率最大的提 PR 路径。

English | 中文


🛡️ 为什么用 pr-genius

pr-genius 不是"会写 PR 的 AI",而是"知道什么 PR 会被关的顾问"。

能力大模型直接提 PR爬虫 Agentpr-genius
知识来源训练数据实时爬取550+ 结构化 case studies
仓库理解通用知识stars/issues17 字段 agent_guidelines
失败模式不知道不知道68 anti-patterns
维护者偏好猜看最近 PR结构化 policy
合并概率无法估算无法估算基于仓库合并率

真实教训(只有被关过才知道):

  • MisakaNet 不接受"破坏性 README 重写"(#491, #496)
  • huggingface 要"内部处理"tokenizers 版本(#47434)
  • encode/httpx 不接受外部贡献者(restricted interactions)
  • Glama badge 是 awesome-mcp-servers 的必须项(#10393)

🚀 Quick Start

pip install prgenius-core

# 分析 PR
python3 -m prgenius analyze "feat: add feature" --repo org/repo --body "Fixes #123"

# Coach (pass/fail)
python3 -m prgenius coach "feat: add feature" --repo org/repo

# Triage (policy check)
python3 -m prgenius triage "docs: typo" --repo org/repo --diff-stat "docs/faq.md | 3 ++-"

🤖 MCP 配置

{
  "mcpServers": {
    "pr-genius": {
      "command": "python",
      "args": ["-m", "prgenius", "mcp", "serve"]
    }
  }
}

14 个 MCP Tools

Tool用途
analyze_pr合并概率 + 优化路径 + 三档风险
coach_prgo/no-go 决策(pass/fail)
triage_pr维护者政策检查(9 条规则)
get_repo_profile仓库画像(17 字段)
list_open_prs本地 open case-study 记录(非实时 GitHub PR)
get_case_studyPR 案例详情
search_patterns反模式/成功模式搜索
schema_infoOKF schema 版本
status_prs出向 PR 状态心跳(9 状态分类)
profile_writeback_suggestions画像回写建议(dry-run)
maintainer_view维护者侧决策(5 action)
contributor_view贡献者就绪决策(5 action)
review_queue优先级 review 队列
prgenius_doctor安装/数据/MCP 自检

📊 数据规模

维度数量
Repo profiles58
Case studies50+
Anti-patterns68
Coach accuracy87% (257 cases)
已覆盖仓库35+

📖 Contributing

See CONTRIBUTING.md

引用

@misc{pr-genius-2026,
  title  = {PR Genius — Evidence-backed PR Contribution Advisor},
  author = {zsxh1990},
  year   = {2026},
  url    = {https://github.com/zsxh1990/pr-genius}
}

版本历史

  • 2.2.32026年11月29日 · 1.1 MB
pr-genius · SoleAPI Agent 插件 | SoleAPI