跳到正文
cccskills
免费在 GitHub 公开

robonix-code-review

Review a Robonix change against the repository's coding guidelines and write a Markdown review. Use when asked to review a branch, a PR, or files, and before asking a human to review your own change.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.5 KB
  • scripts/review_input.sh899 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

robonix-code-review

Review a change against .agents/guidelines/ and write one Markdown file. Every comment cites the guideline short-name it rests on, so the author can look the rule up and the reviewer can check the call.

Input

One argument string, in one of two forms:

diff <base> <output>          # the commits on HEAD since merge-base(<base>, HEAD)
files <path>... <output>      # the current contents of these files

Produce the review input with the script, from the repository root:

.agents/skills/robonix-code-review/scripts/review_input.sh diff origin/dev > /tmp/review-input.txt

In diff mode the input is each commit's message and patch, so commit hygiene is reviewed along with the code.

Steps

  1. Read the guidelines. Read .agents/guidelines/README.md. Open a page only for the rules you need.
  2. One pass per page. Review the input once for each guideline page (maintainability, correctness, security, writing), each in a fresh sub-agent that gets only that page and the input. Separate passes find more than one pass looking for everything. Skip a page only when the input provably has nothing in its scope (no prose → skip writing).
  3. Comment format. Each pass returns comments as file, line, short-name, severity (blocker / major / minor), problem (one sentence), fix (what to change). No comment without a short-name.
  4. Try to refute each comment. Re-read the cited code. For a claim about a library, contract or protocol, check the source or the contract file. Keep it, mark it (unverified), or drop it; list dropped comments at the end with a one-line reason.
  5. Group by cause. When several comments share one fix (for example the same boilerplate in five handlers), give them one fix and point each comment at it. Keep every comment at its own location.
  6. Size check. Report the diff size. If the maintainability pass finds more than a few minimal-change, dry or delete-dead-code comments, say plainly that the change should shrink before a human reviews it.
  7. Write the file. Front matter (date, mode, base, head), a short summary (what is good, the top problems by severity), then one section per page with its comments sorted by file and line.

Don't fix the code during a review; the review is the output.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Shrink a Robonix change before review without changing behaviour. Use when a feature works and tests pass, before opening or updating a PR, and when a review asks for a smaller change.

中文简介正在准备中。当前显示原文说明。

syswonder/robonix4022026年10月21日 更新

Write or edit commit messages, PR and issue descriptions, READMEs and code comments for Robonix so they read like a person wrote them. Use whenever producing prose that goes into the repository or onto GitHub.

中文简介正在准备中。当前显示原文说明。

syswonder/robonix4022026年10月21日 更新

查看 syswonder 的全部技能

报告此技能的问题