kotadb: Command for Claude Code

.claude/commands/git/pull_request.md

pull_request is a command for Claude Code from jayminwest/kotadb. It costs 0 tokens per session (1,629 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

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

Reuse

Borrowing it

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

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 pull_request

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jayminwest/kotadb/pull_request"><img src="https://agentmods.dev/badge/commands/jayminwest/kotadb/pull_request.svg" alt="Reviewed on agentmods" width="80" 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 1,629 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.00000 $0.01629
Opus 5.5 $0.00000 $0.00652
Sonnet 5.5 $0.00000 $0.00326
Haiku 4.5 $0.00000 $0.00163

Measured 1mo ago against content hash 5c398bf1c9d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/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. → develop → main).
  • 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. 1mo 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 (100 stars, last pushed 6mo 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.