| name | e2e-self-iteration |
| description | Integrates ProofShot visual proof recording with the self-improvement workflow. Use when: (1) E2E tests fail or detect visual regressions, (2) Agent needs to verify UI changes it made, (3) Running self-iteration loops (build → test → fix → retest), (4) Preparing PR proof artifacts for review. |
| metadata | null |
E2E Self-Iteration Skill
Combines ProofShot (visual proof recording) and agent-browser (headless browser control) with the self-improvement loop for automated E2E testing, visual regression detection, and iterative bug fixing.
Quick Reference
| Situation | Action |
|---|
| Need to verify UI changes | vx just e2e-proofshot |
| Found visual regression | Log to .learnings/ERRORS.md, fix, re-run |
| Self-iteration loop | vx just e2e-iterate |
| PR needs proof | vx just e2e-pr |
| Explore UI elements | vx just e2e-snapshot |
| Compare against baseline | vx just e2e-diff |
Prerequisites
vx just e2e-install
Workflows
1. Quick Visual Verification
After making UI changes, verify them visually:
vx just e2e-start
vx just e2e-snapshot
vx just e2e-screenshot
vx just e2e-stop
2. Full ProofShot Session
Record a complete verification session with video + artifacts:
vx just e2e-proofshot
This will:
- Pack Gallery (debug mode)
- Start with CDP enabled
- Record ProofShot session
- Capture snapshots and screenshots
- Run Playwright CDP tests
- Stop and generate artifacts
3. Self-Iteration Loop
When fixing bugs or implementing features, iterate:
vx just e2e-iterate
ls proofshot-artifacts/
4. agent-browser Primitives
Direct browser control commands:
vx just e2e-snapshot
vx just e2e-open "http://localhost:5173/settings"
vx just e2e-click "@e5"
vx just e2e-fill "@e2" "test value"
vx just e2e-screenshot
5. Visual Regression Testing
Compare current state against baseline:
vx just e2e-diff
6. PR Proof Upload
Attach visual proof to a Pull Request:
vx just e2e-pr
vx just e2e-pr 42
Self-Iteration Protocol
When the agent detects issues during E2E testing:
- Capture: Save screenshot of the issue
- Log: Create entry in
.learnings/ERRORS.md
## [ERR-YYYYMMDD-XXX] e2e_visual_regression
**Logged**: ISO-8601 timestamp
**Priority**: high
**Status**: pending
**Area**: frontend
### Summary
[Description of what's wrong visually]
### Error
[Console errors if any]
### Context
- Screenshot: proofshot-artifacts/<session>/step-*.png
- Page: [URL or route]
- Expected: [what it should look like]
- Actual: [what it looks like]
### Suggested Fix
[Specific code change needed]
- Fix: Apply the code change
- Re-verify: Run
vx just e2e-iterate again
- Resolve: Update status to
resolved in .learnings/ERRORS.md
Integration with CI
vx just e2e-ci
vx just e2e-pr
Artifact Structure
proofshot-artifacts/
└── <timestamp>/
├── session.webm # Full session video
├── viewer.html # Interactive viewer
├── SUMMARY.md # Markdown report
├── step-*.png # Key screenshots
├── session-log.json # Action timeline
├── server.log # Server stdout/stderr
└── console-output.log # Browser console