david-li0406/meta-skill-evloving/skillclaw-6be1e26785021247-pre-commit-security-audit
Claude Code and agent skill by david-li0406/meta-skill-evloving
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Use this skill to set up pre-commit hooks for code quality checks and security audits, including secret scanning with GitLeaks.
Install
npx vskill@latest install david-li0406/meta-skill-evloving/skillclaw-6be1e26785021247-pre-commit-security-auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as david-li0406/meta-skill-evloving/skillclaw-6be1e26785021247-pre-commit-security-audit.
Skill body
Workflow
1. Setup Pre-commit Hooks
Ensure that pre-commit hooks are configured in your project. If not, set them up.
Detection Steps
- Check if the
.husky/directory exists. - Check if the
.husky/pre-commitfile contains the necessary GitLeaks command.
Setup Steps (if GitLeaks is missing)
If the .husky/ directory does not exist, initialize it:
Add GitLeaks to the .husky/pre-commit file before any lint-staged command:
Example .husky/pre-commit file:
If the pre-commit file already exists, insert the GitLeaks line before npx lint-staged.
2. Code Security Audit
After ensuring GitLeaks is configured, run a security audit on the codebase:
3. Secret Scanning
To scan for secrets in the codebase, ensure that the .gitleaks.toml configuration file is set up. This file manages the rules for secret detection.
Handling False Positives
To ignore false positives, add path patterns to the allowlist section in the .gitleaks.toml file.
4. Retrospective Git History Scan (Optional)
If the user passes the --scan-history argument, run a history scan for legacy projects:
Report any secrets found in git history with:
- File path and line number
- Commit where the secret was introduced
- Type of secret detected
- Remediation steps (rotate the secret, use git-filter-repo to remove from history)
Output Format
- GitLeaks Setup Status: Whether hooks were already configured or newly set up.
- Security Audit Findings: Results from the security-auditor agent.
- History Scan Results (if
--scan-history): Any secrets found in git history.
Assumptions
- GitLeaks is already installed on the system (
brew install gitleaksor equivalent). - Target projects use Husky + lint-staged (JS/TS stack).
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 repositoryCheckingskill-flow/data/skills-refined-skillclaw-36k/skillsmp/skillclaw-6be1e26785021247-pre-commit-security-audit/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
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/david-li0406/meta-skill-evloving/skillclaw-6be1e26785021247-pre-commit-security-audit)