Explain code
Claude Code Skill 开发指南
npx -y skills add diguike/book-claude-skill --skill explain-codeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
用类比和图解的方式解释代码。当用户问'这段代码干什么'、'解释一下这个函数'、'这个模块怎么工作的'、'帮我理解这段逻辑'时使用。
SKILL.md
0.7 KB, as published. Nobody here has run it
解释代码时,按这个结构来:
- 一句话概括:这段代码在做什么,用一句大白话说清楚
- 类比:找一个日常生活中的类比,帮助理解核心逻辑
- 流程图:用 ASCII art 画出代码的执行流程或数据流向
- 逐段解读:分段解释关键逻辑,跳过显而易见的部分
- 容易踩的坑:指出一个初学者容易误解或犯错的地方
语气保持口语化,像是在白板前给同事讲解。