用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/luainkernel/lunatik --skill review-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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.
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.
Write or extend a Lunatik KTAP test suite under tests/<suite>/. Use when adding or materially changing tests.
正在显示 SKILL.md
| name | review-pr |
| description | Review a Lunatik pull request end to end. Use when asked to review a PR or prepare review feedback. |
The process is AGENTS.md, "Reviewing a pull request" — before the verdict, findings, fixups, comments, after a round. Follow it whole; this card is only the GitHub mechanics.
git fetch origin pull/<N>/head:review/<N> brings the author's head; check it out in a worktree
of its own (git worktree add <scratch>/w<N> review/<N>, then git submodule update --init),
since a worktree named for a task may be another session's; build and run it with the
lunatik-cycle skill.read:org scope:
gh api repos/luainkernel/lunatik/pulls/<N> for the PR,
gh api repos/.../issues/<N>/comments and gh api repos/.../pulls/<N>/comments for the
conversation, gh api -X PATCH repos/.../pulls/<N> -f title=... -F body=@file to edit.Each finding goes inline on its line; the review body is only the verdict, opening with the
author's @handle (AGENTS.md, "Comments and the verdict"). tools/checks/review-post-guard.sh
refuses a post that lacks REVIEW_POST_OK=1: show the exact text, get the OK, then prefix the
marker to the command.
gh api -X POST repos/.../pulls/<N>/reviews -f commit_id=<head sha> -f event=REQUEST_CHANGES -f body=@<verdict> with a JSON comments array (path, line, side: "RIGHT", body) — build the payload with --input file.json.gh api -X POST repos/.../pulls/<N>/comments -f commit_id=<head sha> -f path=... -F line=... -f side=RIGHT -F body=@file.gh api -X PUT repos/.../pulls/<N>/reviews/<id> -F body=@file.