agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Comprehensive security audit for leaked credentials with parallel analysis and state management
How it fires
How this command gets triggered: by you, by Claude, or both.
/secrets-auditContext preview
What this command does when you run it.
Comprehensive security audit for leaked credentials with parallel analysis and state management
allowed-tools: Task, Bash(rg:*), Bash(fd:*), Bash(bat:*), Bash(jq:*), Bash(gdate:*), Bash(git:*), Bash(eza:*), Bash(wc:*), Bash(head:*), Bash(tail:*) name: "Secrets Audit" description: "Comprehensive security audit for leaked credentials with parallel analysis and state management" author: "wcygan" tags: ["security","audit"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive security audit session with state management
TRY:
# Initialize audit session state
echo '{
"sessionId": "'$SESSION_ID'",
"scanScope": "'$ARGUMENTS'",
"projectType": "auto-detect",
"startTime": "'$(gdate -Iseconds 2>/dev/null || date -Iseconds)'",
"findings": [],
"scannedFiles": 0,
"riskLevel": "unknown",
"recommendations": []
}' > /tmp/secrets-audit-$SESSION_ID.jsonSTEP 2: Adaptive scanning strategy selection with intelligent routing
CASE scan_scope: WHEN "staged":
WHEN "recent":
WHEN "comprehensive" OR empty:
WHEN specific_patterns:
**Quick Staged Changes Scan:**
# Git staged changes security scan git diff --staged --name-only | xargs rg -i "(password|secret|key|token|credential|api_key)" --context 2 --color always echo "🔍 Scanning staged changes for secrets..." git diff --staged | rg -i "(password|secret|key|token|credential)" --context 2 --color always || echo "✅ No obvious secrets found in staged changes"
STEP 3: Parallel comprehensive security audit using sub-agent architecture
IF codebase_size > 500 files OR scan_scope contains "comprehensive":
LAUNCH parallel sub-agents for systematic security analysis:
**Sub-Agent Coordination:**
# Each agent reports findings to session state echo "🚀 Launching parallel security analysis agents..." echo "🔍 Comprehensive audit covers: credentials, databases, keys, configs, code" echo "📊 Results will be aggregated and prioritized by risk level"
STEP 4: Execute targeted security pattern detection with modern tooling
**Core Security Pattern Detection:**
# High-priority credential patterns with risk classification
echo "🔍 Executing comprehensive pattern detection..."
# API Keys & Tokens (CRITICAL RISK)
rg -i "api[-_]?key\s*[:=]\s*['\"]?[a-zA-Z0-9]{20,}['\"]?" \
--type-add 'config:*.{env,json,yaml,yml,toml,ini,conf}' \
--type config --type js --type ts --type python --type go --type rust \
--context 2 --color always
# Cloud Provider Keys (CRITICAL RISK)
rg -i "(aws_access_key|aws_secret|azure_client|gcp_service_account|AKIA[A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies