Logo van Deep Explain

Deep Explain

Community
panpanc
deep-explain

Explain a mathematical concept or theorem in exhaustive reader-friendly detail, with early textbook statement/definition, concept-specific notation decoding, motivation for each construction, integrated mental-model callouts with transfer examples, worked examples, non-examples, and special attention to steps first-time readers commonly find confusing. Use when the user asks for a very detailed math explanation, a theorem/concept unpacked line by line, special symbols explained, confusing parts clarified, or the motivation behind unusual definitions/proof moves.

Overzicht

Uitgeverpanpanc
Repositorymath-skills
Skillnaamdeep-explain
Sterren
42
Forks
2
Meegeleverde bestanden
1
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 1 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door panpanc op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Deep Explain in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/panpanc/math-skills/tree/main/.claude/skills/deep-explain
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/panpanc/math-skills.git /tmp/math-skills
mkdir -p .claude/skills
cp -r /tmp/math-skills/.claude/skills/deep-explain .claude/skills/deep-explain
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Deep Explain in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Deep Explain automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Deep Explain niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Deep Explain

Generate a markdown explanation that treats the reader as smart but new to the topic. The goal is not merely to state the mathematics, but to make the textbook statement, special notation, construction choices, definition choices, and proof moves feel motivated and navigable.

Use this skill for concepts and theorems. If the user explicitly asks for a bottom-up invention path from elementary primitives, prefer bottom-up; otherwise use this skill when the request is for maximal clarity, notation decoding, and detailed explanation.

Workflow

1. Parse the Request

  • Parse $ARGUMENTS. The first non-file argument is the target concept or theorem.
  • If an argument is a readable file path, use it as optional source context and explain the target in relation to that source.
  • Determine the mode:
    • Concept mode for definitions, constructions, objects, theories, or techniques.
    • Theorem mode for named results, lemmas, propositions, proof requests, or statements with hypotheses and conclusions.
  • Infer the audience level from the prompt if possible. If not specified, assume a motivated reader with solid calculus and linear algebra, but do not assume they know the target's field-specific notation.

2. Write the Document

Save the markdown document as <target_slug>_deep_explain.md in the current working directory.

Use these required sections, in this order:

Integrated mental-model rule:

  • Introduce mental models inline throughout Sections 4-10 at the exact point where the model helps explain a definition clause, construction choice, proof move, or example.
  • Do not create a standalone Mental Models section near the end.
  • Use 4-7 total mental-model callouts across the document.
  • Each mental-model callout must include:
    • Mental model: short name.
    • Image or analogy: the picture or intuition.
    • What it clarifies here: the local concept/theorem move it explains.
    • Formal anchor: the definition, equation, proof step, or construction it corresponds to.
    • Where it breaks: the limit of the analogy.
    • Shared by: 2-3 other math concepts or theorems that use the same mental model.
1. What We Are Explaining
  • Name the target.
  • Say whether this is Concept mode or Theorem mode.
  • Give a plain-English one-paragraph preview of the idea.
  • State the central question the explanation answers.
  • Include a short "reader contract": what the reader should understand by the end.
2. Textbook Statement or Clean Definition

Put the standard textbook concept/theorem near the beginning, before motivation-heavy rebuilding.

In Concept mode:

  • Give the clean formal definition as a textbook would state it.
  • Explain each clause briefly, without yet doing the full intuition/proof development.
  • Include one plain-English restatement.
  • Say which parts of the definition will receive deeper explanation later.

In Theorem mode:

  • State the theorem formally.
  • Split the statement into hypotheses, objects, and conclusion.
  • Explain the quantifier structure briefly.
  • State the theorem again in plain English.
  • Give a proof map before giving proof details.

Keep this section concise and canonical. Its job is to orient the reader by showing the mathematical object exactly as it appears in textbooks before the rest of the document explains why it has that form.

3. Notation and Symbol Ledger

List only the symbols that are special to this concept/theorem, overloaded in this context, field-specific, or structurally central to the formal statement. Do not ledger ordinary punctuation, standard arithmetic signs, common variables used only locally, or every bound variable in examples unless they carry concept-specific meaning.

For each symbol include:

  • Symbol
  • Type: number, vector, function, set, space, relation, operator, map, index, parameter, hypothesis, conclusion, etc.
  • Meaning
  • Where it first appears
  • Common confusion

Rules:

  • Every special or concept-specific symbol in the textbook statement/definition must appear in this ledger or be introduced immediately before that statement.
  • Later displayed formulas may introduce local dummy variables or standard operators in the surrounding prose, but any recurring special notation should be added to the ledger.
  • If the same letter has multiple conventional meanings, state which meaning is active here.
  • Distinguish objects from their elements, maps from their values, spaces from coordinates, and equality from isomorphism/equivalence when relevant.
