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

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.

agentmods
npx agentmods add skills/kouroshez/coding-os/pr-mode-driver
Any agent
npx skills add kouroshez/coding-os --skill pr-mode-driver
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00080 $0.01162
Opus 5 $0.00040 $0.00581
Sonnet 5 $0.00016 $0.00232
Haiku 4.5 $0.00008 $0.00116

Measured 3d ago against content hash 925a93c2e919, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,162 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

gate-probe

Prove a gate before trusting it. Inventory violations, plant a defect, verify RED, restore GREEN, prevent idle scans, and confirm automatic wiring.

wlsdks/ontology-atlas · 34 tokens

mykg-github-pages

Set up and maintain the GitHub Pages site for the mykg repo (SenolIsci/mykg) — a purpose-built pages/ folder (landing page adapted from README.md, blog posts, diagrams), built by a GitHub Actions workflow that runs Jekyll and deploys the result to a gh-pages branch. Use whenever the user wants to publish project…

SenolIsci/mykg · 228 tokens

ci-validation-gates

Defensive CI/CD patterns: semver validation, token checks, retry logic, draft detection — earned from v0.8.22.

elbruno/ElBruno.MempalaceNet · 32 tokens

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens

chinese-git-workflow

国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。.

jnMetaCode/superpowers-zh · 69 tokens

azsdk-common-pipeline-analysis

Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format. Load this skill before calling azsdkanalyzepipeline, which returns raw failure data that this skill interprets and formats. USE FOR: "pipeline failed", "build failure", "CI check failing", "tests failing in…

Azure/azure-sdk-for-net · 192 tokens