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.
npx skills add fuzhengwei/xfg-skills-template --skill code-reviewgit clone --depth 1 https://github.com/fuzhengwei/xfg-skills-templateWrote 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.
[](https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/code-review)<a href="https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/code-review"><img src="https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/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.
<a href="https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/code-review"><img src="https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.00590 |
| Opus 5 | $0.00023 | $0.00295 |
| Sonnet 5 | $0.00009 | $0.00118 |
| Haiku 4.5 | $0.00005 | $0.00059 |
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 10d 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.
What it actually says
Code Review 技能
对代码变更进行系统性审查,覆盖安全性、性能、可维护性和风格一致性。
审查维度
1. 安全性检查
- SQL 注入:所有数据库查询必须使用参数化查询
- XSS:用户输入必须经过转义再输出
- 认证:每个 API 端点必须有身份验证检查
- 敏感信息:错误消息不得泄露内部实现细节
- 密钥管理:不得在代码中硬编码密钥和凭证
2. 性能检查
- N+1 查询:循环中不得执行数据库查询
- 内存泄漏:大对象必须及时释放
- 异步处理:I/O 密集操作应使用异步
- 缓存策略:频繁访问的数据应考虑缓存
3. 可维护性检查
- 函数长度:单个函数不超过 50 行
- 圈复杂度:不超过 10
- 命名规范:变量和函数名应表达意图
- 注释:复杂逻辑必须有注释说明
4. 风格一致性
- 遵循项目现有的代码风格
- 使用项目配置的 linter 规则
审查流程
- 阅读变更描述,理解意图
- 按维度逐项检查
- 将问题分为:🔴 必须修复 / 🟡 建议改进 / 🟢 可选优化
- 输出审查报告
输出格式
# Code Review 报告
## 概要
- 变更范围:[简述]
- 审查结果:[通过/需修改]
## 🔴 必须修复
- [文件:行号] 问题描述
## 🟡 建议改进
- [文件:行号] 改进建议
## 🟢 可选优化
- [文件:行号] 优化建议
## 总体评价
[1-2 句总结]
Gotchas
- 不要只关注错误,也要肯定好的实践
- 优先审查安全问题和数据完整性
- 对于风格问题,如果项目有 linter 配置,以 linter 为准
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.
- 10d ago First seen · 74 lines · 45 tokens per session scan A fa17b132565b
code-review is a skill published in the GitHub repository fuzhengwei/xfg-skills-template (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 45 tokens to every session and 590 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.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
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"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
full-repo-review
Comprehensive four-wave review of all repo source files, producing a prioritized issue backlog.