commit-push-pr

A command for committing local code changes to Git, sending them to a remote repository, and opening a pull request for review.

In plain words
What is it for?
Use it after making changes when you want to stage files, create a commit, push the branch, and open either a normal or draft pull request.
Why use it?
It brings the repeated steps of preparing a change for team review into one workflow, including commit-message conventions and optional ticket references.

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/ibrain-bvba/gutt-claude-code-plugin/commit-push-pr
Clone the repo
git clone --depth 1 https://github.com/iBrain-BVBA/gutt-claude-code-plugin

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 713 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.00713
Opus 5 $0.00000 $0.00357
Sonnet 5 $0.00000 $0.00143
Haiku 4.5 $0.00000 $0.00071

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

Security

Grade A, and why

commit-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 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/commit-push-pr.md · 132 lines

How it starts

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

Commit, Push, and PR Command

/commit-push-pr - Commit changes, push to remote, and create a pull request.

Usage

/commit-push-pr [PROJ-XXX]           # With ticket reference
/commit-push-pr                       # Will prompt for details
/commit-push-pr --draft              # Create as draft PR

Workflow

Step 1: Check Memory for Commit Standards

search_memory_nodes(query="commit message format git workflow", entity="WorkingAgreement", max_nodes=5)

Step 2: Stage Changes

git status
git add -A  # Or selective staging

Step 3: Create Commit Message

Format: type(scope): PROJ-XXX message

Type Use When
feat New feature
fix Bug fix
refactor Code restructure, no behavior change
docs Documentation only
test Adding/fixing tests
chore Maintenance, deps, config
style Formatting, no code change

Examples:

feat(auth): PROJ-123 Add OAuth2 token refresh
fix(api): PROJ-456 Handle null response in user endpoint
refactor(db): PROJ-789 Extract connection pooling logic

Step 4: Commit and Push

git commit -m "type(scope): PROJ-XXX message"
git push -u origin [branch-name]

Step 5: Create Pull Request

create_pull_request(
    owner="[owner]",
    repo="[repo]",
    title="type(scope): PROJ-XXX Brief description",
    body="""
## Summary
[What this PR does]

## Ticket
[PROJ-XXX](https://your-tracker.example.com/browse/PROJ-XXX)

## Changes
- [Change 1]
- [Change 2]

## Testing
- [ ] Unit tests pass
- [ ] Manual testing done

## Screenshots (if UI)
[Add screenshots]
""",
    head="[branch-name]",
    base="main",
    draft=False
)

Step 6: Link PR to Ticket (Optional)

If using Jira integration, add a comment to the ticket with the PR link:

Read the full file on GitHub · 132 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 · 132 lines · 0 tokens per session scan A 86f6ca78b13f

Subscribe to this mod's changes

commit-push-pr is a command published in the GitHub repository iBrain-BVBA/gutt-claude-code-plugin (4 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 713 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-31.