/kane-cli-testmu:run-kane-testsfrom Kane CLI Agent Tests
Use only when the user asks to run, execute, verify or check end-to-end tests, agent tests or the criteria in tests/kane/. Runs tests written in the repo's own framework with the repo's own runner, locally. Runs Kane CLI checks in a real browser only after checking that cloud runs are allowed in this plugin's settings and that the user is signed in, and after showing exactly what a run sends. Reports a verdict only from real evidence. Needs a real terminal; Kane CLI runs also need network access. Not for writing tests, not for unit tests, and never when the user has not asked to run tests.
Ships in Kane CLI Agent Tests. 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 check passed when Kane CLI exited with success and left a result you can point to. If nothing ran, the result is "Not run", and you say why.
Cloud runs setting for this plugin: ${user_config.cloud_runs}
kane-write-e2e): run them with the repo's own runner, locally. Nothing in that path touches TestMu AI. Go to "Repo runner path" at the end of this skill, then Step 4.e2e criteria in tests/kane/, or _test.md files): these are cloud runs. Go to Step 1.Cloud runs are allowed only when all three are true:
true. Any other value, including an empty one, means cloud runs are off. Tell the user they are off, not what the value was.tests/kane/.kane-cli-testmu.yml does not contain cloud_runs: local-only.kane-cli whoami exits 0 (installed and signed in).Check them in this order and stop at the first one that fails. Every kane-cli command except help and version sends Kane CLI's usage logs, and whoami is one of them. They cannot be switched off. So do not run any kane-cli command while point 1 or point 2 fails. To see whether Kane CLI is installed without running it, use command -v kane-cli.
If the file in point 2 says local only, stop: remind the user they chose local only for this project and that their tests stay as files. Do not ask again in this project unless the user asks to change it.
If all three are true, go to Step 3. Otherwise go to Step 2.
You must not get past this gate any other way. Do not change this plugin's settings or any settings file. Do not read a credential from the environment or from any file. Do not answer the choices in Step 2 yourself: if there is no reply from the user, stop.
Show this list word for word:
A Kane CLI cloud run sends the following to TestMu AI:
the text of each check you run
the pages the browser visits during the run, and screenshots of them
the run's steps and results, saved to your TestMu AI account as a Test Manager test case (Kane CLI has no option to skip this)
browser console and network logs for the run, which can include tokens or other secrets your app puts in requests
your TestMu AI account name and email
Kane CLI's usage logs on every command except help and version: command start and end events and error codes. Before you sign in they are anonymous and carry a machine id.
Runner and agent telemetry during the run, and one analytics event when it completes.
None of the logs or telemetry above can be switched off.
TestMu AI's servers use third-party AI model providers to plan and check each step of the run.
The full table, with destinations, is in this plugin's README.
Then offer exactly these three choices and wait for the user:
kane-cli login --oauth and approves the request in their browser.cloud_runs: local-only to tests/kane/.kane-cli-testmu.yml and stop.Rules:
kane-cli login --oauth.npm install -g @testmuai/kane-cli (Node.js 18 or later) and let the user run it.whoami exits 3, say Kane CLI could not reach TestMu AI and stop. Do not suggest signing in again.Make sure the app is reachable at the intent's Start URL. For each e2e criterion in the intent files the user asked for, write one plain-English objective from the criterion text and run it:
kane-cli run "<objective ending in verify ...>" --agent --headless --timeout 300
For a saved test the repo already has:
kane-cli testmd run <path>_test.md --agent --headless
Run only what the user asked for. Do not add flags that share, publish or export results. Objective rules and the result fields are in references/kane-cli-cheatsheet.md.
Read the result in this order: the exit code (0 passed, 1 failed, 2 did not start, 3 timed out or cancelled), then the completion event on stdout, then the evidence pack path on stderr.
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: it carries the repo's env and setup.Do not install a framework or any package without the user's yes. Read the result from the exit code and the runner's report, and note the path of the artifact it produces (HTML report, trace, screenshots, JUnit XML).
The same agent wrote the code and the tests, so a passing test can share the code's blind spot. Only if the gate in Step 1 is already open (setting on, signed in, not local only), you may offer once per session: "Want an independent check? I'll write one Kane CLI check per e2e criterion from the criteria text, not from the test code." On yes, run it as in Step 3 and report it in its own column. If the gate is not open, do not mention Kane CLI here at all.
Report per criterion:
| # | Criterion | Result | Evidence |
|---|-----------|--------|----------|
| 1 | Valid code shows -$4.20, total $37.80 | Passed | evidence pack path |
| 2 | Expired code shows error, total unchanged | Failed | step 4: total showed $37.80 |
| 3 | Code survives reload | Not run | blocked by #2 |
Add an "Independent check" column only if one ran.
Allowed results: Passed, Passed after heal, Failed, Not run, Did not start. Nothing else. No "should pass", "likely passes" or "verified by inspection".
Rules:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lambdatest/kane-cli-plugin --plugin kane-cli-testmu5 skills in this plugin
/kane-failure-triageUse only when the user asks to fix, debug or triage a failing or flaky end-to-end, UI, browser, Playwright, Cypress or Kane CLI test, or a red build caused by one. Classifies the failure first, as a real product bug, a changed UI path, a changed requirement, an environment problem, a flaky test or a wrong test, then applies the fix that matches. Repairs how a test reaches its target, never what it checks. Reads the evidence already on disk. Reruns framework tests with the repo's own runner, and reruns Kane CLI tests only through the run-kane-tests gate./kane-pr-evidenceUse only when the user asks what was tested, or asks for the testing section of a pull request description, and tests were run in this session. Writes a short Tested section: the acceptance criteria, what passed or failed, how it ran and where the evidence is. Reuses results from run-kane-tests and never claims a check that did not run. Adds no credit line or promotion. Skip docs-only, dependency-only and config-only PRs./kane-write-e2eUse only when the user asks to add, write or generate end-to-end, UI or browser tests for approved acceptance criteria. Writes the tests in whatever the repo already uses: idiomatic Playwright, Cypress or another framework if one is present, or plain-English Kane CLI objectives if the repo already uses Kane tests. Local file writing only; it runs nothing. Use after scaffold-agent-tests. Not for unit tests, and never when the user has not asked for tests./scaffold-agent-testsUse only when the user asks to set up, scaffold, plan or write agent tests, end-to-end tests or Kane tests for the app in this repository, for example "set up agent tests for this app". Reads the repo, proposes test intents with acceptance criteria a user could observe, and writes them to tests/kane/ only after the user agrees. Fully local, needs no account, runs nothing. Not for unit tests, refactors with no behaviour change, or docs-only and config-only changes, and never when the user has not asked about testing.