agent-browser-automati…
CommandAutomate browser interactions for development testing using Puppeteer MCP
Generate comprehensive threat models using STRIDE methodology with parallel analysis and session management
allowed-tools: Task, Bash(kubectl:*), Bash(docker:*), Bash(rg:*), Bash(fd:*), Bash(yq:*), Bash(jq:*), Bash(gdate:*), Read, Write name: "Threat Model" description: "Generate comprehensive threat models using STRIDE methodology with parallel analysis and session management" 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 threat modeling session with state management
# Initialize session state and directories
mkdir -p /tmp/threat-model-checkpoints-$SESSION_ID
echo '{
"sessionId": "'$SESSION_ID'",
"targetSystem": "'$ARGUMENTS'",
"phase": "discovery",
"startTime": "'$(gdate -Iseconds 2>/dev/null || date -Iseconds)'",
"progress": {},
"threats": [],
"mitigations": []
}' > /tmp/threat-model-state-$SESSION_ID.json
# Create symbolic link for latest session
ln -sf /tmp/threat-model-state-$SESSION_ID.json /tmp/threat-model-latest-session.jsonSTEP 2: Comprehensive security context discovery with parallel analysis
TRY:
IF system_complexity == "distributed" OR infrastructure_detected == "kubernetes":
LAUNCH parallel sub-agents for comprehensive security discovery:
ELSE:
EXECUTE streamlined single-service threat analysis:
# Single-service analysis workflow echo "🔍 Analyzing single-service threat landscape..." echo "Target: $ARGUMENTS"
STEP 3: STRIDE methodology execution with programmatic analysis
**STRIDE Analysis Workflow:**
# Execute systematic STRIDE analysis
execute_stride_analysis() {
local session_state="/tmp/threat-model-state-$SESSION_ID.json"
echo "🔒 Executing STRIDE threat analysis..."
# Update session state
jq '.phase = "stride_analysis" | .progress.stride_started = "'$(gdate -Iseconds 2>/dev/null || date -Iseconds)'"' \
"$session_state" > "${session_state}.tmp" && mv "${session_state}.tmp" "$session_state"
}CASE stride_category:
WHEN "Spoofing":
WHEN "Tampering":
WHEN "Repudiation":
WHEN "Information Disclosure":
WHEN "Denial of Service":
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
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
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.