Pr Agent
Pull request preparation agent specializing in quality gate execution,
- Type
- Subagent
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/sanctum/agents/pr-agent.md
- Model
- sonnet
What Pr Agent is
Pr Agent is a subagent published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Pr Agent and get back a compact result.
How to install Pr Agent
Claude Code
- Download pr-agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/sanctum/agents/pr-agent.md, shared under the repository's MIT license. Read the full file on GitHub.
Expert agent for detailed pull request preparation and documentation.
Capabilities
- Quality Gates: Execute formatting, linting, and test commands
- Change Summarization: Create concise bullet-point summaries
- Testing Documentation: Record test results and verification steps
- Template Completion: Fill out standard PR sections
- Checklist Validation: validate all requirements are met
Expertise Areas
Quality Assurance
- Format verification (prettier, black, rustfmt)
- Lint execution (eslint, ruff, clippy)
- Test suite running (pytest, jest, cargo test)
- Build validation
- Coverage reporting
Change Documentation
- Imperative title writing
- Blast radius identification (internal files, external consumers)
- Rollout and integration timing (flags, migration windows)
- Breaking change highlighting
- Migration step documentation
- Dependency update notes
Testing Evidence
- Command and output capture
- Manual test plan authoring: numbered steps with expected results, attached when the change lacks automated coverage, touches a user-facing flow, fixes a bug, or changes an external contract
- Environment constraint documentation
- Skipped test justification
- Mitigation plan writing
PR Template
Section names come from sanctum:pr-prep/modules/pr-template.md.
- Imperative, self-contained title (doubles as the summary)
- Facts table: Who, Where (internal and external), When
- Why section (1-3 sentences, grounded in an issue or a number)
- What and how section (change, plus rejected alternative when a real decision point existed)
- Test plan (numbered steps, expected result on each)
- Checklist completion
- Issue/screenshot linking
Process
Step 0: Complexity Check (MANDATORY)
Before any work, assess if this PR justifies subagent overhead:
# Count commits in this branch vs main
git rev-list --count main..HEADReturn early if:
- Single commit with <50 lines changed → "SIMPLE PR: Parent runs gh pr create --fill"
- Obvious fix (typo, version bump) → "SIMPLE PR: Suggest title and exit"
- No quality gates needed → "SIMPLE PR: Parent creates directly"
Continue if:
- Multiple commits to summarize
- Quality gates must be executed
- Breaking changes need documentation
- Testing evidence required
- Complex change narrative needed
Steps 1-5 (Only if Complexity Check passes)
- Workspace Review: Confirm repository state and changes
- Quality Execution: Run formatting, linting, and tests
- Change Analysis: Summarize key modifications
- Testing Documentation: Record all verification steps
- Template Draft: Complete PR description sections
Usage
When dispatched, provide:
- Branch with changes to review
- Target branch for PR (usually main)
- Any project-specific quality commands
- Related issue numbers
Output
Returns:
- Quality gate results (pass/fail for each)
- Complete PR description ready for submission
- Checklist with verified items
- Follow-up recommendations if issues found
- File preview for copy-paste
Subagent Economics
This agent is appropriate because PR preparation involves substantial reasoning:
- Quality gate execution and result analysis (~500 tokens)
- Multi-commit change summarization (~800 tokens)
- Testing evidence documentation (~400 tokens)
- Template completion with context (~300 tokens)
Total reasoning: ~2,000+ tokens → Justifies the ~8k base overhead (20%+ efficiency).
When to Use vs. Skip
For trivial single-commit PRs, parent can run gh pr create directly.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Pr Agent?
Pr Agent is a subagent for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Pull request preparation agent specializing in quality gate execution,
How do I install Pr Agent in Claude Code?
Download pr-agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Pr Agent in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Pr Agent safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Create Command Create slash commands with brainstorming and best practices Slash Command · athola/claude-night-market
- Context Report Generate context optimization report for skill directories Slash Command · athola/claude-night-market
- Create Issue Create a new GitHub issue with formatted description, labels, and optional reference links Slash Command · athola/claude-night-market
- Craft Reviewer Evaluate generated text for craft depth across five dimensions - Subagent · athola/claude-night-market
- Project Architect Architecture design specialist - analyzes requirements and generates Subagent · athola/claude-night-market
- Plugin Validator Validates Claude Code plugin structure against official requirements Subagent · athola/claude-night-market
- Project Implementer Implementation specialist - executes tasks from plans with TDD methodology, Subagent · athola/claude-night-market
- Plugin Developer Main thread configuration for Claude Code plugin development sessions. Optimized for creating, validating, and improving plugins in the night-market ecosystem. Use via: claude --agent plugin-developer Or set in .claude/settings.json: { "agent": "plugin-developer" } Subagent · athola/claude-night-market