configuring-git-hygiene

configuring-git-hygiene is a skill for Claude Code, Codex from alexei-led/cc-thingz. It costs 111 tokens per session (903 once invoked), scanned A, original, MIT.

A workflow for setting up project-level Git safeguards, such as checks that run before commits or pushes, secret scanning, ignored-file rules, and local Git settings. Git is the version-control system used to track code changes.

In plain words
What is it for?
Use it to configure pre-commit and pre-push checks, Gitleaks secret scanning, .gitignore rules, hook locations, and project-local Git configuration.
Why use it?
It helps catch secrets, unwanted files, and validation failures before they reach the repository. It also makes the project's Git checks and behavior more consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure pre-commit and pre-push checks, Gitleaks secret scanning, .gitignore rules, hook locations, and project-local Git configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexei-led/cc-thingz/configuring-git-hygiene
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 alexei-led/cc-thingz --skill configuring-git-hygiene
Clone the repo
git clone --depth 1 https://github.com/alexei-led/cc-thingz

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 configuring-git-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexei-led/cc-thingz/configuring-git-hygiene/github.svg)](https://agentmods.dev/skills/alexei-led/cc-thingz/configuring-git-hygiene)
Your own site
<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/configuring-git-hygiene"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/configuring-git-hygiene/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 configuring-git-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/configuring-git-hygiene"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/configuring-git-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 903 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.00111 $0.00903
Opus 5.5 $0.00044 $0.00361
Sonnet 5.5 $0.00022 $0.00181
Haiku 4.5 $0.00011 $0.00090

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

Security

Grade A, and why

configuring-git-hygiene 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.

src/skills/configuring-git-hygiene/SKILL.md · 75 lines

How it starts

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

Configure Git Hygiene

Set up project-local hygiene that stays fast enough to keep enabled. Stop if the directory is not a git repo.

Ask first

Propose the plan (current facts, files and config to change, verification, risks) and get approval before you:

  • write, replace, or merge into a hook file;
  • set a git config value (local or global) or run chmod;
  • run git rm --cached;
  • install a tool, or choose whether a hook fails or skips when a tool is missing.

If the repo is dirty, show git status --short and ask before hook or config edits.

When asked for a plan, give the whole plan in one answer. If you have not inspected the repo yet, make the inspection commands below its first step, mark current state as unverified, and still lay out the hook, Gitleaks, or .gitignore changes from the policy and how you will verify them.

Inspect

git status --short
git config --show-origin --get core.hooksPath || true
git config --show-origin --list | rg '^(file:.*\s+)?(user\.|commit\.|tag\.|pull\.|fetch\.|rerere\.|core\.hooksPath|includeIf\.)' || true
git ls-files .gitignore .pre-commit-config.yaml .gitleaks.toml 2>/dev/null || true
ls -la .git/hooks .githooks scripts/git-hooks 2>/dev/null || true

Policy

  • Extend the existing hook framework. Without one, use pre-commit, then a project-local core.hooksPath directory (git config --local core.hooksPath scripts/git-hooks).
  • Pre-commit runs only on staged or affected files: format, lint, touched-config validation, staged Gitleaks scan. No full tests, full builds, installs, or network calls.
  • Pre-push runs the full build, test, type, and lint validation, plus a broader secret scan when practical.
  • Run Gitleaks with --redact, and keep secret values out of chat and external tools.
  • Hooks never auto-commit or restage files unless the repo already does.
  • A hook that blocks legitimate work gets tuned; --no-verify is not the fix.
  • .gitignore patterns come from real artifacts and stay narrow.

Read the full file on GitHub · 75 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -39 lines 64136a71eb65
  2. 2mo ago First seen · 114 lines · 111 tokens per session scan A 121c912e4711

Subscribe to this mod's changes

configuring-git-hygiene is a skill published in the GitHub repository alexei-led/cc-thingz (38 stars, last pushed 4d ago), licensed MIT. It adds 111 tokens to every session and 903 once invoked, about $0.0004 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.