commit
Installation
SKILL.md
Pre-Commit Security Check
Before committing, ensure GitLeaks is configured in the project:
- Check for Husky setup: Look for
.husky/pre-commit - Verify GitLeaks integration: Check if
gitleaks protectis in the pre-commit hook - Auto-configure if missing:
- If
.husky/exists but GitLeaks is missing, addgitleaks protect --staged --verbosebefore anylint-stagedcommand - If
.husky/doesn't exist, runnpx husky initfirst, then configure GitLeaks
- If
Example .husky/pre-commit with GitLeaks:
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Secrets detection - fail fast if secrets found
gitleaks protect --staged --verbose
Related skills
More from ruchernchong/claude-kit
create-branch
Create and checkout a new git branch with smart validation and GitHub issue integration
1.2Kcreate-issue
Create a GitHub issue with title and description (auto-assigned)
9folder-org
Project code structure and file organization. Use when creating files, organizing components, or deciding where code should live. (project)
8update-issue
Update a GitHub issue with new title, body, labels, or assignees
8security
Run security audit with GitLeaks pre-commit hook setup and code analysis
7sync-docs
Update and maintain CLAUDE.md and README.md documentation
7