git-add-commit-push

git-add-commit-push is a skill for Claude Code, Codex from fmind/dot. It costs 45 tokens per session (741 once invoked), scanned A, original, MIT.

A guide for staging, committing, and pushing Git changes, including commits that follow a standard message format.

In plain words
What is it for?
Use it to save local changes in Git, pass formatting and tests, create a conventional commit, and publish the branch to its remote repository.
Why use it?
It handles common checks before commits and pushes, and provides a process for fixing hook failures instead of leaving the work half-finished.

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/fmind/dot/git-add-commit-push
Any agent
npx skills add fmind/dot --skill git-add-commit-push
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/git-add-commit-push.svg)](https://agentmods.dev/skills/fmind/dot/git-add-commit-push)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/git-add-commit-push"><img src="https://agentmods.dev/badge/skills/fmind/dot/git-add-commit-push.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 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.00045 $0.00741
Opus 5 $0.00023 $0.00370
Sonnet 5 $0.00009 $0.00148
Haiku 4.5 $0.00005 $0.00074

Measured yesterday against content hash 17e5adc83d82, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-add-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 yesterday.

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-add-commit-push/SKILL.md · 53 lines

How it starts

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

Git Add, Commit, and Push

Stage, commit, and push in one flow, healing lefthook pre-commit and pre-push failures on the way; conventional-commit owns the subject grammar.

Workflow

  1. Pick the branch: git branch --show-current. Direct commits to main are the rule for github.com/fmind/*; elsewhere, or for a requested PR flow, branch first with feature-branch.

  2. Stage: git diff --cached --name-only shows what is staged; if nothing is, git status --short shows the unstaged changes to add with git add. A clean tree ends the flow: say so and stop.

  3. Write the subject with the conventional-commit rules, but do not run its commit step: this skill commits and heals hook failures itself.

  4. Commit and heal pre-commit:

    git commit -m "<subject>"
    

    On a hook failure, read its output, run mise run format and mise run check, fix type or compile errors, git add the touched files, and retry with the same subject until it passes or a blocker needs the user.

  5. Push and heal pre-push:

    git push -u origin "$(git branch --show-current)"
    

    On a mise run test failure, read the runner output, fix the code or tests, git add the fix, fold it in with git commit --amend --no-edit, and retry until the push passes or a blocker needs the user.

  6. Report after a successful push:

    Subject: <subject>
    Commit: <hash>
    Status: Pushed to origin/<branch>
    

Gotchas

  • Hooks are the gate: Do not use --no-verify or bypass hooks unless the user explicitly asks; diagnose and fix the failure instead.
  • One commit per push: amend hook fixes into the pending commit before pushing; never amend a commit that already reached the remote.
  • Rejected push: branch protection on main means the repository wants a PR flow; switch to feature-branch and github-pull-request.

Read the full file on GitHub · 53 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. yesterday First seen · 53 lines · 45 tokens per session scan A 17e5adc83d82

Subscribe to this mod's changes

git-add-commit-push is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 741 once invoked, about $0.0002 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-09-03.