Skip to content
Back to skills

Commit Push

ASecurity

Commit and push the current branch in one step after a branch-safety gate. Use on /commit-push when changes are ready to ship, with no PR.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add bravros/bravros --skill commit-push --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit Push?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit Push
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bravros-commit-push/badge)](https://www.skillsdirectory.com/skills/bravros-commit-push)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit-push
core: true
description: Commit and push the current branch in one step after a branch-safety gate. Use on /commit-push when changes are ready to ship, with no PR.
---

# commit-push

INTENT: `/commit` then `/push`, with one branch gate first. Never creates a PR.

HARD CONSTRAINTS:
- Refuse on `main`/`master` **in a PR-gated repo** — there those branches move only via PR (`homolog → main`).
  Every other branch, including `homolog`, is shippable directly.
- **Direct-main repos ship on `main` by design.** `.bravros/config.json` with `police.direct_main: true` (`bravros police direct-main on`, or a `/git-this` personal repo) has no staging branch — commit and push `main` there without ceremony. The gate is a pure binary: `bravros config get police.direct_main` prints `true` → direct-main, ship allowed; anything else (empty, an error, an older CLI reporting an unknown key) → PR-gated, refuse and point to a PR. `staging_branch` is never the discriminator — `config get staging_branch` never prints empty.
- `/commit`'s rules apply in full: emoji format, no secrets staged, no AI signatures (no `Co-Authored-By` trailer). A `Invalid commit message format … Required format: <emoji> <type>: <description>` rejection of a valid scoped message means a stale repo hook → tell the operator and suggest `/update-hooks`; never drop the scope silently to get past it.

Run `/commit`, then `Skill({skill: "push"})` — `/push` is the canonical push primitive.

Report one line — `✅ <emoji> <type>: <subject> — pushed to origin/<branch>` — or the relevant error.

Files in this skill

  • SKILL.md1.6 KB
  • skill.yaml1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.