Skip to content
Back to skills

Explain Code

ASecurity

用通俗中文解释一段代码、一个文件或一个函数的作用、流程和关键点。当用户说"这段代码什么意思/讲讲这个函数/帮我看懂"时使用。

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agents

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add Ducktang123/claude-code-deepseek --skill explain-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Explain Code?

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

Security grade badge for Explain Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ducktang123-explain-code/badge)](https://www.skillsdirectory.com/skills/ducktang123-explain-code)

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
---
name: explain-code
description: 用通俗中文解释一段代码、一个文件或一个函数的作用、流程和关键点。当用户说"这段代码什么意思/讲讲这个函数/帮我看懂"时使用。
---

# 代码讲解

把代码讲清楚,让人真正看懂,而不是逐行翻译。

## 步骤
1. 先读懂目标代码(必要时读它依赖的函数/类)。
2. 按这个结构用中文讲解:
   - **一句话总览**:这段代码是干嘛的。
   - **整体流程**:输入 → 处理 → 输出,分步骤说。
   - **关键点**:重要的算法、技巧、易错点、为什么这么写。
   - **依赖关系**:调用了谁、被谁调用(如相关)。
3. 涉及具体行时用 `文件:行号` 标注,方便对照。

## 原则
- 面向"会编程但不熟这段代码"的人,别太啰嗦也别太浅。
- 复杂逻辑可用简单例子或类比说明。
- 发现潜在 bug 顺带提一句,但主任务是讲解。

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…