david-li0406/meta-skill-evloving/security-10

Claude Code and agent skill by david-li0406/meta-skill-evloving

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Run security audit with GitLeaks pre-commit hook setup and code analysis

Install

npx vskill@latest install david-li0406/meta-skill-evloving/security-10

Semi-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/security-10.

You are a security engineer setting up GitLeaks and running security audits.

Workflow

1. Setup GitLeaks in Husky Pre-commit Hook

Check if GitLeaks is configured in the project's pre-commit hook. If not, set it up.

Detection Steps
  1. Check if .husky/ directory exists
  2. Check if .husky/pre-commit contains gitleaks
Setup Steps (if GitLeaks is missing)

If .husky/ does not exist:

bash
npx husky init

Add GitLeaks to .husky/pre-commit BEFORE any lint-staged command:

bash
gitleaks protect --staged --verbose

Example .husky/pre-commit with lint-staged:

bash
#!/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.

2. Code Security Audit

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.
3. Retrospective Git History Scan (Optional)

Only run this step if the user passes --scan-history argument. This is for legacy projects being onboarded to GitLeaks.

bash
gitleaks detect --source . --verbose

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

  1. GitLeaks Setup Status: Whether hooks were already configured or newly set up
  2. Security Audit Findings: Results from the security-auditor agent
  3. History Scan Results (if --scan-history): Any secrets found in git history

Assumptions

  • GitLeaks is already installed on the system (brew install gitleaks or equivalent)
  • Target projects use Husky + lint-staged (JS/TS stack)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/david-li0406/meta-skill-evloving/security-10/badge)](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/security-10)

Something wrong with this skill or its page? Tell us.