jules-extension: Agent for Claude Code

.github/agents/pr-consolidation-playbook.md

PR Consolidation Playbook is an agent for Claude Code from Hiroki-org/jules-extension. It costs 31 tokens per session (364 once invoked), scanned A, original, MIT.

A workflow for combining several similar open pull requests into fewer destination pull requests while keeping links to the original work and its review and test status.

In plain words
What is it for?
Use it to group related pull requests, choose a destination, merge their branches, resolve conflicts, run focused checks, update descriptions, and close the absorbed requests with traceability.
Why use it?
It reduces duplicate review and CI work when multiple pull requests affect the same code or pursue the same goal. It also makes it clear where absorbed pull requests ended up.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is Hiroki-org/jules-extension's own configuration. It tells Claude Code how to work on jules-extension itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything jules-extension configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Hiroki-org/jules-extension. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Hiroki-org/jules-extension/main/.github/agents/pr-consolidation-playbook.md
Clone the repo
git clone --depth 1 https://github.com/Hiroki-org/jules-extension

Made for: Claude Code.

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 Consolidation Playbook

README.md
[![agentmods](https://agentmods.dev/badge/agents/hiroki-org/jules-extension/pr-consolidation-playbook/github.svg)](https://agentmods.dev/agents/hiroki-org/jules-extension/pr-consolidation-playbook)
Your own site
<a href="https://agentmods.dev/agents/hiroki-org/jules-extension/pr-consolidation-playbook"><img src="https://agentmods.dev/badge/agents/hiroki-org/jules-extension/pr-consolidation-playbook/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 Consolidation Playbook

Your own site · 80×15
<a href="https://agentmods.dev/agents/hiroki-org/jules-extension/pr-consolidation-playbook"><img src="https://agentmods.dev/badge/agents/hiroki-org/jules-extension/pr-consolidation-playbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 364 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.00031 $0.00364
Opus 5 $0.00015 $0.00182
Sonnet 5 $0.00006 $0.00073
Haiku 4.5 $0.00003 $0.00036

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

Security

Grade A, and why

PR Consolidation Playbook 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 12d 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.

.github/agents/pr-consolidation-playbook.md · 52 lines

What it actually says

PR Consolidation Playbook

This playbook defines a repeatable method for consolidating similar open PRs in Hiroki-org/jules-extension.

Objective

  • Group related PRs by touched scope and intent.
  • Select one destination PR per group.
  • Merge source branches into destination branch.
  • Close absorbed PRs with explicit traceability.

Steps

  1. Inventory open PRs.
  2. Group by similarity:
    • Primary: changed files / affected modules
    • Secondary: intent (fix, test, refactor, docs)
  3. Choose destination PR:
    • prefer newest + most complete CI/review state
  4. Integrate source branches into destination branch.
  5. Resolve conflicts using destination behavior as baseline.
  6. Run targeted verification for touched scope.
  7. Push destination and update PR description with absorbed PR list.
  8. Comment and close absorbed PRs:
    • このPRは #<destination> に統合しました。以降のレビューは統合先PRでお願いします。
  9. Run post-push review/CI closure loop until green + unresolved 0.

Suggested Destination PR Body Section

## Consolidation

This PR consolidates related PRs:
- #...
- #...

Notes:
- Merge to main is deferred until consolidated review and CI complete.
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. 12d ago First seen · 52 lines · 31 tokens per session scan A b9378f69e37d

Subscribe to this mod's changes

PR Consolidation Playbook is an agent published in the GitHub repository Hiroki-org/jules-extension (19 stars, last pushed 10d ago), licensed MIT. It adds 31 tokens to every session and 364 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

pr-creator

Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.

axiomantic/spellbook · 75 tokens

consistency-and-history

Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

ncoevoet/claude-review-all · 34 tokens

release-cutter

Cut a new agnostic-ai release end to end.

Chemaclass/agnostic-ai · 15 tokens

author-code-review

Fetches open PRs, reads review comments (including CoderabbitAI), identifies actionable code changes, implements fixes, and pushes commits.

openshift-online/gcp-hcp · 32 tokens

fe-git-operator

Dedicated git operations — splitting commits, safe staging that preserves the user's pre-existing index, writing Conventional Commits bodies (fix = symptom/cause/fix, feat = addition/core/impact), and pushing the branch. fe-pr-author owns PRs; this agent owns commits and the push. Destructive commands forbidden.

sh5623/fe-rail · 69 tokens

engineer

Use this agent for code exploration, architecture design, refactoring analysis, git operations, and code review. Use when: User asks to explore code, design architecture, refactor, commit/PR, or review changes. Do NOT use when: User needs test generation (use qa-engineer), security audit (use security-scanner), or…

Zate/cc-plugins · 174 tokens