rook-systemic-prs

rook-systemic-prs is a skill for Claude Code from jhoblitt/rook-claude. It costs 104 tokens per session (3,495 once invoked), scanned C, original, Apache-2.0.

A workflow for applying one consistent code change across a Rook GitHub repository as a series of small pull requests. Rook is an open-source project on GitHub, and a pull request is a proposed code change for review.

In plain words
What is it for?
Use it for repository-wide tasks such as removing dead code, replacing deprecated APIs, renaming symbols, fixing imports, tightening lint rules, or updating dependencies.
Why use it?
It helps large cleanups stay reviewable and independently mergeable instead of becoming one difficult, oversized change. It also checks current upstream code, excludes work already underway, and verifies each proposed change.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rook-maintainer plugin — 5 skills, 5 agents, 2 hooks shipped together

Good fit Use it for repository-wide tasks such as removing dead code, replacing deprecated APIs, renaming symbols, fixing imports, tightening lint rules, or updating dependencies.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jhoblitt/rook-claude
Claude Code
/plugin install rook-maintainer

Made for: Claude Code.

Or install rook-maintainer, the plugin that ships this one along with the rest of its 5 skills, 5 agents, 2 hooks.

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 rook-systemic-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/jhoblitt/rook-claude/rook-systemic-prs/github.svg)](https://agentmods.dev/skills/jhoblitt/rook-claude/rook-systemic-prs)
Your own site
<a href="https://agentmods.dev/skills/jhoblitt/rook-claude/rook-systemic-prs"><img src="https://agentmods.dev/badge/skills/jhoblitt/rook-claude/rook-systemic-prs/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 rook-systemic-prs

Your own site · 80×15
<a href="https://agentmods.dev/skills/jhoblitt/rook-claude/rook-systemic-prs"><img src="https://agentmods.dev/badge/skills/jhoblitt/rook-claude/rook-systemic-prs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00104 $0.03495
Opus 5 $0.00052 $0.01747
Sonnet 5 $0.00021 $0.00699
Haiku 4.5 $0.00010 $0.00349

Measured 3d ago against content hash 010749e2775a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

rook-systemic-prs scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

remedy for a stale-cache failure, `rm -rf ~/.cache/golangci-lint`, wipes a
plugins/rook-maintainer/skills/rook-systemic-prs/SKILL.md · 238 lines

How it starts

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

Rook systemic change → small PRs

A repeatable loop for applying a systemic change (one rule applied in many places) to a github.com/rook/* repo, delivered as many small, isolated, independently mergeable PRs instead of one mega-PR. Optimized for aggressive subagent fan-out: scanning and preparation are parallelized across as many subagents as the work decomposes into, run at the harness width cap.

This skill encodes the process. The driving example throughout is dead-code elimination (the workflow it was hardened on), but the same loop applies to any sweeping change: replace a deprecated call, rename a symbol, tighten a lint, normalize imports, bump a vendored API, etc. Substitute the "find candidates" and "transform" steps for your change; the sync / exclude-open-PRs / propose-gate / per-PR-verify / conventions machinery is identical.

Core principles

  1. Upstream master is the default ref. Always scan, branch, and base PRs on the current upstream master (the rook/* repo), not a stale local branch. Sync first, every run. Candidates found against stale code waste everyone's time and may already be merged.
  2. Exclude work already in flight. Before proposing anything, enumerate open PRs and drop any candidate already covered by one. Re-proposing open work is the most common failure mode of a multi-session campaign.
  3. Propose, then get agreement, before opening PRs. Present the candidate list and wait for the user to approve which ones to open. Do not open PRs speculatively.
  4. One concern per PR. Each PR should be a single file deletion, a single dead symbol/cluster, or one mechanical transform in one area — reviewable in under a minute. Prefer whole-file deletes when an entire file is dead.
  5. Fan out aggressively, up to the width cap. Decompose by directory / package / candidate file and run one subagent per unit; dispatch and width are rook-conventions references/fan-out.md. Use read-only Explore agents for scanning/auditing; use rook-maintainer:code-worker agents (shipped with this plugin) with isolation: worktree for parallel implementation across independent files.
  6. Verify every PR independently. Build + vet the affected package(s) before committing. A green campaign is many green PRs, not one hopeful push.
  7. Tier each agent to its work. Scan agents run a detector and report file:line — small-model work, and the whole-module cross-check in Phase 1 is what backstops it. Implementation workers apply an already-approved mechanical transform — small-model work too, backstopped by Phase 4's build/vet/gofmt and re-grep gate. Pass model: explicitly at both call sites instead of inheriting the session model. What stays on the session model is the judgment no gate can check: deciding what is safe to remove (Phase 3) and reconciling the fan-out against the authoritative pass.

Read the full file on GitHub · 238 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -1 lines 010749e2775a
  2. 8d ago Changed · +2 lines fcdbff4255a2
  3. 12d ago First seen · 237 lines · 104 tokens per session scan C c3122f5db1b7

Subscribe to this mod's changes

rook-systemic-prs is a skill published in the GitHub repository jhoblitt/rook-claude (4 stars, last pushed 2d ago), licensed Apache-2.0. It adds 104 tokens to every session and 3,495 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.