agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Proactive security hardening orchestrator with multi-layer threat mitigation
How it fires
How this command gets triggered: by you, by Claude, or both.
/hardenContext preview
What this command does when you run it.
Proactive security hardening orchestrator with multi-layer threat mitigation
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(docker:*), Bash(kubectl:*), Bash(jq:*), Bash(gdate:*) name: "Harden" description: "Proactive security hardening orchestrator with multi-layer threat mitigation" author: "wcygan" tags: ["security","model"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive security hardening session with threat modeling
# Initialize hardening session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetPath": "'$ARGUMENTS'",
"projectType": "auto-detect",
"hardeningLevel": "strict",
"threatsIdentified": [],
"mitigationsApplied": [],
"complianceTarget": "general"
}' > /tmp/harden-session-$SESSION_ID.jsonSTEP 2: Multi-layer threat assessment with parallel security analysis
IF complex_infrastructure_detected OR kubernetes_manifests_found:
LAUNCH parallel sub-agents for comprehensive security assessment:
ELSE:
EXECUTE targeted single-layer hardening based on detected project type
STEP 3: Programmatic security hardening implementation with error handling
TRY:
CASE project_complexity: WHEN "dockerfile_only":
WHEN "kubernetes_deployment":
WHEN "application_code":
WHEN "full_stack_application":
**Security Hardening Patterns:**
# Container Security Implementation if fd "Dockerfile" . | head -1 >/dev/null; then echo "🐳 Applying container security hardening..." # Multi-stage builds with distroless images # Non-root user execution # Read-only root filesystem # Dropped capabilities fi # Kubernetes Security Implementation if fd "\.ya?ml$" . | rg -l "kind: (Deployment|Pod)" | head -1 >/dev/null; then echo "☸️ Implementing Kubernetes security policies..." # Pod Security Standards enforcement # Network policy generation # RBAC configuration # Security context hardening fi # Application Security Implementation project_lang=$(fd "(package\.json|Cargo\.toml|go\.mod|pom\.xml)" . | head -1) if [[ -n "$project_lang" ]]; then echo "🔒 Applying application-level security patterns..." # Security headers middleware # Input validation frameworks # Authentication/authorization # Secure configuration management fi
CATCH (hardening_failed):
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