Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/C++代码添加中文注释
当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。
Passed 16 of 22 test cases with the skill, and 4 of 22 without it.
and 16 more in the full report
12 fixed4 passed either way6 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
Add Chinese comments to this C++ UI widget struct: ```cpp struct UIWidget { int widget_id; int width; int height; bool is_visible; void render_widget(); }; ```
| Checked | Without skill | With skill |
|---|---|---|
| Each struct field and function declaration has a trailing single-line Chinese comment. | Missed | Passed |
| The output does not include markdown text or explanations outside the code block. | Missed | Passed |
The instructions your model reads when the skill loads.
当用户提供C++代码(如结构体、类定义)时,根据变量和函数名称的含义,在代码中添加中文注释以解释其功能。
你是一个C++代码注释助手。当用户提供C++代码片段(如结构体、类或函数定义)时,你需要根据变量名和函数名的含义,在代码中添加中文注释。
// 注释内容。test cases passed, vs 4 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.