Write end-to-end tests from approved acceptance criteria, in whatever the repo already uses. If the repo has Playwright, Cypress or another E2E framework, write idiomatic tests there with resilient, user-facing locators and assertions on outcomes. If Kane CLI is installed, express the checks as plain-English Kane objectives or designed _test.md tests instead of hand-written scripts. Use after kane-test-intent, or when asked to add, write or generate E2E, UI, browser or end-to-end tests for a change.
Ships in kane-testing-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.
Input: an approved intent block from kane-test-intent. If there is none, run that skill first; do not write a test without criteria.
The criteria are the contract. This skill only decides how to express them.
If the official kane-cli skill is also loaded: repo convention decides the format of committed tests (this skill). The kane-cli skill decides how a Kane CLI run is launched and reported.
Check, in order, and use the first that applies:
*_test.md files, or a .testmuai/ folder): write Kane tests. Go to "Kane CLI path".playwright.config.*, cypress.config.*, wdio.conf.*, a tests/e2e folder, or an e2e script in package.json. Write tests in that framework. Go to "Framework path".command -v kane-cli succeeds): offer Kane objectives. Go to "Kane CLI path".Never mix two E2E frameworks in one PR. Never convert a team's existing tests to another framework unless asked.
Kane CLI tests are plain English. There are no selectors to write.
If the official kane-cli skill is installed (a kane-cli/SKILL.md exists under .claude/skills, .agents/skills, ~/.claude/skills, ~/.agents/skills or ~/.gemini/skills): follow it for authoring. It routes test-case creation through the assurance commands. The approved intent block from kane-test-intent is the requirements file it asks for:
kane-cli context ingest tests/intent/<slug>.md --mode agent
kane-cli design tests --use-case <use-case-ref> --mode agent
Take <use-case-ref> from the ingest/extract output; do not invent one. Kane CLI designs its own acceptance criteria from the file. After design tests, compare the designed criteria with the approved intent block, one to one. If Kane CLI added, dropped or reworded a criterion, or changed an expected value, show the difference to the user and wait for a yes before running. With no person to ask, run only the designed tests that match an approved criterion and list the rest as not covered.
For a quick check without a saved suite, turn each [e2e] criterion into one objective. Pattern: start URL, actions as intent, literal data, end on a check of what is on screen.
Go to https://staging.example.com/cart, apply the promo code "SPRING10",
then verify the discount line shows "-$4.20" and the total shows "$37.80"
Rules for objectives (from the Kane CLI agent guide):
--url.verify or assert on the resulting state. A check on a button that disappears on success fails exactly when the feature works.store ... as 'name' to capture a value; refer to it later in plain English ("the stored order_id value"), not {{order_id}}."secret": true. Never inline them.Hand the objectives to kane-run.
Match the repo first: folder, file naming, fixtures, page objects, baseURL, test data helpers. Read two existing tests before writing one.
Then follow these rules. They are what keeps a test from breaking on every UI tweak:
test('expired promo code shows an error and keeps the total', ...).getByRole with an accessible name, getByLabel, getByPlaceholder, getByText, then getByTestId if the repo uses test ids. No CSS class or XPath selectors unless nothing else identifies the element.await expect(locator).toHaveText(...), toBeVisible(), toHaveURL(...). Never page.waitForTimeout(...) or fixed sleeps.kane-failure-triage, not a fix.See references/playwright-patterns.md for a full example built from an intent block.
At the end, print a table the PR skill will reuse:
| # | Criterion | Test |
|---|-----------|------|
| 1 | Valid code shows -$4.20 and total $37.80 | tests/e2e/promo.spec.ts › "valid code applies discount" |
| 2 | Expired code shows error, total unchanged | tests/e2e/promo.spec.ts › "expired promo code ..." |
Every criterion gets a row. A criterion with no test is listed with not covered and a reason. Do not hide gaps.
Run them with kane-run. Do not claim they pass until kane-run reports a real result.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/kane-failure-triageClassify a failing or flaky end-to-end test before touching it, as a real product bug, a changed UI path, a changed requirement, an environment problem, a flaky test, or a wrong test, and apply the fix that matches. Repairs how a test reaches its target, never what it checks. Use when an E2E, UI, browser, Playwright, Cypress or Kane CLI test fails, fails intermittently, passes only on retry, or when asked to fix a red build or flaky test./kane-pr-evidenceWrite the testing section of a pull request description so a reviewer can see, in under a minute, what was verified, against which acceptance criteria, what passed or failed, and where the evidence is. Use when opening or updating a PR, or when asked "what did you test?", and only when the change has user-facing behaviour or tests were run in this session; skip docs-only, dependency-only and config-only PRs. Reuses results from kane-run; never claims a check that did not run./kane-runRun end-to-end checks and report a verdict only from real evidence. Uses Kane CLI (kane-cli) when it is installed and signed in, and otherwise falls back to the repo's own test runner (Playwright, Cypress, npm/pnpm scripts, pytest). Never reports a pass without a process exit code and a result artifact. Use when asked to run, verify or check tests or a change in a real browser, after writing tests with kane-write-e2e, or before saying a user-facing change is done./kane-testing-skills:kane-write-e2efrom kane-testing-skills
npx claudepluginhub lambdatest/kane-testing-skills --plugin kane-testing-skills