Abstraction Levels logo

Abstraction Levels

Community
panpanc
abstraction-levels

Explain a mathematical concept at multiple abstraction levels, from intuitive to formal and unifying views. Use when the user asks for "different levels of abstraction", "explain at multiple levels", "ladder of abstraction", or requests a top-mathematician style layered explanation.

Overview

Publisherpanpanc
Repositorymath-skills
Skill nameabstraction-levels
Stars
42
Forks
2
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by panpanc on GitHub. Read the source before you install it.

Installation

Install the Abstraction Levels AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/panpanc/math-skills/tree/main/.claude/skills/abstraction-levels
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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/abstraction-levels .claude/skills/abstraction-levels
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Abstraction Levels in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Abstraction Levels on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Abstraction Levels is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Explain a math concept through a clear abstraction ladder so the same idea is seen from concrete intuition up to high-level structure.

This skill is dedicated to prompts like: You are a top mathematician. Can you explain the concept of <concept> in different levels of abstractions?

Instructions

  1. Parse arguments: The concept is provided in $ARGUMENTS. The first non-file argument is the target concept. If any argument is a readable file path, read it as optional context.

  2. Adopt perspective:

    • Write as a top mathematician who is also a patient teacher.
    • Prioritize conceptual clarity over jargon density.
    • Keep each level self-contained while preserving cross-level continuity.
  3. Choose an abstraction ladder:

    • Choose a natural number of levels based on concept complexity, with minimum 10 levels.
    • Let this count be N, where N >= 10.
  4. Write the document with the following required sections and order:

    1. The Question

    Start with: You are a top mathematician. Can you explain the concept of <concept> in different levels of abstractions? Then give a 2-4 sentence preview of how the ladder will progress.

    2. Concept Snapshot

    • One-sentence definition in plain language
    • Why this concept matters (2-3 sentences)
    • Name the running example

    3. Abstraction Ladder (Levels 1-N, with N >= 10)

    For each level, include all of the following labeled parts:

    • Core view:
    • Running example at this level:
    • One precise statement/formula:
    • What this level makes easy:
    • What this level hides:
    • Bridge upward:

    4. Translation Table Across Levels

    Include a compact table with one row per level and these columns:

    • Level
    • How the concept is phrased
    • Typical objects
    • Main operation
    • Main risk/misconception

    5. Same Claim, Rephrased by Level

    Pick one representative claim/theorem and restate it once per level (from intuitive wording to formal abstract wording).

    6. How to Climb the Ladder

    Give a concrete study path:

    • 3-6 prerequisite ideas
    • 3-6 "next questions" that move the reader up one level at a time
    • One warning about a common abstraction trap
  5. Writing constraints:

    • Use LaTeX ($...$, $$...$$) for math.
    • Do not put math inside fenced code blocks.
    • LaTeX authoring constraints (to reduce renderer failures):
      • Prefer a single-line display equation whenever the derivation comfortably fits on one line; use $$\begin{aligned}...\end{aligned}$$ only when multi-line alignment is genuinely necessary.
      • Keep prose and labels outside math whenever possible; let the surrounding sentence name the event, condition, or interpretation.
      • Use \text{} only for short connector words such as and, if, for, where, or when; do not hide multi-word labels or conditions inside equations.
      • Prefer Factorization condition: $$f=u\circ q.$$ over $$f \text{ factors through } q \Longleftrightarrow f=u\circ q.$$
      • Prefer one symbolic derivation chain per display block; do not mix full English sentences into $$...$$.
      • If a display derivation has more than one equality, implication, or transformation step and spans multiple visual lines, wrap it in $$\begin{aligned}...\end{aligned}$$ and align on &=, &\to, or a similar marker instead of relying on raw line breaks inside $$...$$.
      • Use a conservative command subset unless the document truly needs more: \frac, \sqrt, Greek letters, superscripts/subscripts, \operatorname{Hom}, \operatorname{Im}, simple matrix environments, and \left...\right only when needed.
      • Every $, $$, \(, \), \[, \], \begin{...}, \end{...}, {, }, \left, and \right must balance within the same math expression.
    • If diagrams are helpful, use Mermaid (ASCII-safe labels, one edge per line).
    • Avoid vague statements like "it generalizes things"; name what generalizes and how.
    • Every level must explicitly connect to the previous level.
  6. Naming: Save the output as <concept_slug>_abstraction_levels.md in the current working directory.

    • Use lowercase snake_case.
    • Keep slug short (1-4 words when possible).
  7. Verification checklist:

    • N >= 10.
    • Exactly one running example appears in all levels.
    • Every level includes all 6 required labeled parts.
    • Translation table has one row per level.
    • Section 5 contains one claim rewritten at each level.
    • Run deterministic Markdown-math verification:
      • 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 "<concept_slug>_abstraction_levels.md"
      • If this command reports failures, fix only the flagged math passages, usually by closing delimiters/environments or moving prose out of math, and rerun until it passes.
    • No unclosed fenced code blocks.
    • No math inside fenced code blocks.
    • Read and patch any unclear jump before finishing.
  8. Completion line: Print: Explained <concept> across <N> abstraction levels with one invariant running example.

Example usage

/abstraction-levels pushforward and pullback
/abstraction-levels spectral theorem
/abstraction-levels compactness in topology
/abstraction-levels Fourier transform

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Abstraction Levels AI skill do?

Explain a mathematical concept at multiple abstraction levels, from intuitive to formal and unifying views. Use when the user asks for "different levels of abstraction", "explain at multiple levels", "ladder of abstraction", or requests a top-mathematician style layered explanation.

Why use Abstraction Levels on TypingMind?

Because you install it once and use it with any model. Abstraction Levels is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Abstraction Levels in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/panpanc/math-skills/tree/main/.claude/skills/abstraction-levels. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Abstraction Levels?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Abstraction Levels?

As many as you like. As long as a model supports skills, you can use Abstraction Levels with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Abstraction Levels AI skill free?

It is published on GitHub by panpanc. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