validate-git-hygiene
CommunityEnsure clean git history, prevent security leaks.
Software Engineering#code quality#git#developer tools#security#CI/CD#commit validation#branch naming
AuthorBerryKuipers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Inconsistent commit messages, non-standard branch names, and accidental commitment of sensitive files lead to messy repositories, difficult audits, and potential security risks. This Skill automates checks to maintain high git hygiene.
Core Features & Use Cases
- Commit Message Validation: Checks commit messages against Conventional Commits format (e.g.,
feat: add new feature). - Branch Naming Compliance: Validates branch names against standard patterns (e.g.,
feat/*,fix/*,chore/*). - Sensitive File Detection: Scans for and warns about sensitive files (
.env,credentials,.pem) in both tracked and untracked areas. - Use Case: Integrate this Skill into your pre-commit hooks or CI/CD pipeline to automatically enforce git best practices and prevent security vulnerabilities.
Quick Start
Run git hygiene validation on the current repository
The skill will execute checks and output structured JSON:
{
"status": "warning",
"gitHygiene": {
"branch": {"valid": false},
"commits": {"invalid": 3},
"sensitiveFiles": {"count": 1}
},
"canProceed": false,
"details": "Sensitive files detected - must be removed or added to .gitignore"
}
Dependency Matrix
Required Modules
gitjqgrepsed
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: validate-git-hygiene Download link: https://github.com/BerryKuipers/claude-code-toolkit/archive/main.zip#validate-git-hygiene Please download this .zip file, extract it, and install it in the .claude/skills/ directory.