/uiverify-workflow:e2e-verify (optional - exact app URL or app port if the stack is already running)from UI Verify Workflow
Starts dev stack on isolated ports, authenticates Playwright with the user's browser session, and runs E2E tests on the current branch.
Ships in UI Verify Workflow. 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.
None: SKILL.md is the whole skill.
Starts your dev stack, authenticates Playwright with the user's real browser session, and tests the current branch. Runs in a forked context (context: fork) to keep screenshots and DOM snapshots out of the main conversation.
The stack is your whole app end-to-end. Use your dev command - ideally one that isolates the HTTP port so several worktrees can run at once, while sharing the one DB + storage.
There are exactly three cases:
Case A: User provided an exact app URL (e.g., /e2e-verify http://localhost:3020).
Use that exact URL for both authentication and Playwright navigation. If the URL includes localhost, keep using localhost - never swap it for 127.0.0.1. Skip starting the stack.
Case B: User provided a port number (e.g., /e2e-verify 3020).
Use http://localhost:<port> as the app URL. Skip starting the stack - assume it's already running.
Case C: User did NOT provide a URL or port. You MUST start the stack yourself. Do NOT probe random ports to see what's running - another worktree's stack could be on those ports.
<your dev command>
Run this in the background. The command brings up the shared DB + storage (it does NOT migrate - run your one-time setup/migrate command first if the schema is stale), then starts the app and prints a banner with the assigned port(s), e.g.:
App: http://localhost:3110
DB: shared
Storage: shared
Logs: <your log dir>
Service output goes to per-service log files (not stdout), so the banner is the only stdout you need.
Prerequisite: the dev command may require credentials for the human dashboard session (your auth provider's keys) - only the human dashboard session needs them. If the command errors that credentials are missing, tell the user how to provide them, then stop. (Skip this prerequisite if your dev command needs no credentials.)
Reading output efficiently (important for token usage):
head -30). Do NOT read the full output.tail -50 its log file in the printed log dir. The log files are your app's per-service logs (e.g. one per backend/frontend/worker process).tail -50 and only increase if needed. NEVER cat or Read an entire log file.Parse the exact app URL from the banner and keep using that exact URL for the rest of the task.
Wait up to 90 seconds for the app to be healthy - a listening TCP port is not enough; require a real HTTP response (a redirect to the login page is fine - it means the server is up):
# GET (not --head): some frameworks (e.g. Next's App Router) compile the route on
# first request and don't answer HEAD until then. --fail treats only 4xx/5xx as
# failure, so a redirect to the login page still counts as healthy.
curl --fail --silent --max-time 60 --retry 9 --retry-delay 10 --retry-connrefused <app-url>/ -o /dev/null
If the exact app URL never returns a healthy HTTP response, tail -50 the app's log, fix the stack, and do not authenticate Playwright until it's healthy.
Always tell the user which exact URL the app is running on, e.g.:
App is running on http://localhost:3100
The dashboard auths via your auth provider and stores the session token in a cookie. Cookies are not port-scoped, so a token captured at any localhost port works for whatever slot port the stack is on. The user must be logged in to the dashboard in their normal browser (Arc/Brave/Chrome/Dia/Edge). (Skip this whole step if your app has no auth.)
Use the same exact URL for extraction and navigation. Never mix localhost and 127.0.0.1 in the same run.
<your cookie-extraction command> <exact-app-url>
This decrypts the session cookie from the user's browser and writes a cookies JSON file. If it hangs, a macOS Keychain dialog is waiting - ask the user to click "Allow" / "Always Allow". If it reports no cookie found, the user isn't logged in at that host - ask them to open the dashboard in their browser and sign in, then retry.
Read the cookies JSON file, then call mcp__playwright__browser_run_code, inlining the cookies array directly into the code string (browser_run_code cannot read files from disk):
async (page) => {
const cookies = <CONTENTS_OF_cookies_ARRAY_FROM_JSON>;
await page.context().clearCookies();
await page.context().addCookies(cookies);
await page.goto('<EXACT_APP_URL>/dashboard', { waitUntil: 'commit' });
await page.waitForTimeout(2500);
return { url: page.url(), title: await page.title() };
}
If the user gave specific test instructions (e.g., "test the review flow", "test that the diff viewer renders", "test creating a project"), follow those exactly. Do NOT analyze the git diff - go straight to what they asked.
Only if the user gave no specific instructions (e.g., "test everything", "test this branch"), analyze the branch changes:
git diff --name-only origin/<default-branch>...HEAD
Read the changed files to understand the feature/fix, then determine what to test. Map the changed files to the surfaces that exercise them - e.g. frontend/UI changes → the app's pages and API routes; backend/worker changes → the background behavior observable through the UI (a job's output, a status that flips); CLI/entry-point changes → the flow that triggers them.
Navigate to the relevant dashboard pages and exercise the change:
All scratch artifacts (screenshots, DOM snapshots, console dumps, any .md notes) MUST be written under .e2e-verify/ at the repo root - it's gitignored. Never write these to the repo root or any source directory.
mkdir -p .e2e-verify
Use paths like .e2e-verify/step1-build-list.png. When calling Playwright's browser_take_screenshot, pass a filename under .e2e-verify/.
Driving the change usually means writing a throwaway assertion - a browser_evaluate that reads back
computed geometry, a request payload, a bit of state - and that assertion is very often exactly the
regression test the change needs. It was precise enough to convince you the feature works, so it is
precise enough to stop the feature silently breaking later. Once it's scrolled out of the transcript
it protects nothing.
So before you tear the stack down: for each invariant you verified this way, check whether a spec in
<your e2e spec directory> already reaches that surface (git ls-files <your e2e spec directory>, then grep for
the page or component). If one does, add the assertion to it - usually a couple of lines, and it
then runs on every PR via your CI e2e check. If no spec comes close, say so in your report rather than
scaffolding a new suite mid-verification; a named gap is a decision for the user, a silent one isn't.
Judgment applies: persist the invariant the change is about (the thing that would make the feature wrong if it broke), not every incidental value you happened to read.
After all testing is complete:
Remove the scratch directory so the next run starts clean:
rm -rf .e2e-verify
Exception: if testing failed and the user may want to inspect artifacts, leave .e2e-verify/ in place and tell the user where to look (it's gitignored either way).
Kill the dev stack - only if you started it (Case C). The dev command traps its signals and tears down both services + releases the slot:
kill <dev-command-pid>
If the user provided a URL or port (Case A or B), do NOT kill the stack - they manage it themselves.
localhost for 127.0.0.1, or vice versa.What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
npx claudepluginhub uiverify/uiverify --plugin uiverify-workflow8 skills in this plugin
/add-ruleTurn a code-owner correction (or a recurring mistake) into a durable rule - the right conventions-doc edit, and a real failing lint guard whenever the rule is mechanically checkable. This is the self-improving loop the factory leans on - when something goes rogue, capture it so the linter/conventions-doc catches it next time instead of a human re-explaining it. Also runs as a weekly sweep over recent merged work. Use when asked to "/add-rule", "turn this into a rule", "make sure this never happens again", "capture this correction", "add a lint guard for X", or "do the weekly rule review"./babysit-prRaise a pull request from the current branch and babysit it to green. Opens the PR, then polls CI (~every 10 min) until every check passes, reacting to each failure by reading the logs, fixing locally, and pushing. When a failure exposes a generalizable lesson it proposes capturing it as a rule (via /add-rule). Does NOT approve or merge. Use when asked to "raise a PR", "open a PR and watch it", "push this and monitor CI", "get this PR green"./designMulti-model design/architecture loop - draft a design for a feature (or take an existing draft), critique it with two independent models in parallel against a repo-tuned rubric, then a principal-architect pass verifies each critique, resolves direction conflicts, and revises - iterating draft→critique→revise→re-critique until a clean cross-model pass or a round cap. The architecture analog of review-loop/review-multi-model, but there's no diff to check against, so critiques are anchored to a verbatim quote + a rubric dimension/requirement instead. Use when asked to "design X", "/design", "plan this feature", "architect this", "critique my plan", "give me a solid design before I build"./evaluate-runGrade a completed factory run (a worktree + its chat) against your standards, cold and adversarially, so the system learns. Squashes the session transcript into a compact digest (prompts + corrections, the ordered tool timeline, the diff), then a fresh evaluator judges how the run went - did it follow the loop, honor your conventions, write real tests, ask at the right moments, handle corrections - and routes every finding to a durable fix (/add-rule for code, a persistent memory for process). This is the OFFLINE complement to the correction hook - the hook catches what you notice live, this catches what you didn't. Use for "evaluate this factory run", "grade this chat", "how did that go, what should it learn"./factoryThe umbrella "I say what I want, it ships it" loop. Clarifies the ask up front only if genuinely ambiguous, triages the change to decide which phases it actually needs, then implements it and drives it to a merge-ready PR - walking only the phases that apply (design loop for non-trivial changes, always review-loop, e2e-verify only when the change has a runtime surface automated tests can't cover), and stopping mid-way only when it truly needs a decision. Does NOT auto-merge. Use when asked to "ship this", "/factory", "build X end to end", "run the whole loop", "make it and get it green"./review-loopIterative multi-model review-and-fix loop. Repeatedly runs the review-multi-model panel over the working tree, applies the verified fixes, and re-reviews - review → fix → review → fix - until a pass finds no verified bug or completeness gap (a missing story, test, or a now-false comment/doc) - each round sweeps completeness exhaustively so gaps land in one pass, not one per round. Use when asked to "review-loop", "loop the review", "keep reviewing and fixing until clean", "review until no issues", "iterate review-multi-model until it's clean".Other plugins' skills for the same job