claude-looper: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from jujunjun110/claude-looper. It costs 14 tokens per session (799 once invoked), scanned A, original, MIT.

A workflow command for turning current code changes into a GitHub pull request, a request for teammates to review and merge changes. It checks the work, creates or selects a feature branch, commits changes, pushes the branch, and prepares the request.

In plain words
What is it for?
Use it to prepare a feature branch, run type checks, linting, and tests for code changes, check for conflicts with develop, and open a pull request.
Why use it?
It replaces a long sequence of branch, test, commit, push, and pull-request steps. It also asks for the purpose of the change when that purpose is unclear.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Reuse

Borrowing it

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

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/jujunjun110/claude-looper/pr/github.svg)](https://agentmods.dev/commands/jujunjun110/claude-looper/pr)
Your own site
<a href="https://agentmods.dev/commands/jujunjun110/claude-looper/pr"><img src="https://agentmods.dev/badge/commands/jujunjun110/claude-looper/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/jujunjun110/claude-looper/pr"><img src="https://agentmods.dev/badge/commands/jujunjun110/claude-looper/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 799 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.00014 $0.00799
Opus 5 $0.00007 $0.00400
Sonnet 5 $0.00003 $0.00160
Haiku 4.5 $0.00001 $0.00080

Measured today against content hash 92b29c801a14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • pr — 89% identical, 6 lines differ
.claude/commands/pr.md · 50 lines

What it actually says

現在の状況

  • 現在のブランチ: !git branch --show-current
  • 変更ファイル: !git status --short
  • 追加の指示: $ARGUMENTS

タスク

以下の手順でPRを作成してください:

  1. 現在の状態を確認: git statusgit diff で変更内容を確認し、PRに含める変更を把握する。変更がない場合はユーザーに報告して終了する。

  2. 目的(Why)の明確化: このPRが必要な理由を明確にする。以下のいずれかの形式で言語化できるようにする:

    • 「(対象者)が(困っている状態)を解消するため」
    • 「(対象者)が(嬉しい状態)になるため」

    目的が明確でない場合は、必ずユーザーに質問して確認を取ること。PRのdescriptionに目的として記載する。

  3. ブランチ決定:

    • 現在のブランチがdevelopやmainの場合: 変更内容に基づいて適切なブランチ名を自分で決定し、新しいブランチを作成してチェックアウトする(例: feature/add-dark-mode, fix/login-error, refactor/auth-logic
    • 既にフィーチャーブランチにいる場合: 変更内容がブランチ名と合致していればそのまま使用する。合致していない場合はdevelopから新しいブランチを作成して変更を持ち越す
  4. 品質チェック: ソースコード(.ts.tsx.js.jsxファイル)への変更がある場合のみ、プロジェクトルートで以下を実行する。ドキュメントや設定ファイルのみの変更の場合はスキップ可。

    • npm run typecheck
    • npm run lint
    • npm test
    • pnpm knip(未使用コード検出) エラーがあれば修正してから次に進む。
  5. コミット: 変更内容を確認し、適切なコミットメッセージでコミットする。コミットメッセージは変更内容を反映した簡潔なものにする。

  6. コンフリクト確認: git fetch origin して、developとのマージ可能性を確認する(bash -c 'git merge-tree $(git merge-base HEAD origin/develop) HEAD origin/develop' でコンフリクトの有無を確認)。コンフリクトがある場合はユーザーに報告し、続行するか確認を取る。

  7. プッシュ: リモートにプッシュする(git push -u origin <branch-name>

  8. PR作成: gh pr create でPRを作成する。--base オプションは付けない(デフォルトのベースブランチを使用)。

  9. 完了報告: 作成したPRのURLを報告する。

注意事項

  • developやmainへの直接pushは禁止。
  • Prismaのマイグレーションを含む場合は、PRを出す前にユーザーに確認を取る。
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. today First seen · 50 lines · 14 tokens per session scan A 92b29c801a14

Subscribe to this mod's changes

pr is a command published in the GitHub repository jujunjun110/claude-looper (34 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 799 once invoked, about $0.0001 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-09-11.