claude-soul: Command for Claude Code

.claude/commands/push-pr.md

push-pr is a command for Claude Code from tomdwipo/claude-soul. It costs 0 tokens per session (1,110 once invoked), scanned A, original, MIT.

A command for completing a pull-request workflow: commit changes, push a branch, open a pull request, and update a Jira ticket. It accepts a target branch, an optional ticket ID, and optional reviewers.

In plain words
What is it for?
Use it when preparing a branch for review, creating a pull request against a target branch, assigning reviewers, and moving the related Jira ticket forward.
Why use it?
It groups the repeated steps of sending finished work for review and linking it to project tracking, while using the branch name when no ticket ID is supplied.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Reuse

Borrowing it

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

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 push-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/tomdwipo/claude-soul/push-pr.svg)](https://agentmods.dev/commands/tomdwipo/claude-soul/push-pr)
Your own site
<a href="https://agentmods.dev/commands/tomdwipo/claude-soul/push-pr"><img src="https://agentmods.dev/badge/commands/tomdwipo/claude-soul/push-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 1,110 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.01110
Opus 5 $0.00000 $0.00555
Sonnet 5 $0.00000 $0.00222
Haiku 4.5 $0.00000 $0.00111

Measured 8d ago against content hash 937b1ff478d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

push-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 8d 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/push-pr.md · 109 lines

How it starts

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

Push and PR Command

Execute the complete PR workflow: commit all changes, push to remote, create PR, and transition Jira ticket.

Arguments Format

$ARGUMENTS = <target-branch> [ticket-id] [reviewers]

Examples:

  • /push-pr epic/PROJ-1234 - Auto-detect ticket from current branch
  • /push-pr epic/PROJ-1234 PROJ-1240 - Explicit ticket override
  • /push-pr epic/PROJ-1234 PROJ-1240 alice,bob - With reviewers

Workflow Steps

Step 1: Parse Arguments

Extract from $ARGUMENTS:

  • target-branch (required): The destination branch for PR (e.g., epic/PROJ-1234, master)
  • ticket-id (optional): Jira ticket ID. If not provided, extract from current branch name (e.g., task/PROJ-1240PROJ-1240)
  • reviewers (optional): Comma-separated list of reviewer names

Step 2: Git Status Check

Run git status to verify there are changes to commit. If no changes, skip to PR creation if branch has unpushed commits.

Step 3: Commit All Changes

  1. Run git add -A to stage all changes
  2. Generate commit message based on:
    • Jira ticket ID
    • Summary of changed files
    • Use format: feat(<module>): <description>
  3. Commit with a Conventional Commit message (no AI/tool attribution trailer)

Step 4: Push to Remote

Run git push -u origin <current-branch> to push changes to remote.

Step 5: Create Pull Request

Use Bitbucket MCP tool to create PR:

  • workspace: <your-workspace>
  • repoSlug: <your-repo>
  • sourceBranch: Current branch
  • destinationBranch: Target branch from arguments
  • title: Same as the commit message
  • description: Include Jira link, summary, and test plan

Missing Figma references hook — before composing the description, grep the staged AC.md for a ### Figma Reference Notes section. If present and it contains any ⚠️ lines, copy them verbatim into the PR description under a ## Missing Figma References heading (place it BEFORE the test plan so the reviewer sees it on first scroll). Each line names the screen, state, reason, and Figma URL (when known) so the reviewer can open Figma directly. If the section is empty or absent, omit the heading entirely — do not insert an empty block.

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 0 tokens per session scan A 937b1ff478d4

Subscribe to this mod's changes

push-pr is a command published in the GitHub repository tomdwipo/claude-soul (24 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,110 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.