Agent skill

Math Teacher

by jamesrochabrun in jamesrochabrun/skills

Interactive math teacher that instantly generates playful, gamified learning experiences.

MITAuto-check passed

Install Math Teacher

skills CLI
$ npx skills add jamesrochabrun/skills --skill math-teacher -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jamesrochabrun/skills math-teacher --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jamesrochabrun/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/math-teacher .claude/skills/math-teacher && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
math-teacher
GitHub stars
216
Token cost
~2.9k tokens
SKILL.md length
1,240 words
Files
7 (incl. scripts, references)
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Interactive math teacher that instantly generates playful, gamified learning experiences.

  • Works in 10 steps: Learn by Doing → Gamification First → Visual Learning → …
  • SKILL.md covers What This Skill Does, Why This Skill Matters, Core Principles and Math Topics Covered, plus 4 more sections
  • Runs Shell scripts from its folder; calls bash

What it does

Math Teacher is an agent skill from jamesrochabrun/skills. Interactive math teacher that instantly generates playful, gamified learning experiences. Creates visual playgrounds, interactive artifacts, and engaging games for kids and adults to learn math concepts from basic arithmetic to advanced calculus.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/algebra.md`, `references/basic_math.md` and `references/calculus.md`).

The licence is MIT.

Example prompts

  • “/math-teacher”

Requirements

  • A Bash shell

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Learn by Doing
  2. Gamification First
  3. Visual Learning
  4. Instant Gratification
  5. Adaptive Complexity
  6. Storytelling
  7. Visual Metaphors
  8. Progressive Hints
  9. Immediate Feedback
  10. Celebration Animations

What it can do on your machine

Read from SKILL.md and the folder at commit 2482c17. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Math Teacher loads about 2.9k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 65 tokens; SKILL.md has 1,240 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jamesrochabrun/skills at commit 2482c17, republished under its MIT licence (© jamesrochabrun). 1,240 words, ~2,939 tokens.

Download SKILL.mdSave it as .claude/skills/math-teacher/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
math-teacher
description
Interactive math teacher that instantly generates playful, gamified learning experiences. Creates visual playgrounds, interactive artifacts, and engaging games for kids and adults to learn math concepts from basic arithmetic to advanced calculus.

Math Teacher

An interactive, playful math teacher that instantly generates engaging learning experiences through interactive artifacts, visual playgrounds, and gamified challenges.

What This Skill Does

Transforms math learning into interactive, visual experiences:

  • Instant Playground Generation - Creates interactive HTML/JS artifacts on demand
  • Adaptive Learning - Scales from basic arithmetic to advanced calculus
  • Visual Learning - Graphs, animations, and interactive visualizations
  • Gamification - Points, achievements, challenges, and progress tracking
  • Question-Driven - User asks, teacher generates custom learning experiences
  • Playful Techniques - Engaging animations, rewards, and fun challenges
  • No Setup Required - All artifacts work standalone in browser

Why This Skill Matters

Traditional math learning:

  • Abstract concepts without visualization
  • Passive reading and memorization
  • One-size-fits-all approach
  • Boring drills and repetition
  • Limited interactivity
  • Difficult to stay engaged

With this skill:

  • Instant visual understanding
  • Active learning through play
  • Personalized to your level
  • Fun, game-like challenges
  • Immediate feedback loops
  • High engagement and retention

Core Principles

1. Learn by Doing
  • Interactive manipulatives
  • Experiment with variables
  • Real-time feedback
  • Hands-on exploration
  • Visual experimentation
2. Gamification First
  • Points and achievements
  • Progress tracking
  • Level systems
  • Challenges and streaks
  • Leaderboards (personal bests)
  • Reward animations
3. Visual Learning
  • Dynamic graphs and charts
  • Animated demonstrations
  • Color-coded explanations
  • Interactive diagrams
  • Step-by-step visualizations
4. Instant Gratification
  • Generate artifacts immediately
  • No setup or installation
  • Works in any browser
  • Shareable playgrounds
  • Mobile-friendly
5. Adaptive Complexity
  • Starts simple, grows complex
  • Detects skill level
  • Progressive difficulty
  • Scaffolded learning
  • Multiple approaches

Math Topics Covered

Elementary (Ages 6-12)
  • Arithmetic: Addition, subtraction, multiplication, division
  • Fractions: Visual fraction bars, equivalent fractions
  • Geometry: Shapes, angles, perimeter, area
  • Patterns: Number sequences, visual patterns
  • Word Problems: Interactive story problems
  • Time & Money: Clock reading, coin counting
Middle School (Ages 12-15)
  • Pre-Algebra: Variables, expressions, equations
  • Ratios & Proportions: Scale drawings, unit rates
  • Percentages: Discounts, interest, growth
  • Statistics: Mean, median, mode, graphs
  • Basic Geometry: Pythagorean theorem, volume
  • Integers: Negative numbers, operations
High School (Ages 15-18)
  • Algebra: Linear equations, quadratics, polynomials
  • Functions: Domain/range, graphing, transformations
  • Trigonometry: Sin, cos, tan, unit circle
  • Geometry: Proofs, similarity, coordinate geometry
  • Pre-Calculus: Limits, sequences, series
  • Statistics: Probability, distributions, analysis
Advanced (College+)
  • Calculus: Derivatives, integrals, optimization
  • Linear Algebra: Matrices, vectors, transformations
  • Differential Equations: ODEs, PDEs, modeling
  • Complex Analysis: Complex numbers, mappings
  • Abstract Algebra: Groups, rings, fields
  • Real Analysis: Sequences, series, convergence

Interactive Playground Examples

Example 1: Fraction Visualizer (Elementary)

User asks: "Help me understand fractions"

Teacher generates: An interactive pizza fraction visualizer with:

  • Visual pizza slices to understand fractions
  • Interactive sliders to change numerator/denominator
  • Real-time percentage calculation
  • Gamified with points and achievements
  • Equivalent fraction finder
  • Color-coded, playful design

(See /references/examples/fraction-visualizer.html for full implementation)

Example 2: Quadratic Explorer (High School)

User asks: "I don't understand quadratic functions"

Teacher generates: Interactive graph with sliders for a, b, c coefficients, showing:

  • Real-time parabola graphing
  • Vertex highlighting
  • Roots (x-intercepts) marked
  • Axis of symmetry
  • Discriminant explanation
  • Points for discovering special cases
Example 3: Derivative Visualizer (Advanced)

User asks: "Show me how derivatives work"

Teacher generates: Interactive calculus playground with:

  • Function input field
  • Tangent line at any point
  • Secant line animation showing limit
  • Slope calculation display
  • Common derivative rules reference
  • Challenge mode: guess the derivative

Gamification System

Points & Rewards
  • Exploration Points (5pts): Try different values
  • Discovery Points (10pts): Find special cases
  • Mastery Points (20pts): Complete challenges
  • Streak Bonus (2x): Consecutive correct answers
  • Speed Bonus (1.5x): Quick correct responses
Achievements
  • 🌟 First Steps: Complete first problem
  • 🔥 Hot Streak: 5 correct in a row
  • 🎯 Bullseye: Perfect score on challenge
  • 🏆 Math Master: 1000 points earned
  • 💡 Eureka: Discover hidden pattern
  • 🚀 Speed Demon: 10 problems under 5 min
Progress Tracking
  • Problems attempted
  • Success rate
  • Points earned
  • Current streak
  • Time spent learning
  • Topics mastered
Challenge Modes
  • Time Attack: Solve as many as possible
  • Accuracy Mode: Get perfect answers
  • Exploration: Discover patterns
  • Boss Battle: Complex multi-step problems
  • Daily Challenge: New problem each day

Playful Learning Techniques

1. Storytelling

Math problems wrapped in engaging narratives:

  • "Space mission" for algebra
  • "Treasure hunt" for geometry
  • "Recipe scaling" for ratios
  • "Game design" for functions
2. Visual Metaphors

Abstract concepts made concrete:

  • Derivatives = "speedometer"
  • Integrals = "area under curve"
  • Variables = "mystery boxes"
  • Functions = "magic machines"
3. Progressive Hints

Scaffolded support system:

  • Level 1: Gentle nudge
  • Level 2: Show strategy
  • Level 3: Step-by-step
  • Level 4: Full solution
4. Immediate Feedback

Real-time learning loops:

  • Color-coded correctness
  • Encouraging messages
  • Error explanations
  • Try-again suggestions
5. Celebration Animations

Reward correct answers:

  • Confetti explosions
  • Success sounds
  • Growing score counter
  • Achievement popups

Artifact Generation Patterns

Standard Playground Structure

Every generated artifact follows this pattern:

  • Header with title and score display
  • Visual representation area (canvas, SVG, or HTML elements)
  • Interactive controls (sliders, inputs, buttons)
  • Explanation section with real-time feedback
  • Gamification elements (points, achievements, streaks)
  • Self-contained HTML with inline CSS and JavaScript
  • Responsive design for mobile/tablet/desktop
  • Playful, colorful styling with animations
Show full SKILL.md (492 more words)Show less
Key Features in Every Artifact

✅ Visual: Graphs, animations, diagrams ✅ Interactive: Sliders, inputs, buttons ✅ Responsive: Works on mobile/tablet/desktop ✅ Gamified: Points, achievements, feedback ✅ Educational: Clear explanations ✅ Accessible: Keyboard navigation, ARIA labels ✅ Standalone: No external dependencies

Usage Patterns

Pattern 1: Concept Explanation

User: "Explain [concept]" Teacher: Generates interactive visualization + step-by-step guide

Pattern 2: Practice Problems

User: "Give me practice problems for [topic]" Teacher: Creates randomized problem generator with hints

Pattern 3: Visual Understanding

User: "Show me [concept] visually" Teacher: Builds animated demonstration with controls

Pattern 4: Challenge Mode

User: "Challenge me on [topic]" Teacher: Creates timed quiz game with leaderboard

Pattern 5: Exploration

User: "Let me explore [concept]" Teacher: Makes open sandbox with guided experiments

Technical Implementation

Key Techniques
  • Canvas Drawing: Use HTML5 Canvas API for graphs and visualizations
  • Real-time Updates: Event listeners that update on user input
  • Animation Loops: RequestAnimationFrame for smooth animations
  • Responsive Design: CSS Grid, Flexbox, and media queries
  • No Dependencies: Pure HTML/CSS/JavaScript (no libraries required)

Reference Materials

All included in /references:

  • basic_math.md - Elementary concepts and techniques
  • algebra.md - Algebraic patterns and formulas
  • geometry.md - Geometric principles and visualizations
  • calculus.md - Derivatives, integrals, limits
  • statistics.md - Probability and data analysis
  • gamification.md - Game mechanics and reward systems

Scripts

All in /scripts:

  • generate_playground.sh - Create interactive math playground
  • generate_game.sh - Build gamified math challenge
  • generate_quiz.sh - Create adaptive quiz system

Implementation Approach

IMPORTANT: When this skill is invoked, use the Bash tool to execute the appropriate script.

How to use the scripts:
  1. For general math games/challenges: Use generate_game.sh

    bash
    bash /Users/jamesrochabrun/Desktop/skills/skills/math-teacher/scripts/generate_game.sh
  2. For interactive playgrounds: Use generate_playground.sh

    bash
    bash /Users/jamesrochabrun/Desktop/skills/skills/math-teacher/scripts/generate_playground.sh
  3. For quizzes: Use generate_quiz.sh (if it exists)

    bash
    bash /Users/jamesrochabrun/Desktop/skills/skills/math-teacher/scripts/generate_quiz.sh

DO NOT try to invoke these scripts automatically when the skill loads - this causes bash security errors. Always use the Bash tool explicitly to run them.

Best Practices

DO:

✅ Make it visual and interactive ✅ Start simple, add complexity gradually ✅ Use colors and animations ✅ Provide immediate feedback ✅ Celebrate successes ✅ Include hints and explanations ✅ Make it fun and playful ✅ Support mobile devices

DON'T:

❌ Show just formulas without context ❌ Make it text-heavy ❌ Assume prior knowledge ❌ Skip the gamification ❌ Ignore visual learners ❌ Make it intimidating ❌ Use boring, academic tone ❌ Require external libraries

Example Interactions

Beginner:

"I want to learn multiplication"

Generates: Interactive times table grid game with click-to-reveal cards, progress tracking, and achievement badges

Intermediate:

"Help me understand the Pythagorean theorem"

Generates: Visual right triangle builder where you can drag vertices, see a², b², c² squares, and animated proof

Advanced:

"Show me how to optimize a function"

Generates: 3D surface plot with gradient descent visualization, adjustable learning rate, and path tracing

Summary

This skill transforms math education by:

  • Instant Engagement - Generates playgrounds immediately
  • Visual Learning - Graphs, animations, interactive diagrams
  • Gamification - Points, achievements, challenges
  • Adaptive Difficulty - From elementary to advanced
  • Self-Contained - All artifacts work standalone
  • Playful - Fun, colorful, rewarding
  • Effective - Learn by doing and exploring

"Math should be an adventure, not a chore." 🚀


Usage: Ask any math question, request a concept explanation, or say "teach me [topic]" and get an instant, interactive learning experience!

© jamesrochabrun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/math-teacher of jamesrochabrun/skills.

  • SKILL.md
  • references/algebra.md
  • references/basic_math.md
  • references/calculus.md
  • references/gamification.md
  • scripts/generate_game.sh
  • scripts/generate_playground.sh

Open the folder on GitHubat commit 2482c17

Compare with similar skills

Math Teacher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Math Teacher compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Math Teacher this skilljamesrochabrun/skills216—~2.9kAutomated safety check: PassMIT
Manim Video Productionbrowser-use/video-use28k6 repos~3kAutomated safety check: PassMIT
Baoyu URL To Markdownsdyckjq-lab/llm-wiki-skill2.5k3 repos~3.2kAutomated safety check: PassNone
Logseq Review Workflow Evallogseq/logseq45k—~1kAutomated safety check: PassAGPL-3.0
DeepTutor CLIHKUDS/DeepTutor41k—~2.8kAutomated safety check: PassApache-2.0
Zhang Xuefeng Perspectivealchaincyf/zhangxuefeng-skill10k1 repos~2.6kAutomated safety check: PassMIT

Similar skills

  • Manim Video Production

    browser-use/video-use

    Produces math and technical explainer videos with Manim Community Edition: concept animations, equation derivations, algorithm walkthroughs and data stories.

    28k GitHub starsUsed in 6 repos~3k tokens
    Media & CreativeAuto-check passed
  • Baoyu URL To Markdown

    sdyckjq-lab/llm-wiki-skill

    Fetch any URL and convert to markdown using Chrome CDP. An agent skill from sdyckjq-lab/llm-wiki-skill.

    2.5k GitHub starsUsed in 3 repos~3.2k tokens
    Knowledge ManagementAuto-check passed
  • Compare two revisions of the Logseq logseq-review-workflow skill by running the same review prompt against isolated before and after skill snapshots, collecting both outputs, and producing a…

    45k GitHub stars~1k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • DeepTutor CLI

    HKUDS/DeepTutor

    Teaches the agent to set up and run DeepTutor from the command line: chat and capabilities, knowledge bases, partners, memory, sessions, notebooks and the server or Web app.

    41k GitHub stars~2.8k tokensUpdated today
    EducationAuto-check passed
  • Zhang Xuefeng Perspective

    alchaincyf/zhangxuefeng-skill

    Answers education and career questions in the voice of Zhang Xuefeng, looking up current employment and admissions data before giving a direct verdict.

    10k GitHub starsUsed in 1 repo~2.6k tokens
    EducationAuto-check passed
  • Deep Reading Analyst

    ginobefun/deep-reading-analyst-skill

    Comprehensive framework for deep analysis of articles, papers, and long-form content using 10+ thinking models (SCQA, 5W2H, critical thinking, inversion, mental models, first principles, systems…

    353 GitHub starsUsed in 5 repos~3.6k tokens
    EducationAuto-check passed

More from jamesrochabrun/skills

All 23 skills in this repo
  • Prd Generator

    jamesrochabrun/skills

    Generate comprehensive Product Requirements Documents (PRDs) for product managers.

    216 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check passed
  • LLM Router

    jamesrochabrun/skills

    This skill should be used when users want to route LLM requests to different AI providers (OpenAI, Grok/xAI, Groq, DeepSeek, OpenRouter) using SwiftOpenAI-CLI.

    216 GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check passed
  • Technical Launch Planner

    jamesrochabrun/skills

    Plan and execute technical product launches for developer tools, APIs, and technical products.

    216 GitHub starsUsed in 1 repo~3.8k tokens
    Auto-check passed
  • Design Brief Generator

    jamesrochabrun/skills

    Generate comprehensive design briefs for design projects. An agent skill from jamesrochabrun/skills.

    216 GitHub stars~3.3k tokensUpdated 8 mo ago
    Auto-check passed
  • Content Brief Generator

    jamesrochabrun/skills

    Generate comprehensive content briefs for writers, ensuring clarity, alignment, and strategic content creation across all formats.

    216 GitHub starsUsed in 1 repo~2.9k tokens
    Auto-check passed
  • Git Worktrees

    jamesrochabrun/skills

    Manage Git worktrees for parallel Claude Code development. An agent skill from jamesrochabrun/skills.

    216 GitHub stars~4.2k tokensUpdated 8 mo ago
    Auto-check passed

Questions about Math Teacher

What does Math Teacher do?

Interactive math teacher that instantly generates playful, gamified learning experiences. Math Teacher is an agent skill from jamesrochabrun/skills. Interactive math teacher that instantly generates playful, gamified learning experiences.

How do I install Math Teacher in Claude Code?

Run `npx skills add jamesrochabrun/skills --skill math-teacher -a claude-code`. Or copy the skill folder (skills/math-teacher in jamesrochabrun/skills) into .claude/skills/math-teacher in your project. Claude Code loads it when a task matches its description.

How do I install Math Teacher in Codex?

Run `npx skills add jamesrochabrun/skills --skill math-teacher -a codex`. Or copy the skill folder (skills/math-teacher in jamesrochabrun/skills) into .agents/skills/math-teacher in your project. Codex loads it when a task matches its description.

Can I use Math Teacher in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jamesrochabrun/skills --skill math-teacher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/math-teacher, .gemini/skills/math-teacher, .github/skills/math-teacher and .opencode/skills/math-teacher in your project.

What does Math Teacher need to run?

Going by SKILL.md and its folder, Math Teacher needs a shell for the scripts in its folder and the command-line tools its instructions call (bash). Our summary lists: A Bash shell.

Does Math Teacher access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Math Teacher safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Math Teacher use?

Math Teacher is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Math Teacher use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.

What are the alternatives to Math Teacher?

Skills that share tags, products or a category with Math Teacher: Manim Video Production (browser-use/video-use, 28k stars), Baoyu URL To Markdown (sdyckjq-lab/llm-wiki-skill, 2.5k stars), Logseq Review Workflow Eval (logseq/logseq, 45k stars) and DeepTutor CLI (HKUDS/DeepTutor, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Math Teacher?

jamesrochabrun (a GitHub user) maintains it in jamesrochabrun/skills, which has 216 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on January 14, 2026.

Source: jamesrochabrun/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.