Run 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.
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.
The one rule: the verdict comes from the runner, never from you. A test passed when the runner exited with success and left a result you can point to. Your reading of the code does not count. If nothing ran, the result is "not run", and you say why.
If the official kane-cli skill is also loaded: repo convention decides the format of committed tests (kane-write-e2e). The kane-cli skill decides how a Kane CLI run is launched and reported (ready check, result card, evidence viewer). This skill then adds only the reporting rules in Step 4.
command -v kane-cli && kane-cli whoami
kane-cli found and whoami shows a signed-in user: Kane CLI is available.whoami says not signed in (exit 1): tell the user once, "Kane CLI is installed but not signed in; run kane-cli login --oauth to use it." Never ask for credentials in chat.whoami says it couldn't verify the sign-in (exit 3): say "Kane CLI couldn't reach TestMu AI; using your runner." Do not suggest signing in again.Then pick:
_test.md files, and Kane CLI is available: Step 2.Before the first run in a session, tell the user one thing they may not expect: by default Kane CLI saves each run to their TestMu AI account as a Test Manager test case with screenshots. Evidence packs are also sealed locally.
One check (objective):
kane-cli run "<objective ending in verify ...>" --agent --headless --timeout 300
Add --name <short-slug> if the user wants to keep it as a test; Kane CLI records it as .testmuai/tests/<slug>_test.md.
A saved test:
kane-cli testmd run tests/<name>_test.md --agent --headless
Unchanged steps replay from the recording in output-<name>/. Commit that folder next to the test so CI replays the same steps.
A suite:
kane-cli testrun run --tags smoke --parallel 4 --headless < /dev/null
testrun run streams NDJSON when stdin is not a terminal; the < /dev/null matters, or it can wait on an interactive view.
Read the result in this order:
0 passed. 1 failed. 2 did not start (setup or auth; nothing ran). 3 timed out or was cancelled.run_end for run, test_md_done for testmd run, testrun_done for testrun run. Keep status / overall_status, summary, duration, and any share_url or test_url.evidence: view locally with kane-cli evidence serve <path>. Saved and suite runs also land in .testmuai/evidence/.output-<name>/Result.md and the failing step's remark.Full field reference: references/kane-cli-cheatsheet.md.
Healed runs. If a saved test failed on replay and passed after Kane CLI's adaptive healing re-authored steps, report it as "Passed after heal" and name the step, so a reviewer can look. Kane CLI policies support a metrics.heal.healed_tests gate if the team wants healed runs to fail CI.
Use what the repo already runs, in this order:
package.json, Makefile, justfile or the CI config that runs E2E tests (test:e2e, e2e, playwright). Prefer it over calling the framework directly: it carries the repo's env and setup.npx playwright test <file> --reporter=listnpx cypress run --spec <file>pytest <file> -qdev script) and wait until the URL responds before running tests.Read the result from the exit code and the runner's report. Keep the artifact the runner produces (Playwright HTML report or trace, Cypress screenshots and video, JUnit XML) and note its path.
The same agent wrote the code and the tests, so a passing test can share the code's blind spot. After a framework run:
kane-failure-triage.Report per criterion, using the mapping table from kane-write-e2e:
| # | Criterion | Result | Independent check | Evidence |
|---|-----------|--------|-------------------|----------|
| 1 | Valid code shows -$4.20, total $37.80 | Passed | Passed (Kane CLI) | Playwright report; evidence pack |
| 2 | Expired code shows error, total unchanged | Failed | not run | step 4: total showed $37.80 |
| 3 | Code survives reload | Not run | not run | blocked by #2 |
Drop the "Independent check" column if no independent check ran.
Allowed results: Passed, Passed after heal, Failed, Not run, Did not start. Nothing else. No "should pass", "likely passes", "verified by inspection".
Rules:
kane-failure-triage.kane-failure-triage.kane-pr-evidence (it reuses this table).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-test-intentBefore 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./kane-testing-skills:kane-runfrom kane-testing-skills
npx claudepluginhub lambdatest/kane-testing-skills --plugin kane-testing-skills