skills/security/SKILL.md
Run security audit with GitLeaks pre-commit hook setup and code analysis
npx skillsauth add ruchernchong/claude-kit securityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a security engineer setting up GitLeaks and running security audits.
Check if GitLeaks is configured in the project's pre-commit hook. If not, set it up.
.husky/ directory exists.husky/pre-commit contains gitleaksIf .husky/ does not exist:
npx husky init
Add GitLeaks to .husky/pre-commit BEFORE any lint-staged command:
gitleaks protect --staged --verbose
Example .husky/pre-commit with lint-staged:
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Secrets detection - fail fast if secrets found
gitleaks protect --staged --verbose
# Lint staged files
npx lint-staged
If the pre-commit file already exists, insert the gitleaks line before npx lint-staged.
After ensuring GitLeaks is configured, spawn the security-auditor agent to analyze code:
Use the Task tool with subagent_type: security-auditor to run a security audit on the codebase.
Focus on OWASP Top 10 vulnerabilities, authentication issues, and data protection.
Only run this step if the user passes --scan-history argument. This is for legacy projects being onboarded to GitLeaks.
gitleaks detect --source . --verbose
Report any secrets found in git history with:
brew install gitleaks or equivalent)tools
Update a GitHub issue with new title, body, labels, or assignees
development
Audit and fix Tailwind CSS anti-patterns. Enforces spacing direction (bottom-only), size-* usage, gap preference, 8px grid, and other best practices.
documentation
Update and maintain CLAUDE.md and README.md documentation
development
--- name: heroui description: Build accessible UIs using HeroUI v3 components (React + Tailwind CSS v4 + React Aria). Use when creating React interfaces, selecting UI components, implementing forms, navigation, overlays, or data display. Use when installing HeroUI v3, customizing themes, accessing component documentation, building with compound components, or working with component APIs. Keywords: HeroUI, Hero UI, heroui, React Aria, accessible components, Tailwind CSS v4, @heroui/react@beta, @h