agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Intelligent workflow orchestration with state management, error recovery, and sub-agent coordination
How it fires
How this command gets triggered: by you, by Claude, or both.
/startContext preview
What this command does when you run it.
Intelligent workflow orchestration with state management, error recovery, and sub-agent coordination
allowed-tools: TodoWrite, TodoRead, Bash(git:*), Bash(deno:task:*), Bash(jq:*), Bash(gdate:*), Read, Write, Task, Grep, Glob, Edit, MultiEdit name: "Start" description: "Intelligent workflow orchestration with state management, error recovery, and sub-agent coordination" author: "wcygan" tags: ["workflow","start"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize intelligent workflow session and analyze project state
# Initialize workflow session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetTask": "'$ARGUMENTS'",
"state": "initializing",
"startTime": "'$(gdate -Iseconds 2>/dev/null || date -Iseconds)'",
"checkpoints": [],
"filesModified": [],
"commitsCreated": 0,
"testsStatus": "unknown",
"priority": "auto-detect",
"blockers": []
}' > /tmp/start-session-$SESSION_ID.jsonSTEP 2: Intelligent task selection and priority analysis
CASE task_specification: WHEN "user_specified":
WHEN "auto_select":
IF available_todos > 0:
LAUNCH parallel sub-agents for comprehensive task analysis:
ELSE:
STEP 3: Pre-work setup with checkpoint creation
TRY:
**Environment Validation and Setup:**
# Validate clean working state echo "๐ Validating development environment..." # Check for uncommitted changes uncommitted_files=$(git diff --name-only HEAD 2>/dev/null | wc -l | tr -d ' ') if [ "$uncommitted_files" -gt 0 ]; then echo "โ ๏ธ Found $uncommitted_files uncommitted files" echo "๐ Uncommitted files:" git diff --name-only HEAD | head -5 echo "๐พ Creating pre-work checkpoint..." git stash push -m "Pre-work checkpoint for session $SESSION_ID" fi # Validate test state echo "๐งช Checking current test status..." if command -v deno >/dev/null && [ -f "deno.json" ]; then deno task test >/tmp/pre-work-tests-$SESSION_ID.log 2>&1 test_exit_code=$? elif command -v cargo >/dev/null && [ -f "Cargo.toml" ]; then cargo test >/tmp/pre-work-tests-$SESSION_ID.log 2>&1 test_exit_code=$? elif command -v go >/dev/null && [ -f "go.mod" ]; then go test ./... >/tmp/pre-work-tests-$SESSION_ID.log 2>&1 test_exit_code=$? else echo "No recognized test framework found" test_exit_code=0 fi # Update session state with test results jq --arg status "$([ $test_exit_code -eq 0 ] && echo 'passing' || echo 'failing')" \ '.testsStatus = $status | .state = "setup_complete"' \ /tmp/start-session-$SESSION_ID.json > /tmp/start-session-$SESSION_ID.tmp && \ mv /tmp/start-session-$SESSION_ID.tmp /tmp/start-session-$SESSION_ID.json
**TodoWrite Integration and Task Activation:**
# Load and activate selected task selected_task="$ARGUMENTS" if [ -z "$selected_task" ]; then # Auto-select highest priority task from TodoRead TodoRead # Parse TodoRead output to get highest priority pending task # This would be implemented based on TodoRead output format fi # Mark task as in-progress TodoWrite --update-task "$selected_task" --status "in_progress" --session-id "$SESSION_ID" # Create progress subtasks for complex work if [[ "$selected_task" == *"implement"* ]] || [[ "$selected_task" == *"add"* ]]; then TodoWrite --create-subtask "$selected_task" "Planning and design" --priority "high" TodoWrite --create-subtask "$selected_task" "Implementation" --priority "high" TodoWrite --create-subtask "$selected_task" "Testing and validation" --priority "high" TodoWrite --create-subtask "$selected_task" "Documentation" --priority "medium" fi
CATCH
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