security-scan

Scan pending git changes for leaked secrets and injection vulnerabilities.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wztlink1013/goofish-tanstack --skill security-scan-wztlink1013
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan
Source: https://github.com/wztlink1013/goofish-tanstack/tree/main/.claude/skills/security-scan
Command: npx skills add https://github.com/wztlink1013/goofish-tanstack --skill security-scan-wztlink1013

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill performs automated security audits on pending git changes, detecting potential security risks such as leaked secrets, injection vulnerabilities, and RBAC flaws before committing.

Core Features & Use Cases

  • Pre-commit Security Audit: Checks for secret patterns, forbidden files, ignore coverage gaps, and injection vulnerabilities.
  • Manual Diff Review Guide: Provides a checklist for reviewing diffs for vulnerabilities like XSS, SQL injection, and auth flaws.
  • Workflow Integration: Integrate with the git workflow for automatic scanning on commit, ensuring secure code pushes.

Quick Start

Run the security scan on staged changes using the command: python3 .claude/skills/security-scan/scripts/scan_staged.py --worktree

Frequently Asked Questions about security-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a security audit on staged git changes before committing?

Run a security audit on staged git changes by executing a Python script that parses git diffs to detect leaked secrets and vulnerabilities. The scanner integrates directly with the git workflow and respects .gitignore and .dockerignore rules.

What types of vulnerabilities can a pre-commit security scan detect?

A pre-commit security scan detects leaked secrets, forbidden files, ignore coverage gaps, injection vulnerabilities, and XSS. It also provides a manual diff review checklist to identify RBAC flaws and authentication issues.

Do I need Python 3 to scan pending git changes for leaked secrets?

Yes, you need Python 3 installed to scan pending git changes for leaked secrets. The security audit script relies on Python 3 and its standard libraries for parsing git diffs and scanning local files without external dependencies.

Does automated vulnerability detection work with .gitignore and .dockerignore rules?

Yes, automated vulnerability detection works with .gitignore and .dockerignore rules. The scanner integrates these ignore configurations to automatically exclude specified files and directories from security audits.

What is the best way to review code diffs for SQL injection and XSS flaws?

The best way to review code diffs for SQL injection and XSS flaws is using a manual diff review guide. This provides a targeted security checklist to systematically inspect pending git changes for injection vulnerabilities and RBAC issues.

Why should I use an automated security audit for pre-commit hooks instead of manual checks?

Use an automated security audit for pre-commit hooks to consistently detect leaked secrets and injection vulnerabilities before pushing code. It provides detailed findings for manual review, reducing human error compared to checking diffs manually.