git-push

git-push is a command for Claude Code from georgekhananaev/claude-skills-vault. It costs 0 tokens per session (969 once invoked), scanned A, original, MIT.

A command for safely pushing Git commits to a remote repository. Git is a tool for tracking code changes, and a remote repository is the shared online copy of that code.

In plain words
What is it for?
Use it to push a branch after checking its working tree, remote status, unreleased changes, and required version bump.
Why use it?
It checks for uncommitted work, confirms there are commits to push, and handles changelog-based version selection when needed.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit Use it to push a branch after checking its working tree, remote status, unreleased changes, and required version bump.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/georgekhananaev/claude-skills-vault/git-push
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.

Clone the repo
git clone --depth 1 https://github.com/georgekhananaev/claude-skills-vault

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/georgekhananaev/claude-skills-vault/git-push/github.svg)](https://agentmods.dev/commands/georgekhananaev/claude-skills-vault/git-push)
Your own site
<a href="https://agentmods.dev/commands/georgekhananaev/claude-skills-vault/git-push"><img src="https://agentmods.dev/badge/commands/georgekhananaev/claude-skills-vault/git-push/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 git-push

Your own site · 80×15
<a href="https://agentmods.dev/commands/georgekhananaev/claude-skills-vault/git-push"><img src="https://agentmods.dev/badge/commands/georgekhananaev/claude-skills-vault/git-push.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 969 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.00969
Opus 5 $0.00000 $0.00485
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

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

Security

Grade A, and why

git-push 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 10d 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-push.md · 123 lines

How it starts

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

Push Command

IMPORTANT: This command ONLY runs when explicitly invoked via /git-push. Do NOT auto-push after commits or modifications. Wait for user to explicitly run /push.

Goal: Safe git push with pre-push checks, commit integration, and changelog versioning.

1. Pre-Push Checks

Step 1: Check Uncommitted Changes

git status --porcelain

If output not empty (uncommitted changes exist):

  • Ask user: "You have uncommitted changes. Run /git-commit first?"
  • If YES: Execute commit command via .claude/commands/git-commit.md, then continue
  • If NO: Abort push with message "Push cancelled - uncommitted changes exist"

Step 2: Check Remote Differences

git fetch origin
git log origin/$(git branch --show-current)..HEAD --oneline

If no commits ahead of origin:

  • Inform user: "Nothing to push - branch is up to date with origin"
  • Exit

2. Version Bump & Changelog

Step 1: Check for Unreleased Changes

  • Read CHANGELOG.md and check if ## [Unreleased] section has content
  • If empty: Skip version bump, proceed directly to push
  • If has content: Continue to version selection

Step 2: Ask User for Version Bump

Use AskUserQuestion tool to prompt user:

Question: "Which version bump for this release?"
Options:
- Patch (+0.0.1) - Bug fixes, minor updates (Recommended)
- Minor (+0.1.0) - New features, backwards compatible
- Major (+1.0.0) - Breaking changes
- Skip - Don't create release, push as-is

Based on selection:

  • Patch: Increment last number (1.0.0 → 1.0.1)
  • Minor: Increment middle, reset last (1.0.5 → 1.1.0)
  • Major: Increment first, reset others (1.2.3 → 2.0.0)
  • Skip: Proceed to push without versioning

Step 3: Update CHANGELOG.md (if version selected)

  1. Replace ## [Unreleased] content with versioned release
  2. Add today's date in format YYYY-MM-DD
  3. Create new empty ## [Unreleased] section above

Read the full file on GitHub · 123 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. 10d ago First seen · 123 lines · 0 tokens per session scan A fe88d1a09065

Subscribe to this mod's changes

git-push is a command published in the GitHub repository georgekhananaev/claude-skills-vault (28 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 969 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.