agent-glovebox: Skill for Claude Code

.claude/skills/pr-creation/SKILL.md

pr-creation is a skill for Claude Code from AlexanderMattTurner/agent-glovebox. It costs 176 tokens per session (11,717 once invoked), scanned B, original, Apache-2.0.

A workflow for creating pull requests, which are proposed code changes submitted for review before merging. It checks and refines the change through repeated compression, critique, and fixes before submission.

In plain words
What is it for?
Creating, updating, opening, submitting, or pushing pull requests after a feature, fix, or refactor is ready to ship.
Why use it?
It helps catch problems and keep a pull request focused before it reaches reviewers or automated checks.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is AlexanderMattTurner/agent-glovebox's own configuration. It tells Claude Code how to work on agent-glovebox 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 agent-glovebox configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlexanderMattTurner/agent-glovebox. 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/AlexanderMattTurner/agent-glovebox/main/.claude/skills/pr-creation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlexanderMattTurner/agent-glovebox

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-creation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexandermattturner/agent-glovebox/pr-creation"><img src="https://agentmods.dev/badge/skills/alexandermattturner/agent-glovebox/pr-creation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,717 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 102
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
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.00176 $0.11717
Opus 5.5 $0.00070 $0.04687
Sonnet 5.5 $0.00035 $0.02343
Haiku 4.5 $0.00018 $0.01172

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

Security

Grade B, and why

pr-creation scanned grade B 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**Before creating any new module, check, script or per-project/config mechanism — and before writing any bug fix or CI fix — search for prior art FIRST: the TREE, then the ISSUE list, then the PR list.** The tree holds t
.claude/skills/pr-creation/SKILL.md · 280 lines

How it starts

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

Pull Request Creation Skill

Create or update the PR automatically after completed work. Skip this only when the user forbids it, the branch already has a PR, or the work remains experimental.

Never merge without a direct user instruction. When instructed, enable auto-merge and record the instruction in the PR body. Do not watch a new PR outside a babysitting session: root CLAUDE.md § Scheduling and waiting has you unsubscribe from it. Handle several PRs oldest first unless a revert or red-default-branch fix is urgent.

Before writing code, search the tree and existing PRs for prior work. Confirm any claimed base failure against current origin/main.

Always follow this skill before creating any PR — don't skip steps, especially the compress-critique-fix loop.

Bound a PR's FOOTPRINT — combine work until the branch gets large

Combine work onto one branch while that branch stays under ~50 changed files — count them with git diff --name-only "$CLAUDE_CODE_BASE_REF"...HEAD | wc -l. Past that bound, split. Combining is worth doing because every PR boots the full workflow fan-out (including the long KVM legs) on a shared, account-wide job-slot pool, so two small PRs cost about twice the CI of one, and each one's required checks queue behind the other's long jobs. A large branch touches files the trunk is also touching, so it conflicts before it lands, and each re-resolution spends the whole fan-out again. Measured on 2026-08-21: main took 166 merges in 24 hours across 256 distinct files, at a median of 13 files per merge. A 384-file branch in that backlog re-conflicted faster than its own checks could finish.

  • Combine when: the branch stays under the bound AND any one of these holds — the changes are coupled, a reviewer would read them together anyway, their tests share fixtures, or they surfaced from the same task (canonical case: a broad audit's findings). One PR, one CI run, one changelog-fragment set, presented as labeled partitions.
  • A SMALL change does not get its own PR. Small is under ~50 changed lines across ~3 files. Give it its own commit on a PR this session already has open: a sibling from the same task first, any other otherwise. A sibling PR a sub-agent opened for you counts. With none open, hold it and open one PR once the branch carries about four, one commit each. They do not have to be related.
  • A docs(…)-only change folds into the PR this session already has open, whatever its subject — a doc page, a README.md line, a code comment, a rule, a skill. Give it its own commit. Being unrelated to the rest of the diff is not what makes a docs change standalone.
  • Either one ships alone in these cases only:
    • Folding it in would push the branch past the bound above.
    • It must land now — a red on main, a fix a waiting PR needs, a revert.
    • It moves a budget, ceiling, threshold or floor, or an INVARIANT: comment restating one. Root CLAUDE.md § Guard budget keeps that off a PR about something else.
    • The documentation IS the task the user gave — a README.md rewrite, a new page they asked for.
    • The session has no open PR of its own, and holding it would leave it undelivered at the session's end.
  • Split when: the branch would pass ~50 files, a change must land or iterate on its own timeline, or the diff is too large to review coherently. Independence alone is still not a reason to split.
  • Exceed the bound when: the change cannot be cut into independently valid pieces — a rename and its call sites. Splitting that opens PRs that do not build on their own, so it stays whole.

Read the full file on GitHub · 280 lines

Files

What ships with it

2 files 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 73d51ebc8454
  2. 6d ago Changed 06c260d2844a
  3. 11d ago Changed d2ab352f6c78
  4. 12d ago Changed · +5 lines 41c6f9a354f5
  5. 14d ago Changed afa1c7b37700
  6. 15d ago Changed d67d674c44f2
  7. 19d ago Changed 3d418201b142
  8. 22d ago Changed 873d8a6ac40d
  9. 23d ago Changed 0dd4ada6c6b5
  10. 24d ago First seen · 275 lines · 176 tokens per session scan B 9b6560903897

Subscribe to this mod's changes

pr-creation is a skill published in the GitHub repository AlexanderMattTurner/agent-glovebox (68 stars, last pushed today), licensed Apache-2.0. It adds 176 tokens to every session and 11,717 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.