git-push

git-push is a skill for Claude Code, Codex from mir-am/skills-agents-ai-coding. It costs 17 tokens per session (2,356 once invoked), scanned A, original, MIT.

A Git workflow skill for sending commits from a feature branch to a remote repository and keeping an open GitHub pull request up to date. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
It is for pushing unpushed feature-branch commits, updating significant changes in the pull request, and adjusting its linked changelog entry when the overall scope changes.
Why use it?
It removes the repeated checks and manual edits needed after adding commits to a pull request.

Skill for Claude CodeCodex

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 skills/mir-am/skills-agents-ai-coding/git-push
Any agent
npx skills add mir-am/skills-agents-ai-coding --skill git-push
Clone the repo
git clone --depth 1 https://github.com/mir-am/skills-agents-ai-coding

Made for: Claude Code, Codex.

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/skills/mir-am/skills-agents-ai-coding/git-push.svg)](https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/git-push)
Your own site
<a href="https://agentmods.dev/skills/mir-am/skills-agents-ai-coding/git-push"><img src="https://agentmods.dev/badge/skills/mir-am/skills-agents-ai-coding/git-push.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,356 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.00017 $0.02356
Opus 5 $0.00009 $0.01178
Sonnet 5 $0.00003 $0.00471
Haiku 4.5 $0.00002 $0.00236

Measured 4d ago against content hash 49ba255e37af, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

skills/git-push/SKILL.md · 199 lines

How it starts

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

What I do

  • Push new local commits on a feature branch to the remote
  • Detect if an open PR exists for the current branch
  • Update the PR's "Changes" section only when the push adds significant new functionality
  • Update the existing PR-linked CHANGELOG.md entry only when the PR's high-level scope materially changes, using the PR URL in the changelog bullet, then commit that changelog change to the same branch before pushing
  • Skip PR updates for commits that fix bugs or mistakes from earlier commits in the same branch
  • Preserve the existing PR Summary while appending new change entries

When to use me

Use this skill when the user asks to push commits and/or update the PR with the latest changes.

Prerequisites

  • Must be on a feature branch (not master/main)
  • Branch must have unpushed commits ahead of remote
  • GitHub CLI (gh) must be installed and authenticated
  • If gh not installed → error: "GitHub CLI not found. Install: https://cli.github.com/"

Validation Workflow

  1. Check current branch: git branch --show-current
  2. If on master or main → error: "Error: Cannot push directly to master/main. Switch to a feature branch."
  3. Check for unpushed commits:
    git log origin/<branch>..HEAD --oneline
    
  4. If no unpushed commits → inform user: "Nothing to push — branch is up-to-date with remote."

Push Workflow

  1. Check if branch exists on remote:
    git ls-remote --heads origin <branch-name>
    
  2. If the branch already exists on remote, treat the next push as the final push for this batch of local commits
  3. If the branch does not exist on remote yet, push it first:
    git push -u origin <branch-name>
    
  4. Only run pre-push PR detection, PR body updates, and changelog sync when the remote branch already exists and an open PR can already be associated with it
  5. If the branch was just published and a later changelog sync creates a dedicated CHANGELOG.md commit, push a second time so that new changelog commit reaches the same branch
  6. If the branch already existed on remote, finish with the normal push:
    git push
    

Read the full file on GitHub · 199 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. 4d ago First seen · 199 lines · 17 tokens per session scan A 49ba255e37af

Subscribe to this mod's changes

git-push is a skill published in the GitHub repository mir-am/skills-agents-ai-coding (2 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 2,356 once invoked, about $0.0001 per session on Opus 5. 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.

Related

Other skills, from other repositories