/howtoai-builder:webapp-testingfrom How to AI — Builder
Drives a running web app in a browser to verify it works using real user flows, console and network evidence, failure paths, and saved proof artifacts.
Ships in How to AI — Builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Open the app, use it the way a user would, and read what the browser reports — not just what it renders. The app is verified when a skeptic could re-check your claim from the artifacts you left behind.
The page looking right is one of four, and the weakest.
| Signal | How you get it | What its absence hides |
|---|---|---|
| Rendered state | Screenshot, or an assertion on visible text | Nothing — this is the easy one |
| Console clean | Listener attached before navigation, kept through the flow | Uncaught errors in handlers, failed hydration, dead click targets |
| Network clean | Every response's status, not just the document's | A 500 swallowed by try/catch under a green success toast |
| Side effect real | Reload and re-assert, or read it back from the API/datastore | Optimistic UI showing "Saved!" for a write that never landed |
Missing any of the four means unverified, not passing. The classic false pass is a screenshot of a correct-looking page whose network tab is full of red.
python3 scripts/with_server.py --server "npm run dev" --port 5173 -- <your command>
— starts servers in their own process group, waits until they actually answer
HTTP, prints the build log if one dies, kills everything after.python3 scripts/page_check.py --url http://localhost:5173 --out ./test-artifacts
Loads each URL, reports uncaught JS errors, console errors, failed/4xx/5xx
requests and blank renders, saves a screenshot plus report.json, exits 1 if
anything is broken. Run this before writing any flow — it catches most
breakage in one command.references/browser-driving.md.references/failure-paths.md.Escape hatch: if the environment offers an interactive browser tool, use it for reconnaissance and one-off looks — it's faster than a script for "what's on this page". Then encode anything you'd want to re-run as a script, because a click you did by hand is not evidence anyone can reproduce.
Verify what a user does start to finish: land → sign up → confirm → land on the dashboard with their data present. Widget-level checks pass while the seams between them fail, and the seams are where bugs live — the redirect after submit, the token that doesn't carry, the state that resets on step 3.
Work from the flows that would embarrass you if broken: signup/login, checkout or the primary conversion action, the create/edit/delete loop on the main object, and whatever you just changed. For each: happy path once, then the failure paths.
A browser test is the slowest, flakiest way to check anything that isn't a rendered interaction. Push it down a level when the subject is:
| Subject | Where it belongs |
|---|---|
| Pricing math, validation rules, date/permission logic | Unit tests — hand to test-driven-development |
| API contract, status codes, payload shape | A direct HTTP request in a test, no browser |
| "Does it look good / is the hierarchy right" | A design judgment pass, not an automated flow |
| A bug you're still trying to locate | Reproduce it, then narrow it down at the level it lives |
Browser-test what only a browser can answer: does the real UI, wired to the real app, do the thing when a person uses it.
Two habits prevent nearly all of it.
wait_for_timeout(2000) is a bet
that the machine is as fast as yours. Wait for the element, the URL, or the
response. A retried "flaky" test is an unverified test.nth-child chains
and generated class hashes encode the current layout, so they break on the
next restyle and tell you nothing when they do.State what you drove, what each of the four signals showed, and where the proof
is (./test-artifacts/checkout.png, report.json:12). Name what you did not
cover. If a step failed, the finding is the actual error text and the request
that produced it — not "there seems to be an issue with the API".
Before writing "it works", re-run the check against the current build; the
double-check skill covers evidence discipline for claims in general.
npm run dev) leaves the real process orphaned; the next run connects to yesterday's
code on the same port and passes. Kill by process group, or check what's
actually listening.click()
captures a spinner or a half-mounted layout, and the artifact then "proves"
something false. Assert the end state is visible, then shoot with animations
disabled.page.locator(".error") with no assertion,
expect(page).to_be_truthy(), or catching every exception and printing
"done" — scripts like these report success on a completely broken app. Confirm
the check can go red: break a selector on purpose once and watch it fail.--ignore) so what remains is real by construction.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rubenhassid1/howtoai-skills --plugin howtoai-builder7 skills in this plugin
/code-reviewReviews someone's code, and handles feedback on yours — intent first, issues ranked by consequence, blocking vs non-blocking labeled. Use for "review this code", "review my PR", "look at this diff", or "how should I respond to this review comment"./debug-systematicallyFinds the root cause of a bug instead of patching symptoms — reproduce, hypothesize, bisect, explain the mechanism. Use for "debug this", "why is this failing", "this test is flaky", "works locally but not in prod", or "I can't figure out why"./git-worktreesRuns work in an isolated git worktree and closes the branch out cleanly. Use for "git worktree", "work on this in isolation", "finish this branch", "clean up my branch", "how do I merge this back", or removing a worktree without losing work./mcp-builderBuilds MCP servers an agent can actually use: tool design, results that fit the context budget, actionable errors, transport, auth. Use for "build an MCP server", "add an MCP tool", "expose my API to an AI assistant", or when tools get picked wrong./parallel-agentsSplits work across subagents running at once — what genuinely parallelizes, briefing each one cold, verifying what comes back. Use for "run these in parallel", "use subagents", "fan this out", "split this work up", or "delegate these tasks"./test-driven-developmentDrives implementation with the test written before the code — red, green, refactor — and knows when test-first is wrong. Use for "TDD", "write tests first", "test-driven", "add tests for this", "red green refactor", or adding a regression test.Other plugins' skills for the same job