Kerno endpoint test
This skill should be used when the user asks to generate, validate, or update endpoint tests, run scenarios, test an API route, run security tests, or run /kerno-endpoint-test. Guides kerno_list_endpoints, kerno_endpoint_test (generate vs validate vs update, plus effort/box_testing_strategy/tags), kerno_job, and plan-review feedback gates.From its SKILL.md
npx -y skills add kernoio/kerno-mcp-plugin --skill kerno-endpoint-testAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, as published. Nobody here has run it
Kerno MCP — endpoint test workflow
Use when the user wants to generate scenarios, validate existing scenarios, or test a specific HTTP endpoint.
References (read before acting):
references/endpoint-test-types.md—type,effort,box_testing_strategy,tags, feedback gates, verdicts, after code changesreferences/state-and-jobs.md— read plane andkerno_jobwhen jobs stallreferences/changes-detected.md— optional post-edit hookreferences/unified-flow.md— anti-patterns
Preconditions
kerno_environment_statusreportsready_for_endpoint_test: truefor theapp- If not ready, load
skills/kerno-environment-setup/SKILL.mdfirst
Step 1: Discover endpoints
Call kerno_list_endpoints with workspace_path, required scope, and optional app. Inspect existingTests per route — see endpoint-test-types.md.
Step 2: Choose type
Follow endpoint-test-types.md: generate when no scenarios exist or coverage should restart, validate to re-run existing scenarios after a code change, update when the endpoint changed intentionally and scenarios should follow. Do not hand-edit .kerno/scenarios/**/*.scenario.ts.
Step 3: Resolve testing intent
Before the first kerno_endpoint_test call for an app/endpoint, check the user's own rules files (CLAUDE.md, .cursor/rules, AGENTS.md) for a recorded kerno preference covering effort, box_testing_strategy and tags.
- Preference recorded → use it and say so.
- Nothing recorded → ask the user rather than silently taking defaults. Defaults are
effort: high,box_testing_strategy: white_box,tags: ["validation"].
Kerno stores no preferences. After launch, read resolved_intent in the response — if it lists anything under defaulted and the user has a standing preference, offer to save it to their own rules file. See kerno_guide (topic="rules_template").
Step 4: kerno_endpoint_test
Call with workspace_path, app, endpoint_method, endpoint_path, type, plus any of effort, box_testing_strategy, tags, test_generation_context, scenario_ids, interactive. Returns job_id, log_path, kind: endpoint_test, and resolved_intent.
For security coverage, pass tags: ["validation","security"] — security on its own replaces functional coverage rather than adding to it.
Step 5: kerno_job and feedback gates
Poll with sparse wait=false or read log_path — load skills/kerno-background-job/SKILL.md. Don't tight-loop.
A generate run always parks on a plan-approval gate while kerno_job still shows running — the gate is not visible there. An update run does the same when interactive: true. When the job stays running:
- Detect —
kerno_feedback_pending, orkerno_get_stateon the endpoint-test resource withuntil_status: ["awaiting_approval","awaiting_answer","ready","failed"]. - Answer — plan approval →
{"approved": true}(or{"approved": false, "reason": "..."}to replan); free-text question →{"answer": "..."}. Submit withkerno_feedback_answer. - Re-poll — a run can hit several gates in sequence; re-check after each answer.
Full detail and the resource-scoped path (answer_feedback_request): state-and-jobs.md § Feedback. Blocked scenarios and generate-vs-validate: endpoint-test-types.md.
User-facing messaging
Describe progress in plain language (planning coverage, running scenarios, pass/fail). Avoid MCP wiring jargon unless the user is debugging integration.
Report verdicts honestly — they are not all pass/fail:
blocked— did not run, usually missing DB access. Neither pass nor fail; say so rather than implying coverage.not_implemented— Kerno could not write a working scenario. Do not count it as a pass.- A potential bug on a passing scenario means Kerno documented real behaviour the plan did not expect. Surface it to the user; if they confirm it's intended, call
kerno_ignore_potential_bugwith the reportedfingerprint.