commit-push-pr

A command that commits current changes, pushes the feature branch to GitHub, and opens a pull request using the GitHub command-line tool.

In plain words
What is it for?
Use it to prepare a feature branch, create a Conventional Commit, push it with upstream tracking, and open a pull request with a summary and test checklist.
Why use it?
It gathers the delivery steps in one workflow while checking for likely secrets, running project hooks, and recording how the changes were tested.

Command for Cursor

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/webhook-co/webhook/commit-push-pr
Clone the repo
git clone --depth 1 https://github.com/webhook-co/webhook

Made for: Cursor.

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 473 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.00473
Opus 5 $0.00000 $0.00236
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00047

Measured yesterday against content hash e1f1f2d73890, 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 yesterday.

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.

.cursor/commands/commit-push-pr.md · 31 lines

What it actually says

/commit-push-pr

Commit the current work, push the feature branch, and open a pull request with a summary and a test-plan checklist. Uses the GitHub CLI (gh).

How to run

  1. Commit following /commit exactly — match Conventional Commits style, refuse likely-secret files (.env, credentials, keys, account/zone IDs), and let husky run. If the pre-commit hook fails, fix the root cause and commit again.
  2. Branch. If I'm on main/master, create a feature branch first (e.g. feat/<short-slug>); never commit feature work straight onto the default branch.
  3. Push the feature branch with upstream tracking (git push -u origin HEAD). Let the pre-push hook run its affected tests.
  4. Open the PR with gh pr create, passing the body via a heredoc:
    • Summary — what changed and why (1–3 bullets).
    • Test plan — a checklist of how it was/should be verified, including any surfaces touched (CLI / API / web / MCP) and parity follow-ups.
    • Human verification — an explicit checklist item for anything needing human UI/UX/copy review.
  5. Return the PR URL.

Hard rules (non-negotiable)

  • Never git commit --no-verify or git push --no-verify; never skip or disable husky hooks. If a hook fails, fix the root cause and make a new commit — don't force a green.
  • Never add .only/.skip/disabled tests or lower coverage to pass. The local hooks are a convenience; CI required checks are the real gate and have no bypass for anyone, including admins.
  • Never force-push to main/master. Don't push secrets or files with account/zone IDs.
  • Human-UI-testing hard stop. If the change includes UI/visual/copy that a human must verify, say so plainly in the PR and do not treat the PR as done or mergeable until a human has checked it.
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. yesterday First seen · 31 lines · 0 tokens per session scan A e1f1f2d73890

Subscribe to this mod's changes

commit-push-pr is a command published in the GitHub repository webhook-co/webhook (0 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 473 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.