跳到正文
FunCoding

explain

Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also get an ASCII diagram, key details, and a modification guide.

Star
871
分类
图表
许可证
MIT
最近提交
2026年8月28日

skills/explain/SKILL.md

在 GitHub 上查看

Explain $ARGUMENTS clearly.

Mode

If $ARGUMENTS includes the word verbose (for example, /explain my-function verbose), produce all five sections below. Strip the word verbose from the target name when interpreting what to explain.

Otherwise (the default), produce only sections 1 and 2 and stop. Day-to-day that's usually all you need.

Sections

1. One-sentence summary

What does it do, and why does it exist? One sentence.

2. Mental model

An analogy or metaphor that captures the core idea. Relate it to something the developer already knows. One short paragraph.

3. Visual diagram (verbose only)

Draw an ASCII diagram showing the data and control flow. Keep it readable:

Input -> [Step A] -> [Step B] -> Output
              |
              v
        [Side Effect]

4. Key details (verbose only)

Walk through the important parts. Skip the obvious. Focus on:

  • Non-obvious decisions (why this approach?)
  • Edge cases and gotchas
  • Dependencies and side effects

5. How to modify it (verbose only)

What would someone need to know to safely change this code? Where are the landmines?

相似的 Skill

design

NEnextlevelbuilder/ui-ux-pro-max-skill156k近 7 天新增 2,623 个 star

slides

NEnextlevelbuilder/ui-ux-pro-max-skill156k近 7 天新增 2,623 个 star

diagram

GAgarrytan/gstack143k近 7 天新增 524 个 star

官方

critique

NEnexu-io/open-design110k近 7 天新增 1,079 个 star

官方

dating-web

NEnexu-io/open-design110k近 7 天新增 1,079 个 star

精选

archify

生成可交互的架构图、时序图和数据流图,可导出 PNG、SVG。

TTtt-a1i/archify102k近 7 天新增 2,270 个 star