gesmith0606/claude-config-public/pre-commit-wiring
Claude Code and agent skill by gesmith0606/claude-config-public
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Wires the pre-commit framework into a repo so secret scanning (gitleaks), lint, and file-hygiene gates run automatically on every `git commit`. Use when setting up a new repo, onboarding a project to automated checks, or asking "how do I stop secrets from leaking into git history".
Install
npx vskill@latest install gesmith0606/claude-config-public/pre-commit-wiringSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as gesmith0606/claude-config-public/pre-commit-wiring.
Pre-commit Wiring
One job: put a local gate in front of every git commit. The analysis skills (secrets-handling, insecure-defaults, supply-chain-risk-auditor) tell you what to fix — this skill makes the checks run automatically. All hooks execute fully local after an initial download of hook code from their public repos; no code or data is sent outbound. Safe for confidential work with regulated data present.
Install (once per machine)
Then in each repo:
Canonical .pre-commit-config.yaml
Drop this at repo root. Remove the ruff block for non-Python repos.
Refresh all pins in one command (needs network; run periodically):
Per-context selection
| Hook | Every repo | Python repo | Confidential work | |
|---|---|---|---|---|
| gitleaks | ✓ | ✓ | ✓ mandatory | |
| pre-commit-hooks | ✓ | ✓ | ✓ | |
| ruff | — | ✓ | ✓ (Python only) |
Confidential-work rule: never skip gitleaks on any repo that has touched client, regulated, or PII data.
Scanning all files (not just staged)
Run once after wiring an existing repo — catches anything staged or already tracked.
Gitleaks: custom org-specific patterns
For org-specific patterns (internal project codes, identifiers), add .gitleaks.toml:
Then reference it in the hook:
What NOT to add
- CodeQL — uploads code to GitHub. Disqualified for PE-fund repos.
- Dependabot / Renovate — hosted services. Fine on the personal/public NFL repo; not PE repos.
- Semgrep — managed ruleset has a 2024 commercial-use restriction; CE is optional and overkill here.
- trivy — container/image scanning; out of scope for this config.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pre-commit-wiring/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gesmith0606/claude-config-public/pre-commit-wiring)