agentleFS
itsmostafaitsmostafa/agent-skills/skills/explain/SKILL.md

explain

Skill2 starsChanged 2 months agoMITView on GitHub

Explain any topic simply for a newcomer — a concept, a system, a process, or part of a codebase — and save it as an HTML page with compiled architecture, workflow, sequence, data-flow, and lifecycle diagrams. Use when the user types /explain <topic>.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use doc, rubber-duck and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JetBrainsSkill

    doc

    Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts/render_docx.py` for visual checks.

    Also in 5 projects that use this

  • ElliotJLTSkill

    rubber-duck

    When a user is stuck, frustrated, or describing a problem vaguely, do NOT immediately suggest solutions. First, force structured problem articulation through targeted questions: What did you expect? What happened instead? What have you tried? Only after the problem is clearly defined, propose solutions.

    Also in 3 projects that use this

  • clearsmogSkill

    translate

    Multi-format document translation. Supports Typst ↔ Quarto. For Beamer translations, configure at project level.

    Also in 3 projects that use this

  • genomewalkerSkill

    migrate

    Import soul data from SQLite or shared chitta files

    Also in 4 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 4 projects that use this

  • Hugging FaceSkill

    self-review

    Use before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against references/review-rules.md, traces call paths for dead code). Reports findings grouped by severity, flagging what to fix before submitting (blocking issues + dead code) vs what to leave for the actual review. Report-only — does not edit files.

    Also in 3 projects that use this

The file

Files
SKILL.md

Explain

Explain the topic for someone seeing it for the first time, in plain terms. No filler. The output is one self-contained HTML file under ~/explain/.

Diagrams are compiled, not drawn. You describe what a diagram means; compile.py computes every pixel. Never hand-write <svg> for structure, and never write coordinates, viewBox, or path data.

Topic: $ARGUMENTS

Steps

  1. Research. Ground every claim in a source you actually checked: files in the repo, docs, or pages you read. If the topic is code, read the code.
  2. Draft the prose to ~/explain/<topic-slug>/doc.draft.html — plain HTML, no CSS, no JS. Where a picture beats a paragraph, put a placeholder alone on its own line:

    {{diagram: pipeline.architecture.json}}

    Skip the diagram when the prose already says it.

  3. Write one JSON per placeholder beside the draft, named <name>.<type>.json, with semantics only. See reference.md for fields and a worked example per type. When explaining code, cite it with src: "path/to/file.py:42"; the path is checked against --root.
  4. Compile with compile.py from this skill's directory (${CLAUDE_PLUGIN_ROOT}/skills/explain/compile.py when the plugin root is set):

    python3 <this skill dir>/compile.py ~/explain/<topic-slug>/doc.draft.html [--root <repo>]

    --root is only needed when diagrams cite src. It writes index.html beside the draft. Keep the draft and JSONs so the page can be regenerated.

  5. Fix by rule code. A non-zero exit lists every problem with its fix. Edit the JSON (shorten a label, move a node's row, correct a src, split the diagram) and re-run until clean.
  6. Report the output path.

Rules

  • Labels are printable ASCII: ≤48 chars for nodes, ≤32 for edges, ≤91 for titles.
  • One idea per diagram, six to twelve nodes. Split rather than crowd.
  • Width is capped at 960px; length is free. On E_TOO_WIDE, shorten labels in the widest rank or split the diagram. Sequences scroll sideways instead; keep them to three or four participants.
  • Omit rank and row unless the default layout reads badly. Then hint every node or none, and keep connected nodes on different ranks.
  • Mark loops and retries with "back": true.
  • No JS, no CDN, no network. The page must open offline.

Charts

The compiler handles structure, not numbers. For a bar or line chart, hand-write inline <svg> in the draft; the compiler leaves it alone. Style it yourself: a font-family, fill:currentColor, width near 900px, and ~16px text to match the prose.

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.