Introduction

DSH’s extension philosophy is “everything is a plugin,” and the community directory is an independent site with no official affiliation to DeepSeek / Fang. For AI agent developers and open-source contributors, when submitting PRs to external repositories, common problems are not just “how to finish writing,” but also: is this PR worth submitting, what is its status after submission, and what action should be taken next.

PR Genius is a plugin maintained by zsxh1990, positioned as a PR evaluation and suggestion tool based on historical anti-patterns and success patterns.

What is it

PR Genius is aimed at professional OSS contributors and AI agents. Its positioning in the documentation is “Outbound PR CRM”. It targets PRs submitted to other repositories and provides capabilities such as cross-repo PR lists, status classification, stale detection, and action suggestions.

Verified basic information is as follows:

  • Plugin name: zsxh1990/pr-genius
  • Maintainer: zsxh1990
  • License: MIT
  • Python Requirement: 3.10+
  • README frontmatter: conforms_to: OKF v0.1 (Sudhakaran88/okf-conformance) + agent_guidelines extension
  • Declared in package.json: dsh.bundle.patch: ./cordis.patch.yml

Core Features

The capabilities listed in the documentation are:

  • Outbound PR CRM for professional OSS contributors and AI agents
  • Cross-repo PR list
  • Status classification (9 states in total)
  • Stale detection
  • Action suggestions
  • Repo-specific policy
  • Snapshot & transitions
  • Daily status heartbeat
  • 1355 loaded patterns across 61 repos
  • 8 MCP tools

Installation and Enablement

Python Package Installation

The installation command provided in the documentation is:

pip install prgenius-core

DSH Plugin Clues

DSH-related bundle configuration appears in package.json:

"dsh": {
  "bundle": {
    "patch": "./cordis.patch.yml"
  }
}

The documentation does not provide an explicit official DSH installation command; therefore, this article does not concatenate commands like dsh plugin add by name.

MCP Configuration

An example of MCP configuration is as follows:

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

Typical Usage

The commands below are all from examples in the documentation.

Analyze PR

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

Use coach

python3 -m prgenius coach "feat: add feature" --repo org/repo

Use triage

python3 -m prgenius triage "docs: typo" --repo org/repo --diff-stat "docs/faq.md | 3 ++-"

Status tracking

python3 -m prgenius status --author zsxh1990

profile writeback

python3 -m prgenius profile writeback --author zsxh1990

GitHub Action

It can be referenced in a workflow:

- uses: zsxh1990/pr-genius/.github/actions/pr-genius-check@v1

The documentation states permission requirements: contents: read is required; issues: write is required when comment_mode != never.

The values of comment_mode are:

  • never
  • high_risk
  • always

The old field comment_on_high_risk is still supported.

Scenarios and Notes

This plugin is suitable for the following scenarios:

  • Frequently submitting PRs to other repositories
  • Need to view submitted PRs across repositories
  • Need to classify PR statuses and perform stale detection
  • Wish to receive action suggestions
  • Wish to integrate PR evaluation capabilities into MCP or GitHub Action

Pre-use notes:

  • The plugin runs with the current DSH process permissions. Before installing, check the source code, dependencies, and the MIT license.
  • Version clues in the documentation are inconsistent; verify actual releases before pinning a version.
  • The commenting behavior of the GitHub Action is controlled by comment_mode; set permissions according to actual usage requirements.

Conclusion

The value of PR Genius lies in transforming “whether to submit, the state after submission, and what to do next” into runnable checks and evaluations.

  • GitHub repository: https://github.com/zsxh1990/pr-genius
  • Plugin directory page clues: https://www.skillhub.cn/plugins/zsxh1990/pr-genius