pr-driver-protocol

pr-driver-protocol is a skill for Claude Code, Codex from jleechanorg/agent-orchestrator-ts. It costs 60 tokens per session (1,718 once invoked), scanned A, original, MIT.

A procedure for bringing a GitHub pull request, or proposed code change, to a passing state after each push. It requires collecting all current checks that failed, fixing them together, verifying the fixes locally, and then pushing once.

In plain words
What is it for?
It is for driving pull requests to green, diagnosing repeated gate failures, and coordinating workers or people who are monitoring a pull request.
Why use it?
It prevents repeated pushes that fix only the first visible problem while leaving other checks broken. It also treats waiting for continuous-integration checks as part of an active review loop.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit It is for driving pull requests to green, diagnosing repeated gate failures, and coordinating workers or people who are monitoring a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jleechanorg/agent-orchestrator-ts --skill pr-driver-protocol
Clone the repo
git clone --depth 1 https://github.com/jleechanorg/agent-orchestrator-ts

Made for: Claude Code, Codex.

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-driver-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol/github.svg)](https://agentmods.dev/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol)
Your own site
<a href="https://agentmods.dev/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol"><img src="https://agentmods.dev/badge/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol/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-driver-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol"><img src="https://agentmods.dev/badge/skills/jleechanorg/agent-orchestrator-ts/pr-driver-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 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.00060 $0.01718
Opus 5.5 $0.00024 $0.00687
Sonnet 5.5 $0.00012 $0.00344
Haiku 4.5 $0.00006 $0.00172

Measured 9d ago against content hash 1be51d559dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-driver-protocol 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 9d 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.

skills/pr-driver-protocol/SKILL.md · 123 lines

How it starts

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

PR driver protocol — fix-all before push (bd-snx3)

A standalone, callable protocol for any agent (worker, babysit, human) that is driving a PR to green. The single rule: after every push, fix ALL known gate failures in one local pass before the next push. "CI pending" is not an idle state.

When to use this protocol

  • You just pushed a commit and need to wait for CI to come back
  • You see the same gate failure 2+ times in a row (worker or babysit perspective)
  • You are babysitting a worker that appears to be partial-fixing
  • You are tempted to do "one quick fix and re-push" — stop, run this protocol first

The 5-step loop

1. ENUMERATE   — read ALL current gate failures, not just the first
2. CLASSIFY    — group by file + root cause (same root cause = one fix)
3. FIX-ALL     — apply every fix locally; do not push until all are staged
4. VERIFY      — run the local equivalent of each failing gate
5. PUSH        — single commit covering all fixes; then back to step 1

Step 1: ENUMERATE

Do not stop at the first failure. Use /green <PR> or read the failure-class log and build a complete list. For each failure, capture:

  • Gate name (Green Gate, CodeRabbit, Skeptic, Evidence, Bugbot, inline threads)
  • File and line (e.g., packages/cli/src/doctor.ts:142)
  • Failure text (the actual error message, not a paraphrase)
  • Root cause hypothesis (what is wrong, not just what is failing)

Step 2: CLASSIFY

Group failures by the underlying root cause. Two failures with the same root cause are one fix:

F1: dist/index.js argv shape not recognized in non-canonical check   (cli/doctor.ts:142)
F2: worker binary path resolution fails when global npm is used        (cli/doctor.ts:203)
  → Same root cause: argv path normalization is regex-naive
  → ONE fix: switch to path.basename() comparison

Do not push two commits to fix one root cause. The whole point of this protocol is to stop partial-fix-then-push loops.

Step 3: FIX-ALL

Read the full file on GitHub · 123 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. 9d ago First seen · 123 lines · 60 tokens per session scan A 1be51d559dfd

Subscribe to this mod's changes

pr-driver-protocol is a skill published in the GitHub repository jleechanorg/agent-orchestrator-ts (8 stars, last pushed 3d ago), licensed MIT. It adds 60 tokens to every session and 1,718 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-10-02.