pull_request

A command that opens a GitHub pull request after implementation is finished and validated. It returns only the new pull request's web address.

In plain words
What is it for?
Use it after commits are ready and the working tree is clean to create a pull request from the implementation branch, issue details, plan file, and agent-work identifier.
Why use it?
It provides a predictable handoff from completed work to code review and avoids mixing status text with the URL that other automation may need.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jayminwest/kotadb/pull_request
Clone the repo
git clone --depth 1 https://github.com/jayminwest/kotadb

Made for: Claude Code.

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 1,629 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 $0.00000 $0.01629
Opus 5 $0.00000 $0.00814
Sonnet 5 $0.00000 $0.00326
Haiku 4.5 $0.00000 $0.00163

Measured 2d ago against content hash 5c398bf1c9d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pull_request 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 2d 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/git/pull_request.md · 141 lines

How it starts

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

/pull_request

Template Category: Path Resolution

Open a GitHub pull request as soon as implementation work is complete and validated.

Variables

  • branch_name: $1
  • issue_json: $2
  • plan_file: $3 (relative path within .claude/.cache/specs/)
  • adw_id: $4

CRITICAL: Output Format Requirements

Return ONLY the PR URL as plain text on a single line.

DO NOT include:

  • Explanatory text (e.g., "Successfully created pull request!", "The PR is ready for review")
  • Markdown formatting (no bold, no ``` blocks)
  • Multiple lines or additional commentary
  • PR metadata (title, description, etc.)

Correct output:

https://github.com/user/kota-db-ts/pull/123

INCORRECT output (do NOT do this):

Successfully created pull request!

PR URL: https://github.com/user/kota-db-ts/pull/123

The pull request is now ready for review. It includes validation evidence and anti-mock compliance notes.
**Pull Request Created**

https://github.com/user/kota-db-ts/pull/123

Preconditions

  • Working tree is clean (git status --short empty) and the current branch matches <branch_name>.
  • All commits for the issue exist locally and remotely (feat/, bug/, chore/, etc. → developmain).
  • Commit messages validated: All commit messages follow Conventional Commits format (verified by validation system)
  • Staged files verified: All files mentioned in plan are properly staged (verified by validation system)
  • Level 2 or higher validation from /validate-implementation has been rerun with passing results captured for the PR body.
  • Anti-mock evidence is ready: note which real-service suites ran, data seeded, and any temporary skips with follow-up issues.
  • Plan document and issue references are up to date with final status and validation notes.

Preparation Checklist

  1. git branch --show-current – verify you are on <branch_name>.
  2. git fetch --all --prune – make sure remotes are current.
  3. git status --short – confirm no unstaged or untracked files remain.
  4. git log origin/develop..HEAD --oneline – review commits that will ship.
  5. Verify commit messages: Review commit messages with git log --oneline to ensure Conventional Commits format
  6. Verify PR description: Ensure validation evidence section is complete with actual command output
  7. gh pr status – ensure the branch does not already have an open PR.
  8. Re-run the selected validation level; fix issues immediately before continuing.

Read the full file on GitHub · 141 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. 2d ago First seen · 141 lines · 0 tokens per session scan A 5c398bf1c9d3

Subscribe to this mod's changes

pull_request is a command published in the GitHub repository jayminwest/kotadb (102 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,629 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-08-30.