Explaining Code

作者 patricio0312rev79ea6af48569无许可证62 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"

AI 生成的概览

用日常类比、ASCII 图示、逐步讲解和常见误区来解释代码如何运作。

功能
这是一个仅含指令的技能,指导智能体生成代码讲解。每次讲解都以日常生活中的类比开头,配一张展示流程、结构或关系的 ASCII 图,逐步说明代码执行过程,并指出一个常见错误或误解。讲解保持口语化,复杂概念会使用多个类比。
适用场景
适用于解释代码如何运作、向他人讲解某个代码库,或用户询问某段代码是怎么工作的时候。它适合以理解概念为目标的请求,而非修改代码。
运行要求
无需任何工具、软件包、运行时、凭据或网络访问;它只包含指令,不附带脚本。

When explaining code, always include:

  1. Start with an analogy: Compare the code to something from everyday life
  2. Draw a diagram: Use ASCII art to show the flow, structure, or relationships
  3. Walk through the code: Explain step-by-step what happens
  4. Highlight a gotcha: What's a common mistake or misconception?

Keep explanations conversational. For complex concepts, use multiple analogies.

来源与署名

来源:patricio0312rev/skills位于foundation/explaining-code提交79ea6af

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架