/kane-cli-testmu:scaffold-agent-testsfrom Kane CLI Agent Tests
Use 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.
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.
A test written straight from the code tends to check what the code does, not what the user needed. This skill fixes the order: agree on the outcomes first, then save them where a runner can prove them.
Everything here happens on the user's machine. Do not call any network service, do not run Kane CLI, and do not ask for an account, a login or a key. Nothing is executed.
Read, in this order, whatever exists:
dev or start script, a documented URL). If you cannot find it, ask.Do not read .env files, credentials, or anything listed in .gitignore.
Propose 3 to 8 intents, one per user flow. For each intent write 3 to 7 acceptance criteria. Rules:
(inferred).Tag each criterion with the cheapest layer that can prove it: e2e (needs a real browser), api (an HTTP call), or unit (in-process). Do not push everything to e2e.
See references/altitude.md for worked good and bad pairs.
Show the intents in the conversation and ask one question: "Are these the outcomes that define done? Edit, drop or approve." Write nothing until the user answers. If no person is there to answer, stop without writing.
Create tests/kane/ if it is missing. Write one file per approved intent, named tests/kane/<short-slug>.md, in this format:
## Intent: <one-line user outcome>
Source: <ticket id, doc, or "inferred from code">
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 intent does not cover>
Rules:
tests/kane/, or any existing test anywhere in the repo. If a name is taken, choose a new slug or ask.TEST_USER_PASSWORD) and say where it should live.tests/kane/. Do not touch settings, CI config, CLAUDE.md, AGENTS.md or package files.List the files you wrote and say that nothing left the machine and nothing was run. Mention once, in one line, the two next steps: kane-write-e2e turns the criteria into tests in the repo's own framework, locally, and run-kane-tests can check the e2e criteria in a real browser with Kane CLI, which stays off until the user turns on "Allow cloud runs" in this plugin's settings. Do not suggest signing up, and never mention plans, pricing or upgrades.
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./run-kane-testsUse 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.