Git Hygiene Enforcer
Automatically reviews and corrects Git repository hygiene issues like commit message formatting and branch naming conventions.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add monkey1sai-git-hygiene-enforcer npx -- -y @trustedskills/monkey1sai-git-hygiene-enforcer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"monkey1sai-git-hygiene-enforcer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/monkey1sai-git-hygiene-enforcer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The git-hygiene-enforcer skill helps maintain a clean and consistent Git repository. It automatically removes unnecessary files like .DS_Store, node_modules, and IDE project files, ensuring that only essential tracked files are committed. This promotes better collaboration and reduces the size of repositories.
When to use it
- Before committing code: Automatically clean up before pushing changes to a shared repository.
- During CI/CD pipelines: Ensure consistent repository hygiene across all environments.
- When collaborating on projects: Enforce a standard set of ignored files for team consistency.
- To reduce repository size: Regularly remove unnecessary files, keeping the repo lean and efficient.
Key capabilities
- Removes
.DS_Storefiles. - Removes
node_modulesdirectories. - Removes IDE project files (specific file types are not listed).
Example prompts
- "Clean up my Git repository before I commit."
- "Run the git hygiene enforcer in this directory."
- "Ensure all ignored files are removed from the current branch."
Tips & gotchas
This skill requires a Git environment to be present and configured. Itβs recommended to review the changes it makes before committing them, especially when first using it on an existing repository.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.