agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Comprehensive validation orchestrator with intelligent project detection, parallel validation execution, and actionable remediation
How it fires
How this command gets triggered: by you, by Claude, or both.
/validateContext preview
What this command does when you run it.
Comprehensive validation orchestrator with intelligent project detection, parallel validation execution, and actionable remediation
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(eza:*), Bash(bat:*), Bash(jq:*), Bash(yq:*), Bash(gdate:*), Bash(deno:*), Bash(cargo:*), Bash(go:*), Bash(mvn:*), Bash(gradle:*), Bash(kubectl:*), Bash(docker:*), Bash(hadolint:*), Bash(npm:*), Bash(pnpm:*), Bash(yarn:*) name: "Validate" description: "Comprehensive validation orchestrator with intelligent project detection, parallel validation execution, and actionable remediation" author: "wcygan" tags: ["test","run"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive validation session with intelligent project analysis
# Initialize validation session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetProject": "'$ARGUMENTS'",
"detectedTechnologies": [],
"validationStrategy": "auto-detect",
"validationResults": {},
"criticalIssues": []
}' > /tmp/validate-session-$SESSION_ID.jsonSTEP 2: Technology stack detection and validation strategy selection
TRY:
**Multi-Language Project Detection:**
# Smart technology stack detection
detect_technologies() {
echo "🔍 Detecting technology stack and validation requirements..."
technologies=()
# Deno/TypeScript Detection
if [ -f "deno.json" ] || [ -f "deno.jsonc" ]; then
technologies+=("deno")
echo "🦕 Deno project detected"
fi
# Node.js Detection
if [ -f "package.json" ] && [ ! -f "deno.json" ]; then
technologies+=("nodejs")
package_manager="npm"
[ -f "pnpm-lock.yaml" ] && package_manager="pnpm"
[ -f "yarn.lock" ] && package_manager="yarn"
echo "⚡ Node.js project detected (${package_manager})"
fi
# Rust Detection
if [ -f "Cargo.toml" ]; then
technologies+=("rust")
echo "🦀 Rust project detected"
fi
# Go Detection
if [ -f "go.mod" ]; then
technologies+=("go")
echo "🐹 Go project detected"
fi
# Java Detection
if [ -f "pom.xml" ] || [ -f "build.gradle" ] || [ -f "build.gradle.kts" ]; then
technologies+=("java")
build_tool="maven"
[ -f "build.gradle" ] && build_tool="gradle"
echo "☕ Java project detected (${build_tool})"
fi
# Docker Detection
if [ -f "Dockerfile" ] || [ -f "docker-compose.yml" ] || [ -f "docker-compose.yaml" ]; then
technologies+=("docker")
echo "🐳 Docker configuration detected"
fi
# Kubernetes Detection
if fd "\.ya?ml$" k8s/ kustomize/ manifests/ 2>/dev/null | head -1 >/dev/null; then
technologies+=("kubernetes")
echo "☸️ Kubernetes manifests detected"
fi
# Save detected technologies to session state
jq --argjson techs "$(printf '%s\n' "${technologies[@]}" | jq -R . | jq -s .)" \
'.detectedTechnologies = $techs' \
/tmp/validate-session-$SESSION_ID.json > /tmp/validate-session-$SESSION_ID.tmp && \
mv /tmp/validate-session-$SESSION_ID.tmp /tmp/validate-session-$SESSION_ID.json
}
detect_technologiesSTEP 3: Parallel validation execution with sub-agent coordination
IF project_complexity == "multi-language" OR codebase_size > 1000_files:
LAUNCH parallel sub-agents for comprehensive validation across domains:
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