llmlb: Command for Claude Code

.claude/commands/gwt-pr.md

gwt-pr is a command for Claude Code from akiojin/llmlb. It costs 17 tokens per session (403 once invoked), scanned A, original, MIT.

A command for creating or updating a GitHub pull request, which is a proposed code change submitted for review. It uses GitHub's command-line tool and checks branch state before making the request.

In plain words
What is it for?
Use it to open or update pull requests and keep their branches synchronized with the target branch.
Why use it?
It catches local changes, branches that are behind the target branch, and unsafe merge situations before creating a pull request. It also prepares the request text from provided templates.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

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

Reuse

Borrowing it

Nothing to install: this file belongs to akiojin/llmlb. 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/akiojin/llmlb/develop/.claude/commands/gwt-pr.md
Clone the repo
git clone --depth 1 https://github.com/akiojin/llmlb

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 gwt-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/akiojin/llmlb/gwt-pr/github.svg)](https://agentmods.dev/commands/akiojin/llmlb/gwt-pr)
Your own site
<a href="https://agentmods.dev/commands/akiojin/llmlb/gwt-pr"><img src="https://agentmods.dev/badge/commands/akiojin/llmlb/gwt-pr/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 gwt-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/akiojin/llmlb/gwt-pr"><img src="https://agentmods.dev/badge/commands/akiojin/llmlb/gwt-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 403 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.00017 $0.00403
Opus 5.5 $0.00007 $0.00161
Sonnet 5.5 $0.00003 $0.00081
Haiku 4.5 $0.00002 $0.00040

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

Security

Grade A, and why

gwt-pr 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 8d 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.

.claude/commands/gwt-pr.md · 39 lines

What it actually says

GitHub PR Command

Use this command to draft or update a GitHub PR with the gh CLI.

Usage

/gwt:gwt-pr [optional context]

Steps

  1. Load .claude/skills/gwt-pr/SKILL.md and follow the workflow.
  2. Ensure gh auth status succeeds before running PR commands.
  3. Run the local working tree preflight from the skill (git status --porcelain); if changes exist, confirm with the user before push/PR operations.
  4. Run the branch sync preflight from the skill (git rev-list --left-right --count "HEAD...origin/$base"); if the branch is behind, merge origin/$base into the current branch and push before PR creation.
  5. If that merge produces conflicts, inspect the conflict carefully and only ask the user when it cannot be resolved with high confidence.
  6. When all PRs for the head are merged, validate merge commit ancestry before counting post-merge commits.
  7. If the merge commit is missing or not an ancestor of HEAD, compare origin/<head>..HEAD before any base-branch fallback.
  8. If both upstream and base comparisons fail, stop with MANUAL CHECK; do not create a PR by guesswork.
  9. Generate or update the PR body using the provided templates.
  10. If gh pr create or gh pr edit fails with was submitted too quickly or a secondary rate limit, retry through the REST pull-request endpoint with gh api repos/<owner>/<repo>/pulls.

Examples

/gwt:gwt-pr create draft for current branch
/gwt:gwt-pr update PR body only
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. 8d ago First seen · 39 lines · 17 tokens per session scan A 4e6ec5c8f3e4

Subscribe to this mod's changes

gwt-pr is a command published in the GitHub repository akiojin/llmlb (10 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 403 once invoked, about $0.0001 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-10-21.