pr-genius
PR Genius is an evidence-backed PR contribution advisor that helps you assess the likelihood of your pull requests being merged into large open-source projects, using 550+ real case studies, 68 anti-patterns, and structured maintainer policy data.
analyze_pr— Deep analysis of a proposed PR, returning a 3-tier risk level (low/medium/high), positive/negative/neutral signals, a prioritized checklist (P0/P1/P2 items), and a recommended action to maximize merge probability.coach_pr— Quick go/no-go pass/fail decision before opening a PR, combining repo profile analysis, anti-pattern matching, and maintainer policy checks into a single verdict.triage_pr— Screen a PR against repo-specific maintainer policies (hard/soft rules), returning a verdict of pass, needs_preflight, warn, or reject, along with any policy violations and evidence.get_repo_profile— Retrieve a detailed 17-field repository profile (AI policy, maintainer vibe, external PR merge rate, close keywords, etc.) to understand a repo's contribution culture before submitting.list_open_prs— Browse all open PR case studies in the knowledge base and their current states.get_case_study— Fetch full details of a specific PR case study, including round-by-round interaction history, to learn from past outcomes.search_patterns— Search anti-patterns and success-patterns by keyword to discover what behaviors lead to PR rejection or acceptance.schema_info— Retrieve supported OKF schema versions and enumeration values used by the server.
Provides tools to analyze pull requests on GitHub repositories, offering merge probability estimation, policy triage, and pattern-based coaching using historical case studies.
type: Knowledge Bundle title: PR Genius — Pre-submission PR Advisor description: Evidence-backed PR contribution advisor for large open-source projects version: 1.4.0 created: 2026-07-01 updated: 2026-07-22 author: zsxh1990 conforms_to: OKF v0.1 (Sudhakaran88/okf-conformance) + agent_guidelines extension
mcp-name: io.github.zsxh1990/pr-genius
PR Genius — The advisor that knows which PRs get closed
1355 loaded patterns across 61 repos. 100% quality pass rate. Clone → paste MCP config → ask "Should I open this PR to encode/httpx?"
Related MCP server: devflow-mcp
🎯 What is PR Genius?
PR Genius is not a PR dashboard. It's an Outbound PR CRM for professional OSS contributors and AI agents:
Manage PRs you've submitted to other repos — when to fix CI, rebase, wait, ping, or abandon.
Capability |
| PR Genius |
Cross-repo PR list | ✅ | ✅ |
Status classification | ❌ | ✅ (9 states) |
Stale detection | ❌ | ✅ |
Action suggestions | ❌ | ✅ |
Repo-specific policy | ❌ | ✅ |
Snapshot & transitions | ❌ | ✅ |
Status heartbeat runs daily via cron, auto-detecting:
🔴
NEEDS_REBASE/CI_FAILING— fix immediately🟡
STALE_REVIEW— ping after threshold🟡
STALE_NO_REVIEW— consider abandoning🟢
CLEAN/WAITING— continue waiting
🛡️ Why PR Genius?
PR Genius doesn't write PRs for you. It knows which PRs get closed.
Capability | LLM directly | Scraper Agent | PR Genius |
Knowledge source | Training data | Real-time scrape | 1355 structured patterns |
Repo understanding | Generic | Surface data (stars) | 17-field agent_guidelines |
Failure patterns | Unknown | Unknown | 752 anti-patterns |
Success patterns | Unknown | Unknown | 703 success patterns |
Maintainer preference | Guess | Recent PRs | Structured policy files |
Merge probability | Can't estimate | Can't estimate | Based on repo merge rate + signals |
Real cases (PR Genius helped avoid these rejections):
PR | Repo | What happened | PR Genius would have flagged |
#491 | MisakaNet | "Destructive README rewrite" — closed |
|
#47434 | huggingface/transformers | "We'll handle internally" — closed |
|
#10393 | awesome-mcp-servers | Missing Glama badge — auto-flagged |
|
#282 | punkpeye/fastmcp | +271 lines, first PR — closed without review |
|
#2902 | soxoj/maigret | CI failure (tag |
|
🚀 Quick Start
pip install prgenius-core
# Analyze 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 ++-"
# Status heartbeat (outbound PR monitoring)
python3 -m prgenius status --author zsxh1990
python3 -m prgenius status --author zsxh1990 --format json --save-snapshot
# Profile writeback suggestions (dry-run)
python3 -m prgenius profile writeback --author zsxh1990🤖 GitHub Action
Use PR Genius as a GitHub Action in any repo:
# .github/workflows/pr-genius.yml
name: PR Genius Check
on:
pull_request:
types: [opened, synchronize]
jobs:
pr-genius:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: zsxh1990/pr-genius/.github/actions/pr-genius-check@main
id: pr-genius
with:
title: ${{ github.event.pull_request.title }}
repo: ${{ github.repository }}
body: ${{ github.event.pull_request.body }}
- name: Comment on PR
if: always()
uses: actions/github-script@v7
with:
script: |
const tier = '${{ steps.pr-genius.outputs.tier }}';
const emoji = tier === 'high_risk' ? '🔴' : tier === 'medium_risk' ? '🟡' : '🟢';
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: `## ${emoji} PR Genius: ${tier}`
});🤖 MCP Configuration
{
"mcpServers": {
"pr-genius": {
"command": "python",
"args": ["-m", "prgenius", "mcp", "serve"]
}
}
}Docker: docker run --rm -i ghcr.io/zsxh1990/pr-genius:1.3.0
8 MCP Tools
Tool | Purpose | Required Args |
| Merge probability + optimization path + 3-tier risk |
|
| Go/no-go decision (pass/fail) |
|
| Maintainer policy check (9 rules) |
|
| Repo profile (17 fields) |
|
| Open PR list |
|
| PR case study details |
|
| Anti-pattern/success-pattern search |
|
| OKF schema versions | (none) |
Tool Parameter Notes
title(required foranalyze_pr,coach_pr,triage_pr): The PR title, e.g."fix: timeout in connection pool"repo(required for most tools): Repository inowner/nameformat, e.g."encode/httpx"pr_description(optional): Additional PR body text for deeper analysisquery(required forsearch_patterns): Search keywords, e.g."connection timeout"
📊 Data Scale
Dimension | Count |
Repo profiles | 61 |
Case studies | 50+ |
Success patterns | 687 (431 .md + 256 .json) |
Anti-patterns | 668 (561 .md + 107 .json) |
Total patterns | 1355 (all loaded) |
Quality pass rate | 100% (994/994 markdown ≥75分) |
Covered repos | 35+ (react, kubernetes, rust, uv, pydantic, etc.) |
按仓库规模分布
规模 | Success | Anti | 总计 |
大仓 (>10k ⭐) | 208 | 205 | 413 |
中仓 (1k-10k ⭐) | 169 | 88 | 257 |
小仓 (<1k ⭐) | 169 | 88 | 257 |
通用 | 203 | 414 | 617 |
其他 (特定仓库) | 312 | 260 | 572 |
🤖 Robots / Agents
docs/index.md — file map
AGENT_GUIDELINES_SCHEMA.md — agent_guidelines schema
ROUNDS_SCHEMA.md — rounds schema
BLACKLIST.md — repos we don't track
📖 Contributing
See CONTRIBUTING.md. AI-assisted PRs welcome.
🤝 Community
中文文档
中文版 README:README.zh-CN.md
Citation
@misc{pr-genius-2026,
title = {PR Genius — Evidence-backed PR Contribution Advisor},
author = {zsxh1990},
year = {2026},
url = {https://github.com/zsxh1990/pr-genius}
}Maintenance
Related MCP Servers
- Alicense-qualityDmaintenanceA MCP server that provides tools for analyzing git changes and suggesting appropriate PR templates, helping automate PR-related workflows.MIT
- Alicense-qualityDmaintenanceA production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.17ISC
- Alicense-qualityFmaintenanceComprehensive MCP server for analyzing GitHub pull requests, detecting security vulnerabilities, assessing code quality, and providing risk ratings across multiple languages.3MIT
- AlicenseAqualityDmaintenanceMCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.84MIT
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zsxh1990/pr-genius'
If you have feedback or need assistance with the MCP directory API, please join our Discord server