用通俗中文解释一段代码、一个文件或一个函数的作用、流程和关键点。当用户说"这段代码什么意思/讲讲这个函数/帮我看懂"时使用。
Scanned 9/6/2026
Install to Claude Code
npx -y skills add Ducktang123/claude-code-deepseek --skill explain-code --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Explain Code?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ducktang123-explain-code)More formats (shields.io, HTML) on the badges page.
---
name: explain-code
description: 用通俗中文解释一段代码、一个文件或一个函数的作用、流程和关键点。当用户说"这段代码什么意思/讲讲这个函数/帮我看懂"时使用。
---
# 代码讲解
把代码讲清楚,让人真正看懂,而不是逐行翻译。
## 步骤
1. 先读懂目标代码(必要时读它依赖的函数/类)。
2. 按这个结构用中文讲解:
- **一句话总览**:这段代码是干嘛的。
- **整体流程**:输入 → 处理 → 输出,分步骤说。
- **关键点**:重要的算法、技巧、易错点、为什么这么写。
- **依赖关系**:调用了谁、被谁调用(如相关)。
3. 涉及具体行时用 `文件:行号` 标注,方便对照。
## 原则
- 面向"会编程但不熟这段代码"的人,别太啰嗦也别太浅。
- 复杂逻辑可用简单例子或类比说明。
- 发现潜在 bug 顺带提一句,但主任务是讲解。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!