By nstrayer
Analyze and clean up PRs to be minimal, focused, and easy for humans to review
Analyze the current branch's PR diff for issues that make human review harder
Clean auto-fixable issues found by /check with patch preview and confirmation
Analyze and apply improvements to the clean-pr plugin itself, guided by automated analysis and optional user input
Suggest how to decompose a large or unfocused PR into smaller, focused PRs
You are a specialized cross-codebase analyzer. Your job is to compare new code introduced in a PR diff against the existing codebase to find meaningful overlaps and divergences that a human reviewer should consider.
You are a specialized code diff analyzer focused on finding anti-patterns that make pull requests harder for humans to review. Your job is to scan diffs thoroughly and report findings with precision.
Uses power tools
Uses Bash, Write, or Edit tools
Has parse errors
Some configuration could not be fully parsed
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin that analyzes and cleans up PRs to be minimal, focused, and easy for humans to review.
/pluginnstrayer/clean-pr as the pathclean-pr pluginThe plugin loads automatically every session after this -- no flags or config needed.
Clone the repo anywhere on your machine and add your local checkout as a plugin source:
# Clone to any directory you prefer -- the path here is just an example
git clone https://github.com/nstrayer/clean-pr.git ~/dev/clean-pr-plugin
Then in Claude Code, register your local checkout as a marketplace:
/plugin to open the plugin menu~/dev/clean-pr-plugin)clean-pr pluginThis points at your local files, so edits are reflected immediately. When you're happy with your changes, push to GitHub and open a PR.
/clean-pr:improve commandThis command is built for contributors. It analyzes the plugin's own source files -- the skill, anti-pattern catalog, commands, and agents -- identifies gaps, and applies improvements directly:
You can optionally describe what you want improved (e.g., /clean-pr:improve "add Swift patterns"). The command combines your input with its own automated analysis, previews proposed changes, and applies them after confirmation.
/clean-pr:improve to analyze and apply improvements, or pass a specific request/clean-pr:check on a branch with known issuesStart with /clean-pr:check. It analyzes your branch's diff and produces a report with a Next Steps section that tells you what to do:
/clean-pr:check # analyze the current branch
/clean-pr:check develop # analyze against a specific base branch
Based on the findings, check will suggest:
/clean-pr:fix -- if there are issues to address (debug artifacts, formatting noise, scope creep, duplicates, pattern divergence). Fix reads the check report from the conversation, so it must be run after check. Cross-codebase fixes always require your confirmation before applying./clean-pr:split -- if the PR has mixed concerns or exceeds size thresholds. Produces a decomposition plan (no git changes).flowchart TD
A["/clean-pr:check"] --> B{Findings?}
B -->|Clean| C["No action needed"]
B -->|Issues to fix| D["/clean-pr:fix"]
B -->|Mixed concerns / too large| E["/clean-pr:split"]
| Command | Purpose |
|---|---|
/clean-pr:check | Analyze the current branch's diff and produce a cleanliness report with next steps |
/clean-pr:fix | Clean auto-fixable issues found by check, with patch preview and confirmation |
/clean-pr:split | Suggest how to decompose a large PR into smaller focused PRs |
/clean-pr:improve | Analyze and apply improvements to this plugin itself |
check and split accept an optional [base-branch] argument. If omitted, they auto-detect the base from the GitHub PR or fall back to main/master. fix gets its base branch from the check report. improve accepts an optional [what to improve] argument.
clean-pr-plugin/
├── .claude-plugin/
│ ├── plugin.json # Manifest
│ └── marketplace.json # Marketplace metadata
├── commands/
│ ├── check.md # /clean-pr:check
│ ├── fix.md # /clean-pr:fix
│ ├── split.md # /clean-pr:split
│ └── improve.md # /clean-pr:improve
├── agents/
│ ├── codebase-analyzer.md # Cross-codebase analysis agent
│ └── pattern-scanner.md # Diff scanning agent
└── skills/
└── pr-cleanliness/
├── SKILL.md # Core PR cleanliness knowledge
└── references/
└── anti-patterns.md # Detection patterns by language
npx claudepluginhub nstrayer/clean-pr --plugin clean-prFix PR review comments automatically with context-aware patches
PRのレビュー報告書を作成する。bugや脆弱性の調査だけでなく、exportされた対話コンテキスト・PR概要欄・実装されたコードの整合性を確認し、実装者の正気を疑う。
this is to analyze the PRs and solve the requested changes in them
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.