AutoComplete: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from bobbylight/AutoComplete. It costs 0 tokens per session (736 once invoked), scanned A, original, BSD-3-Clause.

A workflow for opening or updating a pull request, a proposed code change for review in a Git repository. It covers branches, local builds, reviewing changes, commits, pushing, and the pull request itself.

In plain words
What is it for?
Use it to create a feature branch, run the Gradle build, fix build or quality-check failures, review the diff, commit changes, push them, and open or update a pull request.
Why use it?
It provides a checklist for verifying changes before they are shared and helps avoid submitting code that fails the project's build or checks.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/bobbylight/autocomplete/pr.svg)](https://agentmods.dev/commands/bobbylight/autocomplete/pr)
Your own site
<a href="https://agentmods.dev/commands/bobbylight/autocomplete/pr"><img src="https://agentmods.dev/badge/commands/bobbylight/autocomplete/pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 736 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.1 $0.00000 $0.00736
Opus 5 $0.00000 $0.00368
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00074

Measured yesterday against content hash 31d1bc567332, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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 yesterday.

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/pr.md · 51 lines

How it starts

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

Create a Pull Request

Create a branch (if needed), commit staged/unstaged changes, push, and open/update a PR.

Steps

  1. Check branch status: Run git status and git branch --show-current

    • If on master or main, create a new branch:
      • Analyze the changes to determine a descriptive branch name
      • Use lower-kebab-case (e.g., add-user-authentication, fix-login-bug)
      • Run git checkout -b <branch-name>
    • If already on a feature branch, continue on that branch
  2. Ensure JDK 25 is on the path. This library requires JDK 25 or later to build. Ensure that java --version shows 25 or later. If not, search for Java 25 in common locations for the operating system. If you can't find it, exit early.

  3. Build locally by running ./gradlew clean build. If there are any checkstyle or spotbugs failure, or javac errors, fix them and rerun this check to verify your changes. Don't worry about javac warnings currently - there are 3 that we need to address later, but for now can be ignored.

  4. Review changes: Run git status and git diff to understand what will be committed

  5. Stage and commit:

    • Stage relevant files (prefer specific files over git add -A)
    • Determine the commit strategy:
      • If the feature branch has no prior commits: create a new commit
      • If the feature branch has a prior commit and a draft PR exists (gh pr view --json isDraft): amend the existing commit (git commit --amend)
      • If the feature branch has a prior commit and no PR exists, or the PR is not in draft: create a new commit
    • Write a commit message (or update the existing one if needed) using the conventional commit style
      • Don't read the conventional commit site/URL if you already know the style
      • Use "!" after the type to indicate a breaking change
      • Use "build(deps)" for dependency bumps
    • Include Co-Authored-By: Claude <[email protected]> in the commit message

Read the full file on GitHub · 51 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. yesterday First seen · 51 lines · 0 tokens per session scan A 31d1bc567332

Subscribe to this mod's changes

pr is a command published in the GitHub repository bobbylight/AutoComplete (184 stars, last pushed 10d ago), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 736 tokens. 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-09-04.