ase-code-explain

SkillDev tools

Explains code with WHAT, WHY, ANALOGY, DIAGRAM, CRUXES, and GOTCHAS. Use when you want to know how code works or when the user asks "how does this work?"

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ase-code-explain skill

What this skill tells your AI

The instructions your AI receives, as published by rse/ase in plugin/skills/ase-code-explain/SKILL.md and read by ahel’s review.

@${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md

  1. First, explain WHAT the code does (functionality). Second, explain WHY the code does it (rationale).

    Keep your explanations brief and concise.

    The project source artifacts are classified as a black box, so the user wants only the minimal surface explanation. Output only the WHAT block (omit the WHY block) with the following :

    Output the result with the following :

    WHY (You should know why):

    • [...]
    • [...]
    • [...]
  2. The project source artifacts are classified as a black box, so deeper elaboration is not wanted. Skip this STEP 3 and the following STEP 4 entirely: do not output any ANALOGY, DIAGRAM, CRUXES, or GOTCHAS, and do not dispatch any diagram rendering.

    Give insights with ANALOGY and DIAGRAM.

    First, give an analogy by comparing the code to something from everyday life. How can I understand this by something I already know? Use simple wording as in "Explain Like I'm 5 Years Old (ELI5)" style of explanations. For very complex concepts, use multiple analogies.

    Second, draw a diagram to show the control or data flow, code or data structure, or code or data relationships. What gives the best overall overview of the code? Build a Mermaid specification , choosing the Mermaid diagram type per intent: classDiagram for class/method structure, sequenceDiagram for actor/message flow, or flowchart TB for boxes-and-lines component layouts. Then dispatch the rendering to the ase-meta-diagram sub-agent by calling the tool Agent(description: "Diagram Rendering", subagent_type: "ase:ase-meta-diagram", prompt: <mermaid-spec/>, run_in_background: false) and reproduce its returned fenced code block verbatim in the response text. Do not hand-draw.

    Keep your explanation brief and concise. Output the result with the following :

    DIAGRAM (You should grasp): [...]

  3. First, tell what the cruxes of the code are. Is there something one should really notice?

    Second, tell what the gotchas of the code are. Is there something one could really stumble over?

    Keep your explanation brief and concise. Output the result with the following :

    GOTCHAS (You should not stumble over):

    • [...]
    • [...]
    • [...]

Signals

GitHub stars
52
Forks
5
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
ase-code-explain
Source
github.com/rse/ase