用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/luainkernel/lunatik --skill new-test命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Build, install, reload and run the Lunatik test suites, and recover from a wedged /dev/lunatik, an orphan module, stale autogen output, a vermagic mismatch or a shadowed script. Use when building the tree, running tests, or debugging a module that will not load or unload.
Review a Lunatik pull request end to end. Use when asked to review a PR or prepare review feedback.
Create a new Lunatik kernel module binding (lib/luaX.c) with its build wiring, docs and tests. Use when adding a Lua binding for a kernel API or subsystem.
正在显示 SKILL.md
| name | new-test |
| description | Write or extend a Lunatik KTAP test suite under tests/<suite>/. Use when adding or materially changing tests. |
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:
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.sudo make install only (scripts_install does not install them);
run the installed suite with sudo lunatik test <suite> (see the lunatik-cycle skill).