sumulige-claude: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from sumulige/sumulige-claude. It costs 8 tokens per session (322 once invoked), scanned A, original, MIT.

A command that creates or updates a GitHub pull request, the page used to propose code changes for review. It checks the current branch and changes, prepares a description with testing and review information, and reports the pull request and CI status.

In plain words
What is it for?
Use it to open a pull request for the current branch, update an existing one after checking with you, and inspect its automated checks.
Why use it?
It gathers the information reviewers need and avoids duplicating an existing pull request. It also makes the testing and documentation checklist explicit.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

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

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/sumulige/sumulige-claude/pr/github.svg)](https://agentmods.dev/commands/sumulige/sumulige-claude/pr)
Your own site
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/pr"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/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 pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/pr"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 322 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.00008 $0.00322
Opus 5.5 $0.00003 $0.00129
Sonnet 5.5 $0.00002 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured 1mo ago against content hash af8dac578cbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/pr.md · 77 lines

What it actually says

Create or update a pull request with proper documentation.

Step 1: Check Current State

git status
git log -5 --oneline
git branch --show-current

Step 2: Check for Existing PR

gh pr list --head $(git branch --show-current)

Step 3: Create PR (if none exists)

Analyze Changes

# Get commit history since branch from main/master
git diff $(git merge-base main HEAD)..HEAD --stat

# Get detailed diff
git diff $(git merge-base main HEAD)..HEAD

Create PR with Template

Use gh pr create with:

## Summary

<!-- 2-3 bullet points describing the main changes -->

## Changes

<!-- Detailed list of changes -->

## Test Plan

- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing completed
- [ ] Documentation updated

## Checklist

- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Comments added to complex code
- [ ] Documentation updated
- [ ] No new warnings generated

Step 4: Update PR (if exists)

If PR already exists, ask user if they want to:

  • Update description
  • Add comments
  • Request review
  • Merge if ready

Step 5: Show Result

Display PR URL and check CI status:

gh pr checks
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. 1mo ago First seen · 77 lines · 8 tokens per session scan A af8dac578cbc

Subscribe to this mod's changes

pr is a command published in the GitHub repository sumulige/sumulige-claude (1 stars, last pushed 8mo ago), licensed MIT. It adds 8 tokens to every session and 322 once invoked, about $0.0000 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-08-31.