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 agentmods add skills/guyulong/cn-agent-skills/zh-code-commentnpx skills add guyulong/cn-agent-skills --skill zh-code-commentgit clone --depth 1 https://github.com/guyulong/cn-agent-skillsWrote 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/guyulong/cn-agent-skills/zh-code-comment)<a href="https://agentmods.dev/skills/guyulong/cn-agent-skills/zh-code-comment"><img src="https://agentmods.dev/badge/skills/guyulong/cn-agent-skills/zh-code-comment.svg" alt="Measured on agentmods" 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 | $0.00020 | $0.00428 |
| Opus 5 | $0.00010 | $0.00214 |
| Sonnet 5 | $0.00004 | $0.00086 |
| Haiku 4.5 | $0.00002 | $0.00043 |
Grade A, and why
zh-code-comment 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 4d 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
中文代码注释生成器
使用场景
当代码缺少注释或注释质量不高时,自动生成规范的中文注释。
规则
- 函数注释:必须包含功能描述、参数说明、返回值说明
- 复杂逻辑:在复杂算法或业务逻辑前添加行内注释
- 类注释:说明类的职责和使用方式
- 命名辅助:变量名如果含义不明确,添加注释说明
注释模板
Python
def function_name(param1: str, param2: int) -> bool:
"""
功能简述
Args:
param1: 参数1的说明
param2: 参数2的说明
Returns:
返回值说明
Raises:
ValueError: 异常说明
"""
JavaScript/TypeScript
/**
* 功能简述
* @param {string} param1 - 参数1的说明
* @param {number} param2 - 参数2的说明
* @returns {boolean} 返回值说明
*/
Java
/**
* 功能简述
*
* @param param1 参数1的说明
* @param param2 参数2的说明
* @return 返回值说明
* @throws IllegalArgumentException 异常说明
*/
注意事项
- 注释应简洁明了,避免废话
- 代码自解释时不需要注释
- 注释语言与项目保持一致,中文项目用中文注释
- TODO/FIXME 注释必须说明原因和预期解决方案
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.
- 4d ago First seen · 67 lines · 20 tokens per session scan A dbbc70268bb3
zh-code-comment is a skill published in the GitHub repository guyulong/cn-agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 428 once invoked, about $0.0001 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-31.
Other skills, from other repositories
deck-ljg-present
把 outline 1:1 铸成色块大字宣言 deck, 原文不动只做美化。三档主题 black / red / yellow.
data-report
把 CSV/Excel/JSON 数据转成漂亮的可视化报告页.
prototype-web
可点击的功能性 Web 原型, 含导航、英雄区、特性区、CTA.
tcapi
Skill to call Cloud API for Tencent Cloud (腾讯云). Used for cloud automation or resource management. 当用户需要查询、创建、管理腾讯云资源,或执行云 API 自动化操作时触发。优先使用 Octop 自带 venv 中的 tccli,凭证支持全自动 OAuth 登录。.
deck-presenter-mode
【模板: Presenter Mode Deck】 【意图】怕忘词的演讲者专用 deck, 含逐字稿 notes 与 popup teleprompter。 【布局】.
waitlist-page
【模板: 等候名单页 / Waitlist】 【意图】为新产品 / 早鸟内测做一张极简等候页。 【布局】.