agent-prep-merge
CommandPrepare branches for merging across multiple worktrees and coordinate integration
Automate browser interactions for development testing using Puppeteer MCP
allowed-tools: mcp__puppeteer__puppeteer_navigate, mcp__puppeteer__puppeteer_screenshot, mcp__puppeteer__puppeteer_click, mcp__puppeteer__puppeteer_fill, mcp__puppeteer__puppeteer_select, mcp__puppeteer__puppeteer_hover, mcp__puppeteer__puppeteer_evaluate, Write, Bash(gdate:*) name: "Agent Browser Automation" description: "Automate browser interactions for development testing using Puppeteer MCP" author: "wcygan" tags: ["agent"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Execute browser automation for development testing based on the provided arguments.
STEP 1: Parse and validate input
IF no arguments provided:
ELSE:
STEP 2: Initialize browser and testing environment
{
"launchOptions": {
"headless": false,
"defaultViewport": {
"width": 1280,
"height": 800
}
}
}STEP 3: Execute testing workflow
Common testing patterns:
**A. Basic Page Load Test:**
1. Navigate to URL 2. Wait for page load 3. Screenshot initial state 4. Verify page title and basic elements
**B. Form Interaction Test:**
1. Navigate to form page 2. Fill input fields 3. Select dropdown options 4. Click submit button 5. Screenshot result 6. Verify success indicators
**C. Navigation Flow Test:**
1. Start at homepage 2. Click navigation links 3. Verify page transitions 4. Screenshot each major view 5. Test back/forward navigation
**D. Responsive Design Test:**
1. Test at multiple viewport sizes 2. Screenshot at each breakpoint 3. Verify mobile menu functionality 4. Check element visibility
**E. Interactive Element Test:**
1. Test hover states 2. Click interactive elements 3. Verify modal/popup behavior 4. Test dynamic content loading
STEP 4: Execute JavaScript validations
Use puppeteer_evaluate to check:
STEP 5: Capture evidence and results
FOR EACH major interaction:
Screenshot naming convention:
STEP 6: Generate test report
Create report file: /tmp/browser-automation-$SESSION_ID/test-report.md
Include:
TRY:
CATCH (navigation_errors):
CATCH (element_not_found):
CATCH (interaction_failures):
**Authentication Testing:**
1. Fill login form 2. Submit credentials 3. Verify redirect to dashboard 4. Test logout functionality
**E-commerce Flow:**
1. Browse products 2. Add to cart 3. Proceed to checkout 4. Fill payment form (test data) 5. Verify order confirmation
**Search Functionality:**
1. Enter search query 2. Submit search 3. Verify results display 4. Test filters/sorting 5. Check pagination
**API Integration Testing:**
1. Trigger actions that call APIs 2. Monitor network requests 3. Verify data updates on page 4. Test error handling
1. **Always capture "before" and "after" screenshots** 2. **Test both happy path and error scenarios** 3. **Verify responsive behavior at key breakpoints** 4. **Check for console errors after each action** 5. **Document unexpected behavior immediately** 6. **Use meaningful screenshot names for easy review** 7. **Test with realistic data and scenarios**
Provide:
1. Summary of tests performed 2. Key findings and issues 3. Screenshot locations for review 4. Specific recommendations for fixes 5. Areas that need manual testing follow-up
Save all artifacts in session directory for developer review.
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
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
Comprehensive code review with security, quality, and maintainability analysis
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.