/skills:test-in-browserfrom skills
Opens the app in a browser to test flows like signup, checkout, or bug reproduction. Uses Playwright to assert each step, capture screenshots, and report pass/fail/unchecked results.
Ships in skills. 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.
Pick the entry route, test data, and visible outcome. Use the project's browser runner and fixtures when available. Use an isolated local or test environment for writes. Start the app with its documented command if needed, poll readiness with a timeout, and stop any process you started after the run.
Open a clean browser context. Inspect the rendered page after its first relevant control is ready. Prefer locators by role and accessible name or label, scoped to the relevant form or region. Use Playwright's auto-waiting and assert the expected state directly. Pages with polling or streaming may never go idle.
Walk the happy path and one relevant failure or retry. Assert the visible result at each transition. Where the outcome must persist, check it after reload or read it back from the test fixture. Capture screenshots after assertions at the widths that matter, 320 among them, and check that each region's content fits inside it, not only that the page does not scroll sideways. Use synthetic data and keep credentials and verification codes out of artifacts.
On failure, record the route, viewport, last passing step, and first failing assertion. Capture the current page and relevant console or request errors. If a fix is in scope, reproduce the failure before changing code, then rerun the same path and any neighboring path it affects.
Look at every screenshot before you report: text assertions pass over a broken layout. Report each fault you see; when fixing is in scope, reproduce it as an assertion that fails first, then fix it.
Report which outcomes passed, where each screenshot was taken, and which states remain unverified. See example.md for a reservation flow in four browser configurations at three widths.
Based on anthropics/skills (Apache-2.0), rewritten by Copybook.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/add-pre-commit-checksUse when asked to add pre-commit hooks, set up Husky or lint-staged, stop bad commits, or run Prettier and type checks on commit. Sets up a pre-commit hook that formats staged files, type-checks with the project config, and runs related tests, proven by blocked and fast commits. Not for picking a test set for a change (run-affected-tests)./build-throwaway-prototypeUse when asked to prototype, spike, try an idea out quickly, sanity-check a state model or logic, or mock up what a UI should look like. Builds a throwaway prototype that answers one named design question from one command or one HTML file while leaving production code untouched. Not for building a finished production page (design-web-page)./check-current-docsUse when asked to use the latest docs, check if an API is still current, check which version the project is on, follow modern HTML or CSS best practices, or avoid outdated patterns; also when adding or changing code that calls a library pinned in the project, such as validation with a schema library. Reads the project lockfile and manifest, checks the official docs or browser guidance for the exact pinned versions, implements the current pattern without deprecated calls, and cites each choice with its URL, version, and date read. Not for moving existing code off an old API (migrate-off-deprecated-api)./check-live-deployUse when asked if a merge is live, if the deploy worked, or to check production after shipping and merging. Verifies that the canonical public URL serves the merged commit past any cache and that the change itself works live, reporting live, not live or unknown with evidence. Not for checking code before a merge (verify-work-done)./check-skill-before-installUse when asked to find a skill for a task, if there is a skill that helps, how to do something with an agent, which plugin to use, or to install a skill. Finds two or three candidate skills, reads each one for scripts, network calls, file writes, licence, and name clashes, and recommends one pick with a proposed install command. Not for getting a second opinion on a plan or trade-off (get-second-opinion)./find-root-causeUse when something is broken: a bug, a failing test, a build error, "it doesn't work", or a fix that didn't hold. Reproduces the failure, traces it to the line where it starts, proves one cause with one change, fixes every copy, and stops with a report after two failed fixes. Not for checking finished work before saying done (verify-work-done).npx claudepluginhub heyvhuang/copybook-skills --plugin skillsOther plugins' skills for the same job