Before writing end-to-end or user-flow tests, turn a ticket, issue, bug report or PR diff into 3-7 acceptance criteria a user could observe, and get them approved. Use when asked to test a user-facing feature or fix, plan what to verify in a PR, or before saying a user-facing change is done. Not for unit tests of a single function, refactors with no behaviour change, or docs/config-only changes. Does not run anything.
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.
A test written straight from a diff tends to check what the code does, not what the user needed. This skill fixes the order: first agree on the outcomes, then write tests that prove them.
Output of this skill: an intent block (a few lines of Markdown) that the other skills in this pack read. Nothing is executed.
Skip it for:
Read, in this order, whatever exists:
git diff --stat and then git diff against the base branch (git merge-base HEAD origin/main or the branch the user names).If there is no ticket and the diff is the only source, say: "No ticket found. I inferred these criteria from the diff; please confirm them." Inferred criteria must be marked (inferred).
Each criterion describes something a user or calling system can observe. Rules:
See references/altitude.md for worked good/bad pairs.
Tag each criterion with the cheapest layer that can prove it:
[e2e] needs a real browser or device: rendering, navigation, multi-step user flows, third-party widgets.[api] provable with an HTTP call.[unit] provable in-process with no I/O.Do not push everything to [e2e]. End-to-end checks are the slowest and most expensive; use them for what only a real user path can prove.
If the repo has no runner for the cheaper layer (a criterion a unit test could prove, in a repo with no unit tests), tag the next layer up that the repo can run, and say so in the PR. Do not add a test framework to make the tag fit.
Write it to the conversation, and, if the user agrees, to tests/intent/<short-slug>.md (or the folder the repo already uses for specs). With no person to ask, write the file only when a later step reads it (the Kane CLI path in kane-write-e2e does); otherwise keep the block in the session output and carry it into the PR. Format:
## Intent: <one-line user outcome>
Source: <ticket id or "inferred from diff <base>..<head>">
Start URL: <url or "local: <command that serves the app>">
Test data: <accounts, codes, fixtures needed; secrets by NAME only>
| # | Criterion | Layer |
|---|-----------|-------|
| 1 | <observable outcome with exact values> | e2e |
| 2 | ... | api |
Out of scope: <what this change does not touch and will not be checked>
Never write secret values (passwords, tokens, keys) into the intent block. Name the variable (TEST_USER_PASSWORD) and say where it should live.
Show the block and ask one question: "Are these the outcomes that define done? Edit or approve."
If no person is there to answer (CI, cloud agent, headless run), do not wait. Proceed, mark every criterion you could not confirm against a ticket as (inferred), and say in the PR that the criteria were not approved by a human.
kane-write-e2e.kane-run.kane-cli context ingest <file> --mode agent. Kane CLI then designs its own criteria from it; kane-write-e2e checks they still match the approved block before anything runs.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-write-e2eWrite 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./kane-testing-skills:kane-test-intentfrom kane-testing-skills
npx claudepluginhub lambdatest/kane-testing-skills --plugin kane-testing-skills