yao-codereview-hskill

yao-codereview-hskill is a skill for Claude Code, Codex from yaojingang/yao-open-skills. It costs 39 tokens per session (735 once invoked), scanned A, original, MIT.

A code-review assistant that examines source code for security, performance, readability, maintainability, and coding-standard issues across multiple languages and frameworks.

In plain words
What is it for?
Use it to review code or a code link, check for vulnerabilities, spot inefficient algorithms or resource leaks, and produce a structured review report.
Why use it?
It helps find defects and risks that are easy to miss during a manual review. Findings are grouped by severity and include suggested fixes and example code.

Skill for Claude CodeCodex

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

Good fit Use it to review code or a code link, check for vulnerabilities, spot inefficient algorithms or resource leaks, and produce a structured review report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yaojingang/yao-open-skills/yao-codereview-hskill
About the project

yaojingang/yao-open-skills is a public collection of reusable AI skills for research, decision-making, business analysis, learning, and document creation. It serves people who want repeatable, maintainable AI workflows instead of isolated prompts, and catalogued add-ons are published skills from this collection.

yaojingang/yao-open-skills · 1,311 stars · on GitHub

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 yaojingang/yao-open-skills --skill yao-codereview-hskill
Clone the repo
git clone --depth 1 https://github.com/yaojingang/yao-open-skills

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 yao-codereview-hskill

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaojingang/yao-open-skills/yao-codereview-hskill/github.svg)](https://agentmods.dev/skills/yaojingang/yao-open-skills/yao-codereview-hskill)
Your own site
<a href="https://agentmods.dev/skills/yaojingang/yao-open-skills/yao-codereview-hskill"><img src="https://agentmods.dev/badge/skills/yaojingang/yao-open-skills/yao-codereview-hskill/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 yao-codereview-hskill

Your own site · 80×15
<a href="https://agentmods.dev/skills/yaojingang/yao-open-skills/yao-codereview-hskill"><img src="https://agentmods.dev/badge/skills/yaojingang/yao-open-skills/yao-codereview-hskill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 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.00039 $0.00735
Opus 5 $0.00019 $0.00367
Sonnet 5 $0.00008 $0.00147
Haiku 4.5 $0.00004 $0.00073

Measured 12d ago against content hash 9e4a57f1808d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yao-codereview-hskill 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 12d 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/security-test-hskills/yao-codereview-hskill/SKILL.md · 128 lines

What it actually says

代码审查助手

提供全面的代码审查和质量改进建议。

Router Rules

  • Route by frontmatter description.
  • Keep SKILL.md lean.
  • Put detailed rules in references/, templates in templates/.
  • Focus on actionable feedback.

Modes

  • Quick: 快速扫描,关注明显问题。
  • Security: 安全聚焦,深入检查漏洞。
  • Full: 全面审查,含架构和可维护性。

Review Dimensions

维度 检查项
安全 注入、认证、授权、敏感数据
性能 算法效率、资源泄露、缓存策略
可读性 命名、注释、结构
可维护性 耦合度、测试覆盖、文档
规范性 编码规范、提交规范

Compact Workflow

  1. 接收代码或代码链接。
  2. 识别语言和框架。
  3. 应用对应的审查规则集。
  4. 按严重程度分类问题。
  5. 提供修复建议和示例代码。
  6. 输出结构化审查报告。

Output Contract

## 审查摘要
- 代码行数: X
- 发现问题: Y (严重: a, 警告: b, 建议: c)

## 严重问题
[问题列表]

## 警告
[问题列表]

## 改进建议
[建议列表]

## 修复示例
[代码示例]

Code Templates

审查时参考以下最佳实践模板:

Python 配置文件模板

# -*- coding: utf-8 -*-
"""
项目配置模块
Author: Code Quality Team
Maintainer: [email protected]
Version: 1.0.0
"""

import os
from dataclasses import dataclass

@dataclass
class Config:
    """应用配置类"""
    debug: bool = False
    log_level: str = "INFO"
    # 更多配置项...

JavaScript 模块模板

/**
 * @fileoverview 模块说明
 * @author Code Quality Team
 * @contributor 姚金刚 (yaojingang)
 * @license MIT
 */

'use strict';

// 模块实现...

FAQ

Q: 如何处理遗留代码的审查?

对于遗留代码,建议:

  1. 先建立基线(当前问题数量)
  2. 只关注新增代码的质量
  3. 逐步改进高风险区域

Q: 自动化工具和人工审查如何配合?

自动化工具处理规范性检查,人工审查关注:

  • 业务逻辑正确性
  • 架构设计合理性
  • 可维护性和可读性

Reference Map

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 128 lines · 39 tokens per session scan A 9e4a57f1808d

Subscribe to this mod's changes

yao-codereview-hskill is a skill published in the GitHub repository yaojingang/yao-open-skills (1,311 stars, last pushed 14d ago), licensed MIT. It adds 39 tokens to every session and 735 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.