git-commit-push

git-commit-push is a skill for Claude Code from Abilityai/cornelius. It costs 19 tokens per session (785 once invoked), scanned A, original, MIT.

A guided Git workflow for staging changes, creating a commit, and sending it to a remote repository such as GitHub.

In plain words
What is it for?
Use it when you are ready to save local code changes in Git history and upload them to the configured remote repository.
Why use it?
It helps prevent accidental commits by showing the changes and requesting approval before pushing them.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it when you are ready to save local code changes in Git history and upload them to the configured remote repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abilityai/cornelius/git-commit-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.

Any agent
npx skills add Abilityai/cornelius --skill git-commit-push
Clone the repo
git clone --depth 1 https://github.com/Abilityai/cornelius

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abilityai/cornelius/git-commit-push"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/git-commit-push.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 785 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00019 $0.00785
Opus 5.5 $0.00008 $0.00314
Sonnet 5.5 $0.00004 $0.00157
Haiku 4.5 $0.00002 $0.00078

Measured 1mo ago against content hash ee8af40a0a45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-commit-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 1mo 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/skills/git-commit-push/SKILL.md · 151 lines

How it starts

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

Git Commit and Push

Commit and push changes to the remote repository. Shows diff for approval before committing.

Purpose

Safely commit and push all staged and unstaged changes to the remote repository. Presents changes for review before committing to prevent accidental commits.

State Dependencies

Source Location Read Write Description
Git status .git/ X Current repo state
Working directory ./ X Modified files
Remote repository origin X Push destination

Prerequisites

  • Git repository initialized
  • Remote origin configured
  • Changes to commit (untracked or modified files)

Process

Step 1: Check Repository State

# Show current branch
git branch --show-current

# Check if there are changes to commit
git status --short

If no changes, inform user and exit.

Step 2: Review Changes (APPROVAL GATE)

Present the changes for review:

# Show summary of changes
git status

# Show detailed diff of modified files (not untracked)
git diff

# Show staged changes if any
git diff --cached

Ask user:

  1. Show the list of files that will be committed
  2. Ask for commit message (suggest based on changes)
  3. Confirm before proceeding

Use AskUserQuestion with options:

  • "Commit all changes" (Recommended)
  • "Select specific files"
  • "Cancel"

Step 3: Stage and Commit

Based on user choice:

If "Commit all changes":

# Stage all changes
git add -A

# Commit with user-provided message
git commit -m "$(cat <<'EOF'
[commit message here]

Co-Authored-By: Claude Opus 4.5 <[email protected]>
EOF
)"

If "Select specific files":

  • Ask which files to stage
  • Stage only those files
  • Commit

Step 4: Push to Remote

# Push to current branch's upstream
git push

# If no upstream, push with -u flag
git push -u origin $(git branch --show-current)

Step 5: Verify

# Confirm push succeeded
git log --oneline -1

# Show remote status
git status

Read the full file on GitHub · 151 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. 1mo ago First seen · 151 lines · 19 tokens per session scan A ee8af40a0a45

Subscribe to this mod's changes

git-commit-push is a skill published in the GitHub repository Abilityai/cornelius (110 stars, last pushed 8d ago), licensed MIT. It adds 19 tokens to every session and 785 once invoked, about $0.0001 per session on Opus 5.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-30.