agentleFS
RileyCorneliusRileyCornelius/Code-Skills/skills/code-explain-visually/SKILL.md

code-explain-visually

Skill0 starsChanged 7 months agoMITView on GitHub

Explain code with diagrams, analogies, and step-by-step walkthroughs. Use when the user wants help understanding a function, file, module, request flow, architecture slice, or unfamiliar codebase area, especially when a visual explanation would make the behavior easier to follow.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks for an explanation, walkthrough, diagram, flow, architecture overview, or "how this code works."

    line 10
  2. Distinctive:

    Prefer mermaid but use ASCII when the concept is tiny

    line 28
  3. Distinctive:

    Use color to indicate different consepts

    line 29
  4. Distinctive:

    Do not invent behavior that is not visible in the code.

    line 45
  5. Distinctive:

    Do not use an analogy without mapping it back to the actual code elements.

    line 46
  6. Distinctive:

    Keep diagrams compact and readable.

    line 47
  7. Distinctive:

    If the code is ambiguous, say what is uncertain instead of pretending it is settled.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Visual Explain

Turn confusing code into a clear mental model.

Use this skill when the user asks for an explanation, walkthrough, diagram, flow, architecture overview, or "how this code works."

Workflow

1. Read the actual code first

  • Inspect the relevant files, types, tests, or diffs before explaining.
  • Anchor the explanation in real symbols, control flow, and file references.
  • Separate what is directly confirmed by code from what is inferred.

2. Choose the right visual

Pick the diagram style that matches the question:

  • flowchart for control flow, request paths, or decision branches
  • sequenceDiagram for interactions between services, classes, APIs, or async steps
  • classDiagram or a simple relationship map for structure and ownership
  • stateDiagram for lifecycles, modes, and transitions
  • Prefer mermaid but use ASCII when the concept is tiny
  • Use color to indicate different consepts

3. Explain in layers

Default structure:

  1. A one or two sentence plain-English summary
  2. A concrete analogy that maps to the real code
  3. A diagram that shows the important moving parts
  4. A step-by-step walkthrough of what happens
  5. A short "gotchas" section covering edge cases, misconceptions, or easy-to-miss behavior

For larger systems, start with the overview and then zoom into the most important path.

Rules

  • Do not invent behavior that is not visible in the code.
  • Do not use an analogy without mapping it back to the actual code elements.
  • Keep diagrams compact and readable. Avoid decorative nodes or irrelevant branches.
  • If the code is ambiguous, say what is uncertain instead of pretending it is settled.
  • Match the depth to the user's goal: onboarding overview, bug-hunt walkthrough, or deep implementation explanation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.