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/orlando-japan/claude-code-setting/git-clean-commit-guardnpx skills add orlando-japan/claude-code-setting --skill git-clean-commit-guardgit clone --depth 1 https://github.com/orlando-japan/claude-code-settingWhat 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.00043 | $0.00504 |
| Opus 5 | $0.00022 | $0.00252 |
| Sonnet 5 | $0.00009 | $0.00101 |
| Haiku 4.5 | $0.00004 | $0.00050 |
Grade A, and why
git-clean-commit-guard 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 2d 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.
What it actually says
Git clean commit guard
A good commit starts before the message. This skill is the pre-commit hygiene pass: reduce staging noise, isolate one logical change, and catch the files that should never ride along.
What this skill does
It does not write the final commit message. It prepares the diff so a later commit or review step can succeed.
Guard workflow
- Inspect the repo state
git statusgit diffgit diff --staged
- Split logical changes
- If the diff mixes unrelated work, stop and split it before committing
- Remove accidental files
- local config
- generated artifacts
- debug output
- unrelated lockfile churn
- credentials / secrets
- Check commit scope integrity
- Bug fix + test together is fine
- Feature + refactor + docs usually needs separation
- Propose explicit staging
- Prefer file-by-file
git add <path> - Avoid blanket staging commands
- Prefer file-by-file
Things that should trigger a block
.env, credentials, tokens, keys, passwords- build output or generated snapshots with no clear reason
- staged files unrelated to the stated task
- opportunistic refactors bundled into a fix commit
- a lockfile change without a matching dependency reason
Preferred output
Commit hygiene result: Pass | Pass with nits | Block
Keep staged:
- <paths>
Unstage / remove:
- <paths>
Reason:
- <scope contamination or safety risk>
Suggested next command set:
- git restore --staged ...
- git add ...
Anti-patterns
- Starting with the commit message — first clean the diff, then name it.
- Using
git add .out of laziness — that is how local junk enters history. - Treating "mostly related" as good enough — future bisect and review quality collapse fast.
- Letting secrets rely on luck — always perform an intentional safety scan.
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.
- 2d ago First seen · 72 lines · 43 tokens per session scan A 469e056416f7
git-clean-commit-guard is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 504 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-08-31.
Other skills, from other repositories
implement
Execute tasks from track plan with TDD workflow and git commit integration.
git-workflow-management
Git workflow automation skill for commit message generation, branch management, pre-commit checks, and change history analysis.
ship-it
Code commit, PR creation, merge, and issue closure workflow via GitHub CLI (gh). Triggers after a goal (GitHub Issue) implementation is complete — commit code, push branch, create PR, merge, then close the issue. Use when the user says "提交代码", "commit and merge", "创建PR", "合入", "关闭issue", "ship-it", or when a goal…
re0-git
Rewrite a finished commit's message into a clean, handoff-ready form in your own log style, so git log alone tells the story. User-invoked: run it after a commit.
git-workflow
Git operations: commits, branches, PRs, and conflict resolution.
gza-task-improve
Address feedback for a gza task inline — reads review findings and/or unresolved comments, checks out the branch, fixes must-fix items and comments, runs verify, and commits.