configuring-git-hygiene

configuring-git-hygiene is a skill for Claude Code, Codex from alexei-led/cc-thingz. It costs 111 tokens per session (1,035 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 1,035 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.01035
Opus 5 $0.00056 $0.00517
Sonnet 5 $0.00022 $0.00207
Haiku 4.5 $0.00011 $0.00103

Measured 9d ago against content hash 121c912e4711, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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 · 114 lines

How it starts

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

Configure Git Hygiene

Set up project-local git hygiene. Keep hooks fast enough to stay enabled. Do not overwrite hooks, change global config, remove tracked files, or install tools without user approval.

Scope

Use this skill for:

  • Git hook setup or migration to a project hooks directory.
  • Staged-file pre-commit checks.
  • Full pre-push validation.
  • Gitleaks secret scanning.
  • .gitignore rules and tracked-file cleanup.
  • Local git config such as core.hooksPath, includeIf, signing, pull behavior, and pruning.

Do not use this skill for:

  • Commit grouping or commit messages — use committing-code.
  • Worktree creation — use using-git-worktrees.
  • Branch/worktree cleanup — use cleanup-git.

Step 1: Inspect Current State

Run read-only checks first:

git rev-parse --show-toplevel
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

If a hook framework already exists, extend it. Do not replace it.

Step 2: Load Focused References

  • Hook files or core.hooksPath changes: read hooks.md.
  • Gitleaks setup or secret scanning: read gitleaks.md.
  • .gitignore or git rm --cached: read gitignore.md.

Step 3: Propose Before Editing

State current facts, proposed files/config, verification, and risks. Ask before:

  • writing or replacing hook files
  • running git config --local or any global config command
  • running chmod
  • running git rm --cached
  • choosing skip-vs-fail behavior for missing tools

Step 4: Apply Safely

Rules:

  • Prefer existing project convention, then pre-commit, then project-local core.hooksPath.
  • Use project-local config for shared repos: git config --local core.hooksPath scripts/git-hooks.
  • Keep pre-commit staged/affected-file only; do not run full tests, full builds, installs, or network calls there.
  • Put full build/test/type/lint validation in pre-push.
  • Redact secret-scan output. Never paste secret values into external tools.
  • Use narrow .gitignore patterns derived from actual artifacts.
  • Do not auto-commit from hooks unless the project already has that convention.

Read the full file on GitHub · 114 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. 9d 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 (35 stars, last pushed 1mo ago), licensed MIT. It adds 111 tokens to every session and 1,035 once invoked, about $0.0006 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-30.