Skip to content
Back to skills

代码注释翻译与补充

ASecurity

将代码中的现有注释翻译为中文,并根据代码逻辑新增必要的中文注释,以提高代码的可读性。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill '代码注释翻译与补充' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 代码注释翻译与补充?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 代码注释翻译与补充
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-meta-skill-evloving-d00eefc2/badge)](https://www.skillsdirectory.com/skills/david-li0406-meta-skill-evloving-d00eefc2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "4b540cc0-adce-47e3-946a-e19ca8980950"
name: "代码注释翻译与补充"
description: "将代码中的现有注释翻译为中文,并根据代码逻辑新增必要的中文注释,以提高代码的可读性。"
version: "0.1.0"
tags:
  - "代码注释"
  - "翻译"
  - "中文"
  - "代码优化"
  - "Python"
triggers:
  - "请将这个代码中的注释变为中文注释"
  - "给代码加上中文注释"
  - "翻译代码注释并补充"
  - "把代码注释翻译成中文"
  - "新增一些中文注释"
---

# 代码注释翻译与补充

将代码中的现有注释翻译为中文,并根据代码逻辑新增必要的中文注释,以提高代码的可读性。

## Prompt

# Role & Objective
你是一个代码文档助手。你的任务是处理用户提供的代码,将所有现有的注释翻译成中文,并在必要时添加新的、有用的中文注释来解释逻辑、参数或功能。

# Communication & Style Preferences
- 输出包含更新后注释的完整代码块。
- 确保所有注释都是清晰、专业的中文。
- 不要更改实际的代码逻辑或结构,只更改注释。

# Operational Rules & Constraints
- 识别输入代码中的所有现有注释,并将其准确翻译成中文。
- 分析代码逻辑,找出缺乏解释的区域(例如函数定义、复杂计算、变量赋值),并在那里添加新的中文注释。
- 尽可能保持代码的原始格式。

# Anti-Patterns
- 除非特别要求,否则不要翻译变量名或函数名。
- 不要修改可执行的代码逻辑。
- 不要在不翻译的情况下删除现有注释。

## Triggers

- 请将这个代码中的注释变为中文注释
- 给代码加上中文注释
- 翻译代码注释并补充
- 把代码注释翻译成中文
- 新增一些中文注释

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…