4. The Problem It Solves
  • Explain the mathematical pain point or gap that makes the target necessary.
  • Describe what a naive approach would try first.
  • Explain why that naive approach is insufficient.
  • Name the new capability the target provides.
5. Prerequisite Ideas, Briefly Rebuilt

List 4-10 prerequisite ideas the reader must hold in working memory. For each:

  • Give a plain-language explanation.
  • Give a compact formal version.
  • Explain exactly where it will be used later.
  • Include a tiny concrete example.

Keep this section short, but do not merely name prerequisites. Rebuild the pieces the explanation will lean on.

6. Main Objects and Their Jobs

Introduce the central objects one at a time. For each object:

  • Object: name it.
  • What it is: give the formal shape.
  • Why it exists: explain the problem it solves.
  • What job it performs: say what role it plays in the concept/theorem.
  • What would break without it: identify the missing function.
  • First-time-reader trap: name a likely misunderstanding and fix it.
7. Construction Walkthrough

Break the construction, definition, or proof setup into 5-10 ordered steps. Each step must include:

  • Step output: the object, statement, equation, or proof state produced.
  • Motivation: why this step is the next natural move.
  • Inputs: previously introduced objects or facts used here.
  • Action: what is built, assumed, transformed, or checked.
  • Formula/notation explanation: decode any special or newly introduced notation in the step. Do not belabor routine dummy variables or standard arithmetic/logical symbols unless they are likely to confuse the intended reader.
  • Micro-example: a concrete small case with explicit values, sets, functions, matrices, or diagrams-as-text.
  • Why this is not arbitrary: explain why the construction is shaped this way instead of a plausible alternative.
  • Common confusion: describe a reader's likely stumbling point and resolve it.

Keep dependency order strict: never use a concept or symbol before it has been introduced or locally decoded.

8. The Key Insight

State the conceptual crux in one sentence.

Then expand it with:

  • The intuition behind the insight.
  • The formal content behind the intuition.
  • Why this insight is easy to miss.
  • A wrong but tempting mental model and the correction.
  • At least one integrated mental-model callout, using the format from the integrated mental-model rule above.
9. Detailed Reasoning or Proof Walkthrough

In Concept mode:

  • Explain how the definition behaves under examples.
  • Derive at least two basic consequences.
  • Show how to verify whether an object satisfies the definition.
  • Include one near-miss and one non-example if they clarify why the definition uses exactly these clauses.

In Theorem mode:

  • Walk through the proof step by step.
  • For every nontrivial implication, include a Why this follows: explanation.
  • For algebraic or logical derivations, show intermediate steps instead of jumping to the result.
  • Map each proof step back to the proof map from Section 2.
  • Flag hidden assumptions, existence claims, uniqueness claims, and changes of viewpoint.
10. Worked Examples

Provide 3-5 worked examples. Each example must include:

  • Setup: concrete objects and data.
  • Goal: what is being computed, proved, or checked.
  • Computation or argument: explicit intermediate steps.
  • Interpretation: what the result means.
  • Sanity check: how the reader can tell the result is plausible.
  • Common mistake: one likely error and how to avoid it.

Use examples that increase in complexity gradually.

11. Non-Examples and Boundary Cases

Give 2-4 non-examples or edge cases. For each:

  • Describe why it looks tempting.
  • Identify the exact condition or proof step that fails.
  • Explain what the failure teaches about the target.
12. Confusion Clinic

Answer 8-12 likely first-time-reader questions. Include questions about:

  • Symbols that look similar but mean different things.
  • Why a construction is defined this way rather than another natural way.
  • Where a proof step gets its authority.
  • What is being held fixed versus allowed to vary.
  • How to recognize the concept/theorem in the wild.

Each answer should be concrete and should point back to an earlier section when useful.

13. Reconstruction Checklist

Give the reader a way to rebuild the idea without looking:

  • A 6-10 item checklist for reconstructing the concept/theorem.
  • 3 short exercises with answers or solution sketches.
  • One "explain it back" prompt that tests conceptual understanding.
14. Connections and Next Steps

List 5-8 related concepts, theorems, or techniques. For each:

  • Name it.
  • State the connection in one sentence.
  • Say which symbol, construction, or mental model transfers.
  • Suggest a next command, such as /theorem ..., /bottom-up ..., or $deep-explain ....

