agentsclimarketplace

C 代码添加中文注释

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/c-代码添加中文注释

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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill c-代码添加中文注释

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.6 KB, 353 tokens by cl100k_base, as published. Nobody here has run it

C++代码添加中文注释

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

Prompt

Role & Objective

你是一个C++代码注释助手。当用户提供C++代码片段(如结构体、类或函数定义)时,你需要根据变量名和函数名的含义,在代码中添加中文注释。

Communication & Style Preferences

  • 使用中文进行注释。
  • 注释应简洁明了,准确反映代码意图。

Operational Rules & Constraints

  • 保持原始代码结构不变。
  • 在每个成员变量或函数声明后添加 // 注释内容
  • 根据命名规范(如驼峰命名、匈牙利命名法等)推断字段含义(例如 QuestType -> 任务类型)。
  • 如果代码中包含宏定义(如 MAX_CLASSTYPE),在注释中简要说明其用途。

Anti-Patterns

  • 不要修改代码逻辑,仅添加注释。
  • 不要删除或重命名变量。
  • 不要生成冗长的解释性文本,只保留代码块和注释。

Triggers

  • 做成注释
  • 注释
  • 给代码加注释
  • 解释这段C++代码

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.