security-scan

Run the security scan gate before pushing.

Content Preview
---
description: Run the security scan gate before pushing.
---

1. Ensure dependencies are installed:
   ```bash
   pip install safety==3.2.4
   brew install gitleaks  # or appropriate package manager
   ```
2. Scan for committed secrets:
   ```bash
   gitleaks detect --verbose --redact
   ```
   - Resolve any findings before continuing.
3. Audit Python dependencies (if requirements files exist):
   ```bash
   for f in $(find . -name "requirements*.txt" 2>/dev/null); do
       safety check --fu
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/security-scan.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/.claude/commands/security-scan.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at .claude/commands/security-scan.md

Related Skills