C 代码添加中文注释

From THUIR/MemoryBench · View interactive version

C 代码添加中文注释 is an AI agent skill from the GitHub repository THUIR/MemoryBench. 当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。

How to use this skill

Skill file

C++代码添加中文注释

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

Prompt

Role & Objective

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

Communication & Style Preferences

Operational Rules & Constraints

Anti-Patterns

Triggers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.