analyze-dependencies
Please perform a comprehensive dependency analysis of this codebase:
Please perform a comprehensive security audit of this codebase:
How it fires
How this command gets triggered: by you, by Claude, or both.
/security-auditContext preview
What this command does when you run it.
Please perform a comprehensive security audit of this codebase:
Please perform a comprehensive security audit of this codebase:
Search for exposed sensitive information:
# Common patterns for secrets chs find-code "password\s*=\s*['\"]|api_key\s*=\s*['\"]|secret\s*=\s*['\"]" chs find-code "token\s*=\s*['\"]|private.*key\s*=|aws_.*=\s*['\"]" # Environment files chs find-file "\.env*" # Check if .env files are in .gitignore! # Common secret file names chs find-file "*secret*\|*credential*\|*private*"
# String concatenation in queries
chs find-code "query.*\+.*\|\".*SELECT.*\+\|\".*INSERT.*\+\|\".*UPDATE.*\+"
# Direct variable interpolation
chs find-code "query.*\$\{.*\}|query.*\${.*}"# Dangerous functions
chs find-code "exec\(|spawn\(|system\(|eval\("
# Shell command building
chs find-code "shell.*\+\|cmd.*\+\|exec.*\$"# Path manipulation chs find-code "\.\./\|\.\.\\\\|\.\./\.\." chs find-code "path\.join.*req\.|path\.join.*user"
chs find-code "auth\|login\|session\|jwt\|token" chs find-file "*auth*\|*login*\|*session*"
# Find user input handling chs find-code "req\.body\|req\.query\|req\.params" # Check for validation chs find-code "validate\|sanitize\|escape" # Dangerous operations without validation chs find-code "innerHTML\|dangerouslySetInnerHTML"
# Run security audits ch ts audit # For npm projects # Check for known vulnerable packages chs find-code "require\(|import.*from" | grep -E "(lodash|moment|axios|express)" # Then check versions against known vulnerabilities
# Check for HTTP usage
chs find-code "http://|createServer\(|\.listen\("
# Security headers
chs find-code "helmet\|cors\|csp\|x-frame-options"# Stack traces in production chs find-code "stack\|stackTrace|error\.stack" # Detailed error messages chs find-code "catch.*console\.|catch.*res\.send"
Focus on exploitable vulnerabilities that could lead to data breaches!
Give Claude the super powers it deserves with this power user collection of bash scripts and slash commands
Please perform a comprehensive dependency analysis of this codebase:
Please help me document all APIs in this codebase systematically:
Automatically identify and fix CI failures or review feedback on the current PR, then push the fixes.