Live browser testing with auto-detection, visual review, functional testing, and automatic UI improvements. Tests responsive layouts.
test is a Claude Code command. Live browser testing with auto-detection, visual review, functional testing, and automatic UI improvements. It includes 2 files and works well with ship.
# /test Command
Live browser testing with auto-detection, comprehensive testing, and automatic UI improvements.
## Usage
```
/test # Auto-detect changed pages from git
/test /skills # Test specific URL
/test https://example.com/page
```
## Workflow
1. **Target Detection** → Auto-detect or use provided URL
2. **Browser Setup** → Open browser, navigate to page
3. **Visual Review** → Screenshot, analyze layout/spacing/colors
4. **Functional Testing** → Test buttons, forms, links
5. **Debug Issues** → Fix console errors, network failures
6. **UI Improvements** → Auto-apply spacing, color, typography fixes
7. **Responsive Testing** → Test mobile, tablet, desktop
8. **Final Report** → Summary of tests and fixes
## Phase 1: Target Detection
**Auto-detect from git:**
1. Run `git diff --name-only HEAD~3` to find recently changed files
2. Filter for page files: `src/app/**/page.tsx`, `src/app/**/content.tsx`
3. Map file paths to URLs (strip route groups like `(dashboard)`)
4. If multiple pages changed, test each sequentially
## Phase 2: Browser Setup
1. Open browser tab
2. Navigate to target URL
3. Wait for page to fully load
4. Handle login screens if encountered
## Phase 3: Visual Review
Take full-page screenshot and analyze for:
- Layout problems (misaligned elements, broken grids)
- Spacing inconsistencies (uneven margins/padding)
- Color/contrast issues (readability, brand compliance)
- Typography problems (font sizes, hierarchy)
- Missing states (loading, error, empty)
## Phase 4: Functional Testing
1. Find interactive elements (buttons, links, forms, dropdowns)
2. Test each element (click, fill, verify state changes)
3. Check for console errors
4. Check network requests for failures
## Phase 5: Debug Issues
**Console errors:**
- React hydration → Fix client/server mismatch
- API failures → Verify endpoints
- Missing env vars → Check `.env.local`
**Network failures:**
- 404s → Check route exists
- 500s → Fix API code
- CORS → Check Next.js config
## Phase 6: UI Improvements (Auto-Apply)
Automatically fix:
- Spacing adjustments
- Color consistency (brand colors)
- Button styling
- Typography
- Animation enhancements
## Phase 7: Responsive Testing
Test at three breakpoints:
- **Mobile (393x852)**: Touch targets, text readability, no horizontal scroll
- **Tablet (768x1024)**: Layout adapts, no awkward breakpoints
- **Desktop (1440x900)**: Full layout
## Phase 8: Final Report
```
## Test Results for [URL]
### Pages Tested
- [List of pages]
### Issues Found & Fixed
- [Issue]: [How fixed]
### UI Improvements Applied
- [Improvements]
### Console Errors
- [None / List]
### Responsive Status
- Mobile: [Pass/Issues]
- Tablet: [Pass/Issues]
- Desktop: [Pass/Issues]
```
Leaves browser open for manual review.
command.mdmanifest.yamlLGJ-graphics
Lead Gen Jay brand illustration style system — flat SVG with floating UI elements, 30 brand logos, shared component library, Framer Motion animations, and consistent design tokens
brand-image-generator
Generate brand-consistent images using fal
conversion-copywriting
Write copy matched to audience awareness levels using Eugene Schwartz's framework and AIDA structure
dan-kennedy-copywriter
Write high-converting direct response copy using Dan Kennedy's proven principles
design-motion-principles
Expert motion and interaction design auditor based on Emil Kowalski, Jakub Krehel, and Jhey Tompkins
google-tracking
Configure Google tracking (GTM, GA4, tag scanning) and the full tracking infrastructure for Lead Gen Jay pages
hero-section-designer
Design high-converting hero sections combining compelling visuals, Dan Kennedy copy, and clear CTAs
hyros-integration
Add Hyros conversion tracking to opt-in forms, checkout pages, and landing pages
Enter your AI Automation Insiders email to get full access to documentation and the install command.
Lead Gen Jay brand illustration style system — flat SVG with floating UI elements, 30 brand logos, shared component library, Framer Motion animations, and consistent design tokens.
Generate brand-consistent images using fal.ai FLUX.1. Prompt templates for hero images, feature graphics, testimonial photos, and marketing visuals.
Write copy matched to audience awareness levels using Eugene Schwartz's framework and AIDA structure. Headlines for cold vs warm traffic, persuasion by buyer journey stage.
Write high-converting direct response copy using Dan Kennedy's proven principles. PAS framework, urgency tactics, message-to-market matching for sales pages and emails.
Expert motion and interaction design auditor based on Emil Kowalski, Jakub Krehel, and Jhey Tompkins. Reviews UI animations, transitions, hover states against industry best practices.
Configure Google tracking (GTM, GA4, tag scanning) and the full tracking infrastructure for Lead Gen Jay pages.
Design high-converting hero sections combining compelling visuals, Dan Kennedy copy, and clear CTAs. Above-fold optimization where 80% of conversion decisions start.
Add Hyros conversion tracking to opt-in forms, checkout pages, and landing pages. Server-side lead tracking via API, client-side checkout intent, and Whop purchase integration.
AI Automation Insiders members get unlimited access to all exclusive skills, commands, and agents — plus weekly updates.
Already a member? Scroll up to enter your email.