agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Comprehensive performance analysis and optimization with intelligent profiling and sub-agent coordination
How it fires
How this command gets triggered: by you, by Claude, or both.
/perfContext preview
What this command does when you run it.
Comprehensive performance analysis and optimization with intelligent profiling and sub-agent coordination
allowed-tools: Task, Read, Write, Bash(rg:*), Bash(fd:*), Bash(ps:*), Bash(htop:*), Bash(jq:*), Bash(gdate:*), Bash(kubectl:*), Bash(docker:*), Bash(cargo:*), Bash(go:*), Bash(mvn:*), Bash(gradle:*) name: "Perf" description: "Comprehensive performance analysis and optimization with intelligent profiling and sub-agent coordination" author: "wcygan" tags: ["ops","perf"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive performance analysis session
# Initialize performance analysis session
echo '{
"sessionId": "'$SESSION_ID'",
"target": "'$ARGUMENTS'",
"technologyStack": [],
"profiledComponents": [],
"optimizationOpportunities": [],
"performanceBaseline": {}
}' > /tmp/perf-analysis-$SESSION_ID.jsonSTEP 2: Technology-aware performance profiling strategy
TRY:
CASE detected_technology: WHEN "java_project":
WHEN "go_project":
WHEN "rust_project":
WHEN "typescript_node_project":
WHEN "deno_project":
**Language-Specific Profiling Commands:**
# Java profiling if fd "pom\.xml|build\.gradle" . | head -1 >/dev/null; then echo "☕ Java project detected - enabling JVM profiling" # async-profiler or JProfiler integration fi # Go profiling if fd "go\.mod" . | head -1 >/dev/null; then echo "🐹 Go project detected - enabling pprof" # go tool pprof integration fi # Rust profiling if fd "Cargo\.toml" . | head -1 >/dev/null; then echo "🦀 Rust project detected - enabling cargo profiling" # cargo flamegraph integration fi
STEP 3: Parallel performance analysis using sub-agent architecture
IF performance_scope == "comprehensive" OR target_complexity == "high":
LAUNCH parallel sub-agents for systematic performance exploration:
**Sub-Agent Coordination:**
# Each agent reports findings to session state echo "Launching parallel perf
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