# New Test

> Write or extend a Lunatik KTAP test suite under tests/<suite>/. Use when adding or materially changing tests.

- Skill: `luainkernel/new-test` (Agent Skill)
- Install (CLI): `npx skillmds@latest add luainkernel/new-test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/luainkernel/new-test/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: luainkernel (https://skillmd.com/u/luainkernel)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/luainkernel/new-test

---


The rules are AGENTS.md, "Tests" (shape, dmesg marking, cleanup in a trap, host independence,
the coverage matrix, proving the test discriminates, the docs and run.sh wiring) plus the
exit-0 blind spot under "Running a script". This skill is the mechanics:

- Source `tests/lib.sh` and use `run_script`/`run_test` instead of open-coding the run; they
  fail on any output, which is what catches a script that never loaded. `tests/bpf/run.sh` is
  the reference shape.
- `bash tools/checks/test-harness.sh <file>` flags a harness blind to a failed load.
- Tests are installed by `sudo make install` only (`scripts_install` does not install them);
  run the installed suite with `sudo lunatik test <suite>` (see the lunatik-cycle skill).


