ai-workspace: Skill for Claude Code

.agents/skills/code-review/SKILL.md

code-review is a skill for Claude Code, Codex from ZhuoZhuoCrayon/ai-workspace. It costs 211 tokens per session (4,766 once invoked), scanned A, original, MIT.

A code-review procedure for checking pull requests and local changes against project rules, source code, tests, and earlier review comments.

In plain words
What is it for?
Use it to review pull requests, recheck fixes, handle unresolved review discussions, or prepare review comments and approval decisions.
Why use it?
It provides a consistent way to find correctness, compatibility, maintenance, and release risks before changes are accepted.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is ZhuoZhuoCrayon/ai-workspace's own configuration. It tells Claude Code and Codex how to work on ai-workspace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-workspace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ZhuoZhuoCrayon/ai-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ZhuoZhuoCrayon/ai-workspace/main/.agents/skills/code-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZhuoZhuoCrayon/ai-workspace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/code-review/github.svg)](https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/code-review)
Your own site
<a href="https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/code-review"><img src="https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuozhuocrayon/ai-workspace/code-review"><img src="https://agentmods.dev/badge/skills/zhuozhuocrayon/ai-workspace/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 211 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00211 $0.04766
Opus 5.5 $0.00084 $0.01906
Sonnet 5.5 $0.00042 $0.00953
Haiku 4.5 $0.00021 $0.00477

Measured 2d ago against content hash db6f582c0ff3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/code-review/SKILL.md · 362 lines

How it starts

The opening of the file, as written. The whole thing — 362 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Review

0x01 定位

code-review 负责审查 PR 或代码变更的正确性、兼容性、可维护性与发布风险。

默认只在对话中输出 review 草稿,不发布到 PR。

GitHub 写操作必须得到用户明确授权,包括评论、approve、request changes 和 dismiss review。

唯一例外:用户触发 review 后,针对已确认修复的既有未解决 review thread,可以自动 resolve。

0x02 权限门禁

a. GitHub 写操作

用户明确说以下意图时,才执行对应 GitHub 写操作:

用户意图 动作
评论到 PR / 发 review / 发到 PR 发布对应 inline / conversation 评论。
Request Changes / 请求修改 存在 P0 或阻塞合入问题时执行 request changes。
Approve / 通过 先输出复查结论,再执行 approve,默认 approve body 为 LGTM。

授权模糊时必须先确认,不得猜测执行。

b. Assignees

PR review 场景开始前必须补齐 assignees,未完成前不得继续 review 或执行 GitHub 写操作。

  1. gh api user --jq .login 获取当前登录用户。
  2. gh pr view <pr> --json author --jq .author.login 获取 PR 作者。
  3. 去重后执行 gh pr edit <pr> --add-assignee <login>。
  4. 执行 gh pr view <pr> --json assignees --jq '.assignees[].login' 校验。

失败时停止并告知用户,等待用户决策后再继续。

0x03 上下文收集

审查前备齐项目材料、变更、历史评论和关联方案。结论不得只依据 diff 片段。

a. 项目与变更

材料 动作
项目定位 目标项目已知时,按工作区项目定位规则进入项目目录
项目规范 阅读 AGENTS.md,再按语言阅读 pyproject.toml、package.json、go.mod 与 lint / typecheck 配置
变更内容 阅读 PR diff 或本地 diff,并打开相关源码、测试与配置。内容回查使用该 diff
历史评论 阅读已有评论、未解决 review threads,以及用户点名复查的旧问题

b. 检索范围

关联方案只在已定位项目的知识库内检索。<name> 取 repos.json / private/repos.json 的项目 name。

检索根 缺失时
knowledge/<name>/issues/ 跳过该根
private/knowledge/<name>/issues/ 跳过该根

检索键不使用 PR 标题,也不从标题或分支拆取 story、bug 编号。

条件 处理
用户给出 issue 目录或 PLAN.md 采用该路径 [1]
方案声明为背景 仍检索 [2]
  • [1] 身份键或内容关键词指向其他方案时,不改绑。
  • [2] 汇总评论写明路径。不建立一致性基线,不进入方案回写。

c. 已回写方案

以 PR 编号检索 pull/<number>,按 issue 目录聚合。

rg -n "pull/<number>" knowledge/<name>/issues private/knowledge/<name>/issues
命中目录数 绑定 内容回查
1 该目录。信号为「PR 编号」 跳过
>1 否 停止,转入 e. 未绑定
0 否 继续 [1]
  • [1] 未命中表示版本锚点尚未写入该 PR。

d. 内容回查

检索词为一级目录与高频名称。计分见 e. 命中判定。不按语言维护文件名清单。

(1)一级目录

Read the full file on GitHub · 362 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +12 lines db6f582c0ff3
  2. 14d ago Changed · +102 lines · +65 tokens per session c62919c02a5c
  3. 18d ago Changed · +14 lines · +3 tokens per session 083fa8e86162
  4. 2mo ago First seen · 234 lines · 143 tokens per session scan A 7a3fe35d8110

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository ZhuoZhuoCrayon/ai-workspace (27 stars, last pushed today), licensed MIT. It adds 211 tokens to every session and 4,766 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

openclaw/clawhub · 17 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

explore-unknowns

Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…

dzhng/skills · 162 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

asplos-writing-style

Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…

brycewang-stanford/Awesome-Journal-Skills · 65 tokens