e2e-test
Skill1 starsChanged 9 months agoMITView on GitHub
Comprehensive end-to-end testing command. Launches parallel sub-agents to research the codebase (structure, database schema, potential bugs), then uses the Vercel Agent Browser CLI to test every user journey — taking screenshots, validating UI/UX, and querying the database to verify records. Run after implementation to validate everything before code review.
- Reads credentials
- Installs packages
32 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- mckayqsnell/snell-skillstheir own version, first seen Nov 29, 2026
- coclaw/coclawtheir own version, first seen Nov 29, 2026
- coleam00/ai-coding-summit-workshop-2edited, first seen Nov 22, 2026
- addisonk/skillstheir own version, first seen Nov 20, 2026
- mrlemoos/galiciatheir own version, first seen Nov 16, 2026
- muxy-app/muxytheir own version, first seen Nov 15, 2026
Used with
Projects with it also use unit-test, design-md and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
kevinaimonsterSkillunit-test
单元测试生成助手。帮用户编写单元测试、集成测试、Mock 设计、测试覆盖率提升。当用户说「帮我写单元测试」「写个测试用例」「怎么测这个函数」「mock怎么写」「测试覆盖率」「写测试」「unit test」「test case」「jest测试」「pytest」「vitest」「testing」时触发。关键词:单元测试、测试用例、测试覆盖率、mock、stub、spy、jest、pytest、vitest、mocha、junit、testing-library、断言、边界测试、异常测试、集成测试、e2e测试、测试驱动、代码覆盖率、coverage、test runner、describe、it、expect、assert、fixture、parametrize、测试金字塔
Also in 5 projects that use this
klauswgSkilldesign-md
Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files
Also in 3 projects that use this
HashiCorpSkillchangelog
Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.
Also in 3 projects that use this
MicrosoftSkillplaywright-cli
Automate browser interactions, test web pages and work with Playwright tests.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
GoogleSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 3 projects that use this
Other versions32 projects use a version of this.
Word for word · 2
- coleam00/link-in-bio-page-builder★ 229100% same
- fimoklei/pm-ai-playbook★ 42100% same
Edited · 1
- coleam00/ai-coding-summit-workshop-2★ 49100% same
Wrote their own version · 29
- metabase/metabase★ 51ksame name
- dataelement/bisheng★ 12ksame name
- maximhq/bifrost★ 9.6ksame name
- liaohch3/claude-tap★ 3.4ksame name
- muxy-app/muxy★ 2.4ksame name
- Nexus-Mods/Vortex★ 1.6ksame name
- nwiizo/tfmcp★ 373same name
- divinevideo/divine-mobile★ 263same name
- rabble/nostrvine★ 263same name
- bifrost-proxy/bifrost★ 173same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- agent-browserSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 20 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Stop execution if the platform is unsupported.
- Distinctive: line 26
Verify the application has a browser-accessible frontend.
- Distinctive: line 31
If no frontend is detected:
- Distinctive: line 34
Stop execution if no frontend is found.
- Distinctive: line 38
Check if agent-browser is installed:
- Distinctive: line 43
If the command is not found, install it automatically:
- Distinctive: line 48
After installation (or if it was already installed), ensure the browser engine is set up:
- Distinctive: line 60
If installation fails, stop with:
- Very specific: line 106
Start the dev server in the background (e.g., npm run dev &)
- Distinctive: line 107
Wait for the server to be ready
- Distinctive: line 127
Use the Vercel Agent Browser CLI for all browser interaction:
- Distinctive: line 147
Refs become invalid after navigation or DOM changes: Always re-snapshot after page navigation, form submissions, or dynamic content updates …
- Distinctive: line 153
Wait for the page to settle
- Very specific: line 156
Check agent-browser console and agent-browser errors periodically for JavaScript issues
- Distinctive: line 162
After any interaction that should modify data (form submits, deletions, updates):
- Very specific: line 165
Postgres: use psql directly — e.g., psql "$DATABASE_URL" -c "SELECT theme FROM profiles WHERE username = 'testuser'"
- Very specific: line 166
SQLite: use sqlite3 directly — e.g., sqlite3 db.sqlite "SELECT theme FROM profiles WHERE username = 'testuser'"
- Distinctive: line 167
Other databases: write a small ad hoc script in the application's language, run it, then delete it
- Distinctive: line 172
No orphaned or duplicate records
- Distinctive: line 176
When an issue is found (UI bug, database mismatch, JS error):
- Very specific: line 193
After completing each journey, mark its task as completed with TaskUpdate.
- Distinctive: line 197
After all testing is complete:
- Distinctive: line 198
Stop the dev server background process
- Distinctive: line 229
After the text summary, ask the user:
- Very specific: line 233
If yes, write a detailed report to e2e-test-report.md in the project root containing:
- Distinctive: line 236
All issues with full details, fix status, and file references
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
End-to-End Application Testing
Pre-flight Check
1. Platform Check
agent-browser requires Linux, WSL, or macOS. Check the platform:
uname -sLinuxorDarwin→ proceed- Anything else (e.g.,
MINGW,CYGWIN, or native Windows) → stop with:
"agent-browser only supports Linux, WSL, and macOS. It cannot run on native Windows. Please run this command from WSL or a Linux/macOS environment."
Stop execution if the platform is unsupported.
2. Frontend Check
Verify the application has a browser-accessible frontend. Check for:
- A
package.jsonwith a dev/start script serving a UI - Frontend framework files (pages/, app/, src/components/, index.html, etc.)
- Web server configuration
If no frontend is detected:
"This application doesn't appear to have a browser-accessible frontend. E2E browser testing requires a UI to visit. For backend-only or API testing, a different approach is needed."
Stop execution if no frontend is found.
3. agent-browser Installation
Check if agent-browser is installed:
agent-browser --versionIf the command is not found, install it automatically:
npm install -g agent-browserAfter installation (or if it was already installed), ensure the browser engine is set up:
agent-browser install --with-depsThe --with-deps flag installs system-level Chromium dependencies on Linux/WSL. On macOS it is harmless.
Verify installation succeeded:
agent-browser --versionIf installation fails, stop with:
"Failed to install agent-browser. Please install it manually with
npm install -g agent-browser && agent-browser install --with-deps, then re-run this command."
Phase 1: Parallel Research
Launch three sub-agents simultaneously using the Task tool. All three run in parallel.
Sub-agent 1: Application Structure & User Journeys
Research this codebase thoroughly. Return a structured summary covering:
- How to start the application — exact commands to install dependencies and run the dev server, including the URL and port it serves on
- Authentication/login — if the app has protected routes, how to create a test account or log in (credentials from .env.example, seed data, or sign-up flow)
- Every user-facing route/page — each URL path and what it renders
- Every user journey — complete flows a user can take (e.g., "sign up → create profile → view public page"). For each journey, list the specific steps, interactions (clicks, form fills, navigation), and expected outcomes
- Key UI components — forms, modals, dropdowns, pickers, toggles, and other interactive elements that need testing
Be exhaustive. Testing will only cover what you identify here.
Sub-agent 2: Database Schema & Data Flows
Research this codebase's database layer. Read
.env.exampleto understand environment variables for database connections. DO NOT read.envdirectly. Return a structured summary covering:
- Database type and connection — what database is used (Postgres, MySQL, SQLite, etc.) and the environment variable name for the connection string (from .env.example)
- Full schema — every table, its columns, types, and relationships
- Data flows per user action — for each user-facing action (form submit, button click, etc.), document exactly what records are created, updated, or deleted and in which tables
- Validation queries — for each data flow, provide the exact query to verify records are correct after the action
Sub-agent 3: Bug Hunting
Analyze this codebase for potential bugs, issues, and code quality problems. Focus on:
- Logic errors — incorrect conditionals, off-by-one errors, missing null checks, race conditions
- UI/UX issues — missing error handling in forms, no loading states, broken responsive layouts, accessibility problems
- Data integrity risks — missing validation, potential orphaned records, incorrect cascade behavior
- Security concerns — SQL injection, XSS, missing auth checks, exposed secrets
Return a prioritized list with file paths and line numbers.
Wait for all three sub-agents to complete before proceeding.
Phase 2: Start the Application
Using Sub-agent 1's startup instructions:
- Install dependencies if needed
- Start the dev server in the background (e.g.,
npm run dev &) - Wait for the server to be ready
- Open the app with
agent-browser open <url>and confirm it loads - Take an initial screenshot:
agent-browser screenshot e2e-screenshots/00-initial-load.png
Phase 3: Create Task List
Using the user journeys from Sub-agent 1 and findings from Sub-agent 3, create a task (using TaskCreate) for each user journey. Each task should include:
- subject: The journey name (e.g., "Test profile creation flow")
- description: Steps to execute, expected outcomes, database records to verify, and any related bug findings from Sub-agent 3
- activeForm: Present continuous (e.g., "Testing profile creation flow")
Also create a final task: "Responsive testing across viewports."
Phase 4: User Journey Testing
For each task, mark it in_progress with TaskUpdate and execute the following.
4a. Browser Testing
Use the Vercel Agent Browser CLI for all browser interaction:
agent-browser open <url> # Navigate to a page
agent-browser snapshot -i # Get interactive elements with refs (@e1, @e2...)
agent-browser click @eN # Click element by ref
agent-browser fill @eN "text" # Clear field and type
agent-browser select @eN "option" # Select dropdown option
agent-browser press Enter # Press a key
agent-browser screenshot <path> # Save screenshot
agent-browser screenshot --annotate # Screenshot with numbered element labels
agent-browser set viewport W H # Set viewport (e.g., 375 812 for mobile)
agent-browser wait --load networkidle # Wait for page to settle
agent-browser console # Check for JS errors
agent-browser errors # Check for uncaught exceptions
agent-browser get text @eN # Get element text
agent-browser get url # Get current URL
agent-browser close # End sessionRefs become invalid after navigation or DOM changes. Always re-snapshot after page navigation, form submissions, or dynamic content updates (modals, tabs, theme changes).
For each step in a user journey:
- Snapshot to get current refs
- Perform the interaction
- Wait for the page to settle
- Take a screenshot — save to a descriptive path under
e2e-screenshots/organized by journey (e.g.,e2e-screenshots/profile-creation/03-form-submitted.png) - Analyze the screenshot — use the Read tool to view the screenshot image. Check for visual correctness, UX issues, broken layouts, missing content, error states
- Check
agent-browser consoleandagent-browser errorsperiodically for JavaScript issues
Be thorough. Go through EVERY interaction, EVERY form field, EVERY button. The goal is that by the time this finishes, every part of the UI has been exercised and screenshotted.
4b. Database Validation
After any interaction that should modify data (form submits, deletions, updates):
- Query the database to verify records. Use the environment variable from Sub-agent 2's research for the connection string and the schema docs to know what to check.
- Postgres: use
psqldirectly — e.g.,psql "$DATABASE_URL" -c "SELECT theme FROM profiles WHERE username = 'testuser'" - SQLite: use
sqlite3directly — e.g.,sqlite3 db.sqlite "SELECT theme FROM profiles WHERE username = 'testuser'" - Other databases: write a small ad hoc script in the application's language, run it, then delete it
- Postgres: use
- Verify:
- Records created/updated/deleted as expected
- Values match what was entered in the UI
- Relationships between records are correct
- No orphaned or duplicate records
4c. Issue Handling
When an issue is found (UI bug, database mismatch, JS error):
- Document it: what was expected vs what happened, screenshot path, relevant DB query results
- Fix the code — make the correction directly
- Re-run the failing step to verify the fix worked
- Take a new screenshot confirming the fix
4d. Responsive Testing
For the responsive testing task, revisit key pages at these viewports:
- Mobile:
agent-browser set viewport 375 812 - Tablet:
agent-browser set viewport 768 1024 - Desktop:
agent-browser set viewport 1440 900
At each viewport, screenshot every major page. Analyze for layout issues, overflow, broken alignment, and touch target sizes on mobile.
After completing each journey, mark its task as completed with TaskUpdate.
Phase 5: Cleanup
After all testing is complete:
- Stop the dev server background process
- Close the browser session:
agent-browser close
Phase 6: Report
Text Summary (always output)
Present a concise summary:
## E2E Testing Complete
**Journeys Tested:** [count]
**Screenshots Captured:** [count]
**Issues Found:** [count] ([count] fixed, [count] remaining)
### Issues Fixed During Testing
- [Description] — [file:line]
### Remaining Issues
- [Description] — [severity: high/medium/low] — [file:line]
### Bug Hunt Findings (from code analysis)
- [Description] — [severity] — [file:line]
### Screenshots
All saved to: `e2e-screenshots/`Markdown Export (ask first)
After the text summary, ask the user:
"Would you like me to export the full testing report to a markdown file? It includes per-journey breakdowns, all screenshot references, database validation results, and detailed findings — useful as context for follow-up fixes or GitHub issues."
If yes, write a detailed report to e2e-test-report.md in the project root containing:
- Full summary with stats
- Per-journey breakdown: steps taken, screenshots, database checks, issues found
- All issues with full details, fix status, and file references
- Bug hunt findings from the code analysis sub-agent
- Recommendations for any unresolved issues
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

