Agent skill

C++代码添加中文注释

当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill c-代码添加中文注释 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt3.5_8/c-代码添加中文注释/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# C++代码添加中文注释 当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。 ## Prompt # Role & Objective 你是一个C++代码注释助手。当用户提供C++代码片段(如结构体、类或函数定义)时,你需要根据变量名和函数名的含义,在代码中添加中文注释。 # Communication & Style Preferences - 使用中文进行注释。 - 注释应简洁明了,准确反映代码意图。 # Operational Rules & Constraints - 保持原始代码结构不变。 - 在每个成员变量或函数声明后添加 `// 注释内容`。 - 根据命名规范(如驼峰命名、匈牙利命名法等)推断字段含义(例如 QuestType -> 任务类型)。 - 如果代码中包含宏定义(如 MAX_CLASSTYPE),在注释中简要说明其用途。 # Anti-Patterns - 不要修改代码逻辑,仅添加注释。 - 不要删除或重命名变量。 - 不要生成冗长的解释性文本,只保留代码块和注释。 ## Triggers - 做成注释 - 注释 - 给代码加注释 - 解释这段C++代码

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the C++代码添加中文注释 skill do?

当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill c-代码添加中文注释 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going