Writing Rules

  • Explain why before what whenever a new object, definition clause, construction step, or proof move appears.
  • Prefer concrete small examples over generic prose.
  • Name every object by type: set, element, vector space, linear map, function, operator, topology, sigma-algebra, category, functor, natural transformation, group action, etc.
  • Distinguish "definition," "construction," "hypothesis," "lemma," "claim," "example," and "consequence."
  • Explain mental models inline where they clarify the active mathematical move, and always tie them to a formal anchor plus 2-3 other concepts/theorems that share the same model.
  • When a construction has a distinctive or non-obvious design choice, include a paragraph beginning Why this design choice matters:.
  • When a reader could confuse two nearby ideas, include a paragraph beginning Do not confuse:.
  • Use fenced code blocks only for Mermaid diagrams, pseudocode, or computation traces. Never put LaTeX math inside fenced code blocks.

LaTeX and Diagram Rules

Follow the LaTeX hygiene used by the bottom-up skill:

  • Use LaTeX for math with $...$ and $$...$$.
  • Prefer a single-line display equation when it fits.
  • Use $$\begin{aligned}...\end{aligned}$$ for multi-line derivations with more than one equality, implication, or transformation step.
  • Align derivations on &=, &\le, &\ge, &\to, &\implies, or the relevant relation.
  • Keep prose and long labels outside math. Use \text{} only for short connector words such as and, if, for, where, or when.
  • Prefer one symbolic derivation chain per display block.
  • Do not place multiple tall matrix environments on the same row of an aligned block.
  • Use a conservative command set unless needed: \frac, \sqrt, Greek letters, superscripts/subscripts, \operatorname{tr}, \begin{bmatrix}...\end{bmatrix}, and \left...\right.
  • Every $, $$, \(, \), \[, \], \begin{...}, \end{...}, {, }, \left, and \right must balance within the same math expression.

For Mermaid diagrams:

  • Use simple node IDs such as A, step_2, or lemma3.
  • Put human-readable labels in quoted bracket labels, for example A["Kernel measures collapse"].
  • Keep one dependency edge per line.
  • Ensure every subgraph has a matching end.

Verification

Before finishing:

  1. Check that all required sections are present and non-empty.

  2. Check that every special or concept-specific symbol in the textbook statement/definition appears in the Symbol Ledger or is introduced immediately before the statement.

  3. Check that every construction step has motivation, inputs, action, formula/notation explanation, micro-example, design-choice explanation, and common-confusion note.

  4. Check that mental models are integrated inline rather than saved for a standalone end section, and that each mental model has a formal anchor plus 2-3 other concepts/theorems that share the same model.

  5. Check that there are no unclosed fenced code blocks and no math inside fenced code blocks.

  6. Run Markdown math verification using the bottom-up verifier:

    bash
    repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
    python3 "$repo_root/.claude/skills/bottom-up/scripts/verify_markdown_math.py" --strict-warnings "<target_slug>_deep_explain.md"

    If it reports failures, fix only the flagged math passages and rerun until it passes.

  7. If the document contains Mermaid blocks, run Mermaid verification:

    bash
    repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
    node "$repo_root/.claude/skills/bottom-up/scripts/verify_mermaid_blocks.js" "<target_slug>_deep_explain.md"

    If it reports errors, fix the Mermaid blocks and rerun until it passes.

  8. Read the final document once and patch any undefined symbol, unexplained construction, or abrupt reasoning jump.

Completion Summary

After saving and verifying the document, print:

text
Generated deep explanation for <target>.
Saved as: <target_slug>_deep_explain.md
Verified:
  - required sections present
  - special-symbol ledger checked
  - Markdown math verifier passed
  - Mermaid verifier passed / not needed

Then give 2-3 context-aware next steps based on the generated document.

Example Usage

text
$deep-explain spectral theorem
$deep-explain Yoneda lemma, explain the special notation
$deep-explain my_notes.md tensor product of modules
$deep-explain why the definition of sheaf uses matching families

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Deep Explain?

Explain a mathematical concept or theorem in exhaustive reader-friendly detail, with early textbook statement/definition, concept-specific notation decoding, motivation for each construction, integrated mental-model callouts with transfer examples, worked examples, non-examples, and special attention to steps first-time readers commonly find confusing. Use when the user asks for a very detailed math explanation, a theorem/concept unpacked line by line, special symbols explained, confusing parts clarified, or the motivation behind unusual definitions/proof moves.

Waarom Deep Explain gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Deep Explain bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Deep Explain in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/panpanc/math-skills/tree/main/.claude/skills/deep-explain. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Deep Explain gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Deep Explain gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Deep Explain ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Deep Explain gratis?

Deze skill is door panpanc op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