agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Systematic debugging orchestrator with multi-language support and intelligent root cause analysis
How it fires
How this command gets triggered: by you, by Claude, or both.
/debugContext preview
What this command does when you run it.
Systematic debugging orchestrator with multi-language support and intelligent root cause analysis
allowed-tools: Task, Read, Write, Edit, Bash(rg:*), Bash(fd:*), Bash(bat:*), Bash(eza:*), Bash(jq:*), Bash(gdate:*), Bash(git:*), Bash(docker:*), Bash(kubectl:*), Bash(ps:*), Bash(netstat:*), Bash(lsof:*), Bash(strace:*), Bash(gdb:*), Bash(lldb:*), Bash(jstack:*), Bash(jcmd:*), Bash(delve:*), Bash(go:*), Bash(cargo:*), Bash(mvn:*), Bash(gradle:*), Bash(deno:*) name: "Debug" description: "Systematic debugging orchestrator with multi-language support and intelligent root cause analysis" author: "wcygan" tags: ["test","debug"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize systematic debugging session with intelligent issue classification
# Initialize debugging session state
echo '{
"sessionId": "'$SESSION_ID'",
"debugTarget": "'$ARGUMENTS'",
"issueType": "auto-detect",
"technologyStack": [],
"debugStrategy": "systematic",
"findings": [],
"recommendedActions": []
}' > /tmp/debug-session-$SESSION_ID.jsonSTEP 2: Multi-phase debugging analysis with parallel sub-agent coordination
TRY:
IF issue_complexity == "complex_system_issue" OR technology_stack == "multi-service":
LAUNCH parallel sub-agents for comprehensive debugging analysis:
ELSE:
EXECUTE streamlined single-service debugging workflow:
# Direct debugging analysis for simpler issues echo "๐ Executing focused debugging analysis..."
STEP 3: Technology-specific debugging strategy execution TRY:
CASE detected_technology: WHEN "java":
# Java-specific debugging workflow echo "โ Java debugging strategy activated" # Check for running Java processes jps -v || ps aux | rg java # Generate thread dump if process found if jstack_pid=$(jps | rg -v Jps | head -1 | cut -d' ' -f1); then echo "Generating thread dump for PID: $jstack_pid" jstack $jstack_pid > /tmp/threaddump-$SESSION_ID.txt fi # Check JVM flags and heap usage jcmd $jstack_pid VM.flags 2>/dev/null || echo "JVM flags unavailable" jcmd $jstack_pid GC.run_finalization 2>/dev/null || echo "GC info unavailable"
**Java Debugging Actions:**
WHEN "go":
# Go-specific debugging workflow echo "๐น Go debugging strategy activated" # Check for Go binaries and build info fd -e go . | head -5 go version 2>/dev/null || echo "Go not available" # Check for race conditions in recent builds if [ -f "go.mod" ]; then echo "Checking for recent race detector usage..." rg "go run -race|go test -race" . || echo "No race detection usage found" fi # Check for goroutine leaks in running processes ps aux | rg go | head -3
**Go Debugging Actions:**
WHEN "rust":
# Rust-specific debugging workflow echo "๐ฆ Rust debugging strategy activated" # Check Cargo configuration and recent builds fd Cargo.toml . | head -3 cargo --version 2>/dev/null || echo "Cargo not available" # Set backtrace envi
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