agentleFS
TakaGotoTakaGoto/rag-learning-academy/.claude/skills/explain/SKILL.md

explain

Skill24 starsChanged 18 days agoMITView on GitHub

Get a deep-dive explanation of any RAG concept

122 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug-fix, root-cause 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.
  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 3 projects that use this

  • Ingramradical235Skill

    root-cause

    Structured root cause analysis using WHERE (MECE decomposition) then WHY (causal structure diagrams) pipeline. Includes coin-flip detection, logical-leap detection, and vicious cycle intervention. Use when buffer enters YELLOW/RED, when metrics stall, or when Actions execute but don't produce results.

    Also in 5 projects that use this

  • ralphkraussSkill

    resolve-conflicts

    Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.

    Also in 4 projects that use this

  • neurofooSkill

    socratic

    Socratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without lecturing.

    Also in 4 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 6 projects that use this

  • mitsuhikoSkill

    summarize

    Fetch a URL or convert a local file (PDF/DOCX/HTML/etc.) into Markdown using `uvx markitdown`, optionally it can summarize

    Also in 8 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 14 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 109 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user specifies a concept (e.g., /explain cosine similarity), explain that.

    line 14
  2. Very specific:

    If the learner says /explain eli5 [concept] or includes "eli5", "simple", "for dummies", or "no jargon":

    line 18
  3. Distinctive:

    Keep the whole explanation under 20 lines

    line 22
  4. Distinctive:

    If the learner seems to want a quick answer (short question, or they say "briefly" / "quickly"), provide a 2-3 sentence TL;DR first, then …

    line 27
  5. Distinctive:

    If the learner wants depth, proceed normally through all steps.

    line 28
  6. Distinctive:

    Start with the simplest possible explanation.

    line 45
  7. Distinctive:

    Use clear section headers to organize the explanation.

    line 60
  8. Distinctive:

    Keep it self-contained and runnable

    line 65
  9. Distinctive:

    Use comments to explain each meaningful line

    line 66
  10. Very specific:

    Use common libraries for the learner's language (see language-support.md for mappings)

    line 68
  11. Distinctive:

    If the concept is architectural rather than code-level, provide pseudocode or a configuration example instead.

    line 70
  12. Distinctive:

    Create an ASCII diagram that illustrates the concept visually:

    line 74
  13. Distinctive:

    When would you choose one approach over another?

    line 115
  14. Distinctive:

    Ask the learner one focused question to see if they grasped the key idea.

    line 126
  15. Distinctive:

    Never assume knowledge the learner might not have — define terms as you use them

    line 137
  16. Distinctive:

    Use concrete examples with actual data, not abstract descriptions

    line 138
  17. Distinctive:

    If you are uncertain about a detail, say so rather than guessing

    line 139

“Common” is measured: kept by at least 6 in 10 of the 109 edited versions of this file we could read. “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

Explain: Deep-Dive into Any RAG Concept

Provide a thorough, multi-layered explanation of any RAG concept. Unlike /glossary (which gives quick definitions), /explain goes deep — this is for when the learner really wants to understand something.

Language awareness: See .claude/LANGUAGE_AWARENESS.md.

Step 1: Identify the Concept and Calibrate Depth

If the user specifies a concept (e.g., /explain cosine similarity), explain that. If they give a vague topic (e.g., "retrieval"), ask a clarifying question to narrow the scope. Good explanations are focused.

ELI5 Mode

If the learner says /explain eli5 [concept] or includes "eli5", "simple", "for dummies", or "no jargon":

  • Give the entire explanation using only everyday language and analogies
  • Zero technical terms. If you must use one, define it in parentheses immediately
  • Skip the code example and math. Use diagrams and real-world comparisons instead
  • Keep the whole explanation under 20 lines
  • End with: "Want the technical version? Just say 'go deeper.'"

