Look at Kiln's UI in a real browser, and run its end-to-end tests. Use when checking UI you are changing, taking a screenshot of the app, driving the app with playwright-cli, starting the dev sandbox with playwright_server.sh, running or debugging `npm run tests:e2e`, or working with the seeded fixture project that gives the app's screens data to render.
75
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Two separate things share one browser install:
playwright-cli — a browser you drive from the shell, for looking at the UI
you are changing and taking screenshots of it. This is what you want when
building UI.npm run tests:e2e — the end-to-end suite, in app/web_ui/tests/e2e.If neither works, the install is probably missing: bash .config/utils/setup_env.sh --add-playwright adds the browser and playwright-cli (~800 MB together). See that
script's --help for what a cloud environment needs.
Start a server, open the app, and land on a page with data in it:
.agents/scripts/playwright_server.sh start # prints http://localhost:6544start prints the next three commands with the seeded ids already filled in. Run
all three, in that order — the app redirects to a task picker without the
localStorage state, whatever URL you ask for:
playwright-cli open http://localhost:6544
playwright-cli localstorage-set ui_state \
'{"current_project_id":"<id>","current_task_id":"<id>","selected_model":null}'
playwright-cli goto http://localhost:6544Then goto any deep link you like. stop when you are done, status if you are
not sure what is running.
The sandbox keeps its data in app/web_ui/.agent_dev_home and is seeded from a
committed fixture project, so the screens have content instead of an onboarding
wizard. It never touches real Kiln projects.
If OPENROUTER_QA_KEY is set in the environment, seeding writes it into the
sandbox's settings and the app comes up with OpenRouter connected, so live model
calls work. start reports it when it is there — assume nothing is connected
until it says so.
When it is connected, it is a real key on a hard, low limit — a runaway loop hits it and the next person gets nothing. Use it when a live call is the only way to check what you are working on, and:
ui_state hint start prints already
preselects it in the model dropdown, so running as-is costs you nothing and
picks the cheap model. Change it only when the model itself is what you are
testing.pytest --runpaid / --runprerelease read
OPENROUTER_API_KEY, which is deliberately a different variable).references/seeded_project.md has the details.
Never trust the first frame. A screenshot taken right after open or goto is
very often blank white, and nothing says so. snapshot is not a usable gate — the
DOM is complete before Chromium paints. Settle the page first:
playwright-cli run-code "async page => await page.waitForLoadState('networkidle')"
playwright-cli screenshot --filename=/tmp/ui.pngNever redirect a playwright-cli failure into /dev/null. It reports failures
on stdout and exits 1, so >/dev/null 2>&1 — the thing you add to keep a
transcript readable — hides the entire reason a command failed. Discard output if
you must, but then test $?.
Never guess a locator's role. Kiln styles links as buttons. Run find first and
write the locator from what it reports — and prefer clicking the ref it gives you,
which is a single element by construction and cannot go strict-mode ambiguous.
Load only what the task needs.
| File | When |
|---|---|
| references/driving_the_ui.md | The command surface, and the locator traps in Kiln's UI specifically — duplicate labels, dropdowns, collapsed sections |
| references/e2e_suite.md | Running, reading, or debugging npm run tests:e2e |
| references/seeded_project.md | What the fixture contains, screen by screen, and whether a model provider is connected. Check here before concluding a screen is broken because it came up empty |
| references/search_tool.md | The Docs & Search / RAG part of the fixture, and what a sandbox with no API key can still do with it |
| references/extending_the_fixture.md | reset and snapshot — changing what future sessions start from |
24abe23
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.