cr

cr is a skill for Claude Code, Codex from ZhangShenao/harness9. It costs 36 tokens per session (591 once invoked), scanned A, original, MIT.

A read-only review of code that has been added or changed in a Git working directory. It checks correctness, security, maintainability, performance, tests, dependencies, and sensitive files.

In plain words
What is it for?
Use it to inspect staged and unstaged changes, identify issues by severity and file location, and decide whether the code is ready to commit.
Why use it?
It helps find defects and security risks before changes are committed. It also separates urgent problems from optional improvements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect staged and unstaged changes, identify issues by severity and file location, and decide whether the code is ready to commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhangshenao/harness9/cr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZhangShenao/harness9 --skill cr
Clone the repo
git clone --depth 1 https://github.com/ZhangShenao/harness9

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 cr

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhangshenao/harness9/cr.svg)](https://agentmods.dev/skills/zhangshenao/harness9/cr)
Your own site
<a href="https://agentmods.dev/skills/zhangshenao/harness9/cr"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/cr.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 591 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.00036 $0.00591
Opus 5 $0.00018 $0.00296
Sonnet 5 $0.00007 $0.00118
Haiku 4.5 $0.00004 $0.00059

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

Security

Grade A, and why

cr 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 8d 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.

skills/cr/SKILL.md · 70 lines

What it actually says

cr — Code Review

Overview

对当前工作区所有新增或修改的代码执行详细的 Code Review,按严重级别输出问题,不做任何修改。

执行步骤

1. 收集变更范围

git status          # 查看新增 / 修改 / 删除的文件列表
git diff            # 未暂存的改动
git diff --cached   # 已暂存的改动

将两者合并视为本次 Review 的完整范围。

2. 逐文件审查

对每个变更文件,依次检查:

维度 检查点
正确性 逻辑错误、边界条件、空值/类型异常
安全性 SQL 注入、XSS、命令注入、敏感信息硬编码、不安全的默认值
可维护性 函数/类职责单一、命名清晰、不必要的复杂度
性能 N+1 查询、不必要的循环、大对象复制
测试覆盖 关键路径是否有对应测试,新代码是否破坏现有测试
依赖安全 新引入的第三方包是否合理,版本是否锁定

3. 检查敏感文件

git status 中出现以下类型的文件,单独标注,不得进入后续提交:

  • .env*.pem*credentials**secret*
  • 包含明文密码、API Key 的配置文件

4. 输出 Review 报告

按以下格式输出,无问题的级别可省略:

## Code Review 报告

### 🔴 Critical(必须修复,阻断提交)
- `文件路径:行号` — 问题描述

### 🟡 Warning(建议修复)
- `文件路径:行号` — 问题描述

### 🔵 Suggestion(可选优化)
- `文件路径:行号` — 建议描述

### ✅ 总结
- 变更文件数:N
- 通过提交:是 / 否(存在 Critical 问题时为否)

注意事项

  • 只审查,不修改代码
  • Critical 问题存在时,明确说明不建议提交,等待用户确认修复
  • 若变更集为空(git status 无输出),告知用户当前无需 Review
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. 8d ago First seen · 70 lines · 36 tokens per session scan A b3bfacb251f9

Subscribe to this mod's changes

cr is a skill published in the GitHub repository ZhangShenao/harness9 (138 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 591 once invoked, about $0.0002 per session on Opus 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.