Agent skill

Git Commit Push

by Abilityai in Abilityai/cornelius

Stage, commit, and push changes to remote repository with approval gate

MITAuto-check: notesDevelopment

Install Git Commit Push

skills CLI
$ npx skills add Abilityai/cornelius --skill git-commit-push -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Abilityai/cornelius git-commit-push --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Abilityai/cornelius.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/git-commit-push .claude/skills/git-commit-push && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-commit-push
GitHub stars
109
Token cost
~793 tokens
SKILL.md length
276 words
Files
1
Skills in repo
56
Repo updated
First seen
Licence
MIT

At a glance

Stage, commit, and push changes to remote repository with approval gate

  • Works in 5 steps: Check Repository State → Review Changes (APPROVAL GATE) → Stage and Commit → …
  • Tasks that involve Commit messages
  • SKILL.md covers Purpose, State Dependencies, Prerequisites and Process, plus 4 more sections
  • Calls git

What it does

Git Commit Push is an agent skill from Abilityai/cornelius. Stage, commit, and push changes to remote repository with approval gate

Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: AI-powered second brain template for Claude Code + Obsidian. The licence is MIT.

When your agent uses it

  • Tasks that involve Commit messages

Example prompts

  • “/git-commit-push”

Requirements

  • Pre-approved tools (allowed-tools): Bash, AskUserQuestion

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Check Repository State
  2. Review Changes (APPROVAL GATE)
  3. Stage and Commit
  4. Push to Remote
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit fd5e9a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Commit Push loads about 793 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 276 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~793

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, AskUserQuestion

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Abilityai/cornelius at commit fd5e9a4, republished under its MIT licence (© Abilityai). 276 words, ~793 tokens.

Download SKILL.mdSave it as .claude/skills/git-commit-push/SKILL.md (or your agent's skills folder).
name
git-commit-push
description
Stage, commit, and push changes to remote repository with approval gate
allowed-tools
Bash, AskUserQuestion
automation
gated
user-invocable
true

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

SourceLocationReadWriteDescription
Git status.git/XCurrent repo state
Working directory./XModified files
Remote repositoryoriginXPush destination

Prerequisites

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

Process

Step 1: Check Repository State
bash
# 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:

bash
# 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":

bash
# 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 <noreply@anthropic.com>
EOF
)"

If "Select specific files":

  • Ask which files to stage
  • Stage only those files
  • Commit
Step 4: Push to Remote
bash
# 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
bash
# Confirm push succeeded
git log --oneline -1

# Show remote status
git status

Completion Checklist

  • Repository state checked
  • Changes reviewed by user
  • Commit message approved
  • Changes committed
  • Pushed to remote
  • Push verified

Error Recovery

ErrorRecovery
No changes to commitInform user, exit gracefully
No remote configuredAsk user to configure: git remote add origin <url>
Push rejected (non-fast-forward)Suggest git pull --rebase first
Authentication failedCheck SSH keys or credentials
Branch protectionInform user, suggest PR workflow

Usage Examples

Basic usage:

/git-commit-push

After a work session:

User: commit and push my changes
Agent: [runs this skill]

Notes

  • Always shows diff before committing (safety gate)
  • Adds Co-Authored-By trailer for AI contributions
  • Does NOT use --force push (safety)
  • Does NOT amend existing commits (safety)

© Abilityai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/git-commit-push of Abilityai/cornelius.

Open the folder on GitHubat commit fd5e9a4

Compare with similar skills

Git Commit Push next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Commit Push compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Commit Push this skillAbilityai/cornelius109—~793Automated safety check: NotesMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT

Similar skills

  • React Router Release Notes Prep

    remix-run/react-router

    Polishes pending React Router change files before the versioning scripts run, and decides whether a long-form What's Changed section is warranted.

    57k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from Abilityai/cornelius

All 56 skills in this repo
  • Nano Banana Image Generator

    Abilityai/cornelius

    Generate images using Google's Nano Banana (Gemini 2.5 Flash Image).

    109 GitHub stars~1.2k tokensUpdated 15 days ago
    Auto-check: notes
  • Changelog Protocol

    Abilityai/cornelius

    Protocol for creating dated changelog files after significant agent sessions.

    109 GitHub stars~555 tokensUpdated 15 days ago
    Auto-check passed
  • Create Article

    Abilityai/cornelius

    Create long-form articles from knowledge base insights. An agent skill from Abilityai/cornelius.

    109 GitHub stars~2.1k tokensUpdated 15 days ago
    Auto-check: notes
  • Epistemic Classification

    Abilityai/cornelius

    Framework for distinguishing research findings from hypotheses and speculative synthesis.

    109 GitHub stars~1.5k tokensUpdated 15 days ago
    Auto-check passed
  • Get Youtube Transcript

    Abilityai/cornelius

    Extract the transcript from a YouTube video by URL or video ID.

    109 GitHub stars~525 tokensUpdated 15 days ago
    Auto-check: notes
  • Insight Capture Format

    Abilityai/cornelius

    Standard format for capturing and documenting insights in the knowledge base.

    109 GitHub stars~616 tokensUpdated 15 days ago
    Auto-check passed

Works with

Categories

Questions about Git Commit Push

What does Git Commit Push do?

Stage, commit, and push changes to remote repository with approval gate. Git Commit Push is an agent skill from Abilityai/cornelius.

When should I use Git Commit Push?

Git Commit Push fits situations like: tasks that involve Commit messages.

How do I install Git Commit Push in Claude Code?

Run `npx skills add Abilityai/cornelius --skill git-commit-push -a claude-code`. Or copy the skill folder (.claude/skills/git-commit-push in Abilityai/cornelius) into .claude/skills/git-commit-push in your project. Claude Code loads it when a task matches its description.

How do I install Git Commit Push in Codex?

Run `npx skills add Abilityai/cornelius --skill git-commit-push -a codex`. Or copy the skill folder (.claude/skills/git-commit-push in Abilityai/cornelius) into .agents/skills/git-commit-push in your project. Codex loads it when a task matches its description.

Can I use Git Commit Push in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Abilityai/cornelius --skill git-commit-push -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-commit-push, .gemini/skills/git-commit-push, .github/skills/git-commit-push and .opencode/skills/git-commit-push in your project.

What does Git Commit Push need to run?

Going by SKILL.md and its folder, Git Commit Push needs the command-line tools its instructions call (git). Its frontmatter pre-approves these tools: Bash, AskUserQuestion.

Does Git Commit Push access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Commit Push safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Git Commit Push use?

Git Commit Push is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Commit Push use?

About 793 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Commit Push?

Skills that share tags, products or a category with Git Commit Push: React Router Release Notes Prep (remix-run/react-router, 57k stars), ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 102k stars) and React Router Pull Request Creator (remix-run/react-router, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Commit Push?

Abilityai (a GitHub organization) maintains it in Abilityai/cornelius, which has 109 GitHub stars. The repository holds 56 skills in this directory. The repository was last updated on September 22, 2026.

Source: Abilityai/cornelius on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.