agentleFS
qyndexqyndex/claude-init/.claude/skills/browser-e2e/SKILL.md

browser-e2e

Skill2 starsChanged 5 months agoMITView on GitHub

Browser-driven E2E discipline. Thin pointer — defers to anthropics:webapp-testing plugin for Python Playwright scripts and to playwright MCP / chrome-devtools MCP / Claude in Chrome based on the situation. Use when verifying any web change.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a project has no coverage tooling yet, the autopilot verifier must skip the gate and flag ESCALATION in OVERNIGHT_REPORT.md.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Browser-Driven E2E

Decide which tool before writing code:

GoalToolWhy
Authenticated user journey (Gmail, your admin panel, Notion)Claude in Chrome (claude --chrome)Uses your real cookies
Deterministic CI test, no authanthropic:webapp-testing pluginPython Playwright + with_server.py lifecycle helper
Exploratory drive (clicks, fills, snapshots)playwright-mcpSnapshot-based deterministic refs
Perf, network, Lighthousechrome-devtools-mcpFull DevTools, traces
Visual regressionChromatic / Percy / Argos (out of band, CI)Pixel diff at PR time

The user-journey pattern (playwright-mcp)

1. browser_navigate(url)
2. browser_snapshot()                    # capture a11y tree
3. browser_click(ref: "<from snapshot>")
4. browser_fill(ref: "...", value: "...")
5. browser_wait_for(text: "Welcome")
6. browser_take_screenshot(filename: "verify/<date>/step-<n>.png")
7. browser_console_messages()    # assert: no errors
8. browser_network_requests()    # assert: 200 on critical endpoints

The codegen-then-expand pattern

npx playwright codegen http://localhost:3000
# perform the journey by hand
# save as tests/e2e/<feature>.spec.ts
# feed to researcher agent: "expand with edge cases per the spec acceptance criteria"

Hard rules

  • Real-ish data. Fresh seeded DB or test tenant. No internal mocks.
  • Capture at every step. Screenshot before and after the critical action.
  • Assert on the journey, not implementation. "User sees dashboard" > "div.welcome present".
  • Negative paths. Bad password, missing field, expired session. Each gets a step.
  • Save artifacts. verify/<date>-<feature>/ is the home.

Coverage gate ("100% coverage" enforcement)

Per CLAUDE.md §VII, the verifier captures coverage alongside screenshots. .claude/scripts/verify.sh enforces:

TierThresholdSource
Line coverage≥ 80% on changed filesc8 (Node), coverage.py (Python), go test -cover
Branch coverage≥ 70% on changed filesc8, coverage.py
E2E user journey100% of spec acceptance criteriaone Playwright step per criterion

Configure your test runner to emit coverage/coverage-summary.json (c8 / @vitest/coverage-v8 / coverage report --format=json). The gate reads that file and fails on threshold breach.

For UI-specific coverage:

  • Playwright + c8: c8 --reporter=json-summary playwright test produces the summary verify.sh reads.
  • @playwright/test built-in: enable trace in playwright.config.ts, post-process for code coverage.

If a project has no coverage tooling yet, the autopilot verifier must skip the gate and flag ESCALATION in OVERNIGHT_REPORT.md. Never fake-pass without the report. Set SKIP_COVERAGE=1 for explicit short-term skips.

References

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.