Standard Mode

  • If the learner seems to want a quick answer (short question, or they say "briefly" / "quickly"), provide a 2-3 sentence TL;DR first, then ask "Want me to go deeper?" before proceeding through the full 9-step explanation.
  • If the learner wants depth, proceed normally through all steps.

Common concepts learners ask about:

  • How embeddings work
  • Vector similarity and distance metrics
  • Chunking strategies and trade-offs
  • How retrieval-augmented generation works end-to-end
  • Re-ranking and why it helps
  • Hybrid search (combining dense and sparse)
  • Prompt engineering for RAG
  • Evaluation metrics (RAGAS, faithfulness, etc.)
  • Hallucination and how to reduce it
  • Context window management
  • Fine-tuning vs. RAG

Step 2: The ELI5 Version

Start with the simplest possible explanation. Use an everyday analogy that anyone could understand. No jargon, no code, just the core idea.

Example for "vector embeddings": "Imagine every piece of text gets a home address in a huge city. Similar texts live in the same neighborhood. When you search, you are just looking for the nearest neighbors to your query's address."

This gives the learner the intuition before the details.

Step 3: The Technical Explanation

Now go deeper with precision:

  • Define the concept formally
  • Explain the mechanism step by step
  • Cover the mathematics where relevant (but always explain what the math means)
  • Discuss the key parameters and how they affect behavior
  • Explain where this fits in the RAG pipeline

Use clear section headers to organize the explanation. Break complex ideas into numbered steps.

Step 4: Code Example

Provide a working code example in the learner's chosen language that demonstrates the concept:

  • Keep it self-contained and runnable
  • Use comments to explain each meaningful line
  • Show the output so the learner knows what to expect
  • Use common libraries for the learner's language (see language-support.md for mappings)

If the concept is architectural rather than code-level, provide pseudocode or a configuration example instead.

Step 5: Visual Diagram

Create an ASCII diagram that illustrates the concept visually:

Query: "How does photosynthesis work?"
         |
         v
  [ Embedding Model ]
         |
         v
  [0.23, -0.45, 0.67, ...]  <-- query vector (384 dims)
         |
         v
  [ Vector DB: find nearest neighbors ]
         |
    cosine similarity
         |
   +-----+-----+-----+
   |     |     |     |
  0.92  0.87  0.84  0.61  <-- similarity scores
   |     |     |
  Doc1  Doc3  Doc7   <-- top-3 retrieved

Diagrams should clarify, not complicate. Only include them when they add understanding.

Step 6: Common Misconceptions

List 2-4 things people commonly get wrong about this concept:

  • Misconception: [what people think]
  • Reality: [what is actually true]
  • Why it matters: [practical consequence of the misunderstanding]

This is often the most valuable part of the explanation, because misconceptions are where bugs come from.

Step 7: Practical Implications

Connect the concept to real-world RAG pipeline decisions:

  • How does this affect pipeline quality?
  • What goes wrong when you get this wrong?
  • What are the typical tuning knobs and their trade-offs?
  • When would you choose one approach over another?

Step 8: Further Reading

Point the learner to:

  • The relevant curriculum module and lesson (via /lesson)
  • Key papers that introduced or advanced the concept (via /paper-review)
  • Any related concepts they should understand next (via /glossary)

Step 9: Check Understanding

Ask the learner one focused question to see if they grasped the key idea. Keep it conversational. If they are uncertain, offer to explain a specific part again from a different angle.

Suggest 2-3 relevant next steps using slash commands:

  • /quiz — test your understanding of this concept and related ideas
  • /lesson — learn about this topic in a structured lesson with exercises
  • /build — apply this concept hands-on by building a RAG component

Guidelines

  • Layer the explanation from simple to complex — let the learner go as deep as they want
  • Never assume knowledge the learner might not have — define terms as you use them
  • Use concrete examples with actual data, not abstract descriptions
  • If you are uncertain about a detail, say so rather than guessing
  • Tailor the depth to the learner's level (check their profile if available)
  • The goal is genuine understanding, not memorization

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.