pr-prep-orchestrator

pr-prep-orchestrator is an agent for Claude Code from dansasser/claude-code-marketplace. It costs 43 tokens per session (1,516 once invoked), scanned A, original, MIT.

An agent that coordinates the steps needed to turn a branch of a software project into a GitHub pull request and, optionally, a release. It checks the environment, project, workflow, branch, lock files, and local CI before pushing.

In plain words
What is it for?
Use it to inspect a Python or Node.js project, validate its CI workflow, run local checks, perform Git operations, create a pull request, and optionally merge and release it.
Why use it?
It provides an ordered process when the starting state of the branch is unclear and helps prevent failed GitHub checks by testing locally first.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/detect_env.py --json.

Part of the pr-prep plugin — 1 command, 2 agents shipped together

Good fit Use it to inspect a Python or Node.js project, validate its CI workflow, run local checks, perform Git operations, create a pull request, and optionally merge and release it.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dansasser/claude-code-marketplace
agentmods
npx agentmods add agents/dansasser/claude-code-marketplace/pr-prep-orchestrator

Made for: Claude Code.

Or install pr-prep, the plugin that ships this one along with the rest of its 1 command, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-prep-orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator/github.svg)](https://agentmods.dev/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator)
Your own site
<a href="https://agentmods.dev/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator"><img src="https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-prep-orchestrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator"><img src="https://agentmods.dev/badge/agents/dansasser/claude-code-marketplace/pr-prep-orchestrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01516
Opus 5.5 $0.00017 $0.00606
Sonnet 5.5 $0.00009 $0.00303
Haiku 4.5 $0.00004 $0.00152

Measured 3mo ago against content hash 8d16fade058e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-prep-orchestrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pr-prep/agents/pr-prep-orchestrator.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Prep Orchestrator

You are the main orchestrator for automated PR preparation. Your job is to take any branch state (committed, uncommitted, unknown) and deliver a published package through GitHub.

Key Principle: Run CI locally BEFORE pushing to prevent GitHub CI failures.

Phase Overview

Execute these 9 phases (0-8) in order:

Phase 0: Environment Detection
    |
Phase 1: Project Detection
    |
Phase 2: Workflow Validation
    |
Phase 3: Branch Analysis
    |
Phase 4: Lock File Check
    |
Phase 5: Run Local CI
    |
Phase 6: Git Operations
    |
Phase 7: PR Creation
    |
Phase 8: (Optional) Merge & Release

Phase Details

Phase 0: Environment Detection

Run the detect_env.py script to gather environment info:

python scripts/detect_env.py --json

This returns: OS, shell, Python/Node paths, git availability, CI tool availability.

Store results for later phases.

Phase 1: Project Detection

Run detect_project.py to identify project type:

python scripts/detect_project.py --json

Returns: project_type (python/node), config files, package manager, source/test dirs.

Phase 2: Workflow Validation

Check if CI workflows exist:

python scripts/validate_workflow.py --json

If needs_workflow is true, generate one:

python scripts/generate_workflow.py --json

Phase 3: Branch Analysis

Analyze git state:

python scripts/analyze_branch.py --json

Returns: uncommitted changes, unpushed commits, diff stats.

Decision Points:

  • If is_clean is false: Handle uncommitted changes (prompt user or auto-commit)
  • If is_pushed is false: Will need to push before PR

Phase 4: Lock File Check

Validate lock file consistency:

python scripts/check_lockfiles.py --json

If needs_update is true:

  • For Python: run pip install -e . or poetry install
  • For Node: run npm install or appropriate package manager

Phase 5: Run Local CI

This is the critical phase - run all CI checks locally.

Read the full file on GitHub · 243 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 243 lines · 43 tokens per session scan A 8d16fade058e

Subscribe to this mod's changes

pr-prep-orchestrator is an agent published in the GitHub repository dansasser/claude-code-marketplace (9 stars, last pushed 13d ago), licensed MIT. It adds 43 tokens to every session and 1,516 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pr-prep-orchestrator compared with agents from other repositories

pr-prep-orchestrator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-prep-orchestratordansasser/claude-code-marketplaceAgent913d agoMITA43Claude Code
deployment-specialistluongnv89/claude-howtoAgent48k10d agoMITA8Claude Code
release-validatorrlajous/claude-code-commandsAgent3017d agoMITA25Claude Code
shipperngocsangyem/MeowKitAgent17yesterdayMITA65Claude Code
release-executordynos-fit/dynos-workAgent26d agoMITA67Claude Code
pr-ghostwriterkomunite/kalfaAgent2467mo agoMITA81Claude Code
Release Managerbirol91/quorum-agentsAgent08d agoMITA15Claude Code