agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Systematic bug investigation and fix workflow with GitHub integration
How it fires
How this command gets triggered: by you, by Claude, or both.
/bug-fixContext preview
What this command does when you run it.
Systematic bug investigation and fix workflow with GitHub integration
allowed-tools: Bash(git:*), Bash(gh:*), Read, Write, Edit, MultiEdit, Task, Bash(gdate:*) name: "Bug Fix" description: "Systematic bug investigation and fix workflow with GitHub integration" author: "wcygan" tags: ["code","fix"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Fix the bug described in: **$ARGUMENTS**
STEP 1: Bug Analysis and State Initialization
// /tmp/bug-fix-state-$SESSION_ID.json
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"bug": "$ARGUMENTS",
"phase": "analysis",
"analysis": {
"rootCause": null,
"affectedFiles": [],
"reproductionSteps": [],
"priority": "normal"
},
"workflow": {
"issueNumber": null,
"branchName": null,
"prNumber": null,
"fixApplied": false
},
"checkpoints": {
"analysis_complete": false,
"issue_created": false,
"branch_created": false,
"fix_implemented": false,
"tests_verified": false,
"pr_created": false
}
}STEP 2: Repository Validation and Preparation
TRY:
CATCH (git not available):
CATCH (gh not authenticated):
STEP 3: GitHub Issue Creation
IF issue doesn't already exist:
## Bug Description [Bug description from $ARGUMENTS] ## Expected Behavior [What should happen] ## Actual Behavior [What currently happens] ## Steps to Reproduce 1. [Step 1] 2. [Step 2] ## Environment - Branch: [current branch] - Last commit: [latest commit hash]
STEP 4: Feature Branch Creation
STEP 5: Bug Investigation and Root Cause Analysis
Think deeply about the optimal debugging approach for this specific bug type and system complexity.
FOR complex bugs requiring comprehensive investigation:
**CRITICAL: Deploy parallel sub-agents for maximum performance (8-10x faster bug investigation)**
IMMEDIATELY launch 8 specialized bug investigation agents:
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