pr-mode-driver

pr-mode-driver is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 80 tokens per session (1,162 once invoked), scanned A, original, Apache-2.0.

A guide for checking the status of an autonomous pull-request workflow and responding to its continuous-integration results. A pull request is a proposed code change; continuous integration runs automated checks on it.

In plain words
What is it for?
Use it after submitting a pull request to retry fixes for failed checks, monitor pending checks, clean up after a merge, or investigate why a change will not merge automatically.
Why use it?
It helps determine whether checks failed, are still running, or passed, and provides the next action without manually merging the change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Skip entirely in trunk mode (coding-os itself, and any default repo — pr-mode is consumer-only, default OFF). Full spec: [pr-workflow.md](../../../docs/playbook.

Good fit Use it after submitting a pull request to retry fixes for failed checks, monitor pending checks, clean up after a merge, or investigate why a change will not merge automatically.

Compare 6 skills 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/kouroshez/coding-os
agentmods
npx agentmods add skills/kouroshez/coding-os/pr-mode-driver

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/pr-mode-driver"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/pr-mode-driver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,162 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.00080 $0.01162
Opus 5.5 $0.00032 $0.00465
Sonnet 5.5 $0.00016 $0.00232
Haiku 4.5 $0.00008 $0.00116

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

Security

Grade A, and why

pr-mode-driver 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.

src/core/skills/pr-mode-driver/SKILL.md · 66 lines

How it starts

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

pr-mode Driver Skill

You are driving the pr-mode autonomous loop for a consumer repo (COS_GIT_WORKFLOW=pr). One agent owns one task → one agents/* branch → one worktree → one PR. After cos pr submit, your job is to poll CI and act — never merge by hand, never spin in-process.

Skip entirely in trunk mode (coding-os itself, and any default repo — pr-mode is consumer-only, default OFF). Full spec: pr-workflow.md §§ 4–10.

The one signal

cos pr status --branch "$BRANCH" --json    # → {"ci_rollup": "merged|red|queued|pending|passing|passing-unarmed|closed|none"}

ci_rollup collapses gh's statusCheckRollup + PR state + whether auto-merge is actually armed into one value. Branch on it — nothing else; the STOP decision needs no memory of the prior cos pr submit.

The loop — ONE pass per turn (never busy-wait)

ci_rollup Action
merged cos pr cleanup --task "$TASK" — removes the worktree + branch. Done.
red Heal (below).
passing Green AND auto-merge is armed — it will land itself. Re-poll next turn; do nothing else.
passing-unarmed Green but nothing will auto-land it (autonomy=draft, no required check, or a draft PR). STOP — needs a human merge (below).
pending Checks still running. Re-poll next turn.
queued In the GitHub merge queue — the queue will land it (or eject it) on its own. Re-poll next turn; do not re-submit or re-arm. An ejected PR surfaces as red (only that PR is healed; followers keep merging).
none No PR yet → cos pr submit (or cos pr open if there's no worktree).
closed Closed unmerged (human/abandoned). Stop and surface to the user; do not auto-reopen.

passing-unarmed → STOP, don't spin. The signal itself says nothing will land this PR on its own — you do NOT need to recall the prior cos pr submit, so this holds across /clear, /compact, and a reaper-recovered fresh session. Do NOT re-poll — at autonomy=draft that would loop forever. Stop and tell the user: "PR #N is green and needs a human merge (auto-merge isn't armed — autonomy=draft, or no required status check on the integration branch) — merge it, or set autonomy_level=auto_merge with a required check in Hub Config→Git."

Read the full file on GitHub · 66 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 · 66 lines · 80 tokens per session scan A 925a93c2e919

Subscribe to this mod's changes

pr-mode-driver is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 80 tokens to every session and 1,162 once invoked, about $0.0003 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-mode-driver compared with skills from other repositories

pr-mode-driver next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-mode-driverkouroshez/coding-osSkill7yesterdayApache-2.0A80Claude Code, Codex
baby-sitlangchain-ai/open-sweSkill11ktodayMITA30Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.6k15d agoMITA69Claude Code
atmos-hookscloudposse/atmosSkill1.4ktodayApache-2.0A50Claude Code
start-temps-clustergotempsh/tempsSkill953todayApache-2.0A204Claude Code, Codex
pr-watchSethGammon/CitadelSkill9434d agoMITA46Claude Code
repo-managerCommunity-Access/accessibility-agentsSkill460todayMITA19Claude Code, Codex