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.
npx agentmods add skills/fmind/dot/git-add-commit-pushnpx skills add fmind/dot --skill git-add-commit-pushgit clone --depth 1 https://github.com/fmind/dotWrote 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.
[](https://agentmods.dev/skills/fmind/dot/git-add-commit-push)<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>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.
| Model | Per session | Once 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 |
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.
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
-
Pick the branch:
git branch --show-current. Direct commits tomainare the rule forgithub.com/fmind/*; elsewhere, or for a requested PR flow, branch first with feature-branch. -
Stage:
git diff --cached --name-onlyshows what is staged; if nothing is,git status --shortshows the unstaged changes to add withgit add. A clean tree ends the flow: say so and stop. -
Write the subject with the conventional-commit rules, but do not run its commit step: this skill commits and heals hook failures itself.
-
Commit and heal pre-commit:
git commit -m "<subject>"On a hook failure, read its output, run
mise run formatandmise run check, fix type or compile errors,git addthe touched files, and retry with the same subject until it passes or a blocker needs the user. -
Push and heal pre-push:
git push -u origin "$(git branch --show-current)"On a
mise run testfailure, read the runner output, fix the code or tests,git addthe fix, fold it in withgit commit --amend --no-edit, and retry until the push passes or a blocker needs the user. -
Report after a successful push:
Subject: <subject> Commit: <hash> Status: Pushed to origin/<branch>
Gotchas
- Hooks are the gate: Do not use
--no-verifyor 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
mainmeans the repository wants a PR flow; switch to feature-branch and github-pull-request.
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.
- yesterday First seen · 53 lines · 45 tokens per session scan A 17e5adc83d82
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.
Other skills, from other repositories
git-add-commit-push
Stage, commit (Conventional Commits), and push in one flow, auto-healing lefthook pre-commit and pre-push failures. Use when committing and pushing work end-to-end.
lefthook
Canonical lefthook git-hooks setup — pre-commit (format, check, secret scan) and pre-push (test), each delegating to mise run tasks. Use when configuring or debugging git hooks.
conventional-commit
Write a Conventional Commits subject for the staged changes and commit them. Use when committing staged work with a typed, scoped message.
go-stack
Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.
python-stack
Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.
k8s-local
Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.