How wy51ai/edulab works
Purpose and Distribution
edulab is a collection of installable Claude/skills education skills that transform a problem or reaction into a standalone interactive HTML lesson. It is distributed as both a skills package and Claude plugin marketplace entry via .claude-plugin/plugin.json and .claude-plugin/marketplace.json.
Invocation and Entry Points
Each domain skill accepts normalized text problems, image-derived problems, or seeded/random examples through its skill definition and CLI generator:
• Solid geometry: skills/edu-solid-geometry/SKILL.md, skills/edu-solid-geometry/scripts/generate.py
• Analytic geometry: skills/edu-analytic-geometry/SKILL.md, skills/edu-analytic-geometry/scripts/generate.py
• Chemistry: skills/edu-chem-reaction/SKILL.md, skills/edu-chem-reaction/scripts/generate.py
The CLI writes self-contained HTML to an explicit output path or the current working directory.
Shared Pipeline
All three skills follow a domain-specific pipeline: structured problem/reaction specification → exact or validated kernel computation → lesson/model data assembly → injection into a generic browser template → generated HTML delivery. Reference schemas and conventions establish the contract between skill prompting, generators, and kernels, e.g. skills/edu-solid-geometry/references/problem-schema.md and skills/edu-chem-reaction/references/conventions.md.
Solid Geometry Solver and Renderer
skills/edu-solid-geometry/lib/geometry_kernel.py is the SymPy-backed exact solver for coordinate/vector formulations, answers, intermediate values, and Three.js coordinates. skills/edu-solid-geometry/lib/bodies.py supplies solid edge topology. The generator packages this model into skills/edu-solid-geometry/template/lesson.html, a data-driven 3D lesson renderer using Three.js and MathJax.
Analytic Geometry Solver and Board
skills/edu-analytic-geometry/lib/analytic_kernel.py solves conic problems using parameterized lines, systems, Vieta relations, substitutions, and endpoint attainability checks. skills/edu-analytic-geometry/lib/conics.py defines supported curves. Its output feeds skills/edu-analytic-geometry/template/board.html, which provides Canvas-based conic interaction, parameter-driven constructions, live values, and KaTeX rendering.
Chemistry Validation and Molecular Animation
skills/edu-chem-reaction/lib/reaction_kernel.py is the consistency boundary: it balances equations with SymPy, validates atom-map bijections and conservation, computes broken/formed bonds, and assembles render data. skills/edu-chem-reaction/lib/molecules.py supplies default VSEPR molecular geometry; RDKit is optionally used when already present for SMILES conformers. skills/edu-chem-reaction/template/reaction.html is a unified Three.js renderer supporting morph and mechanism position-resolution engines, equation/narration UI, counters, and optional energy curves.
Runtime and External Boundaries
Generation runs under Python 3 with SymPy required by all compute kernels. Generated lessons are static browser artifacts: solid geometry and chemistry use Three.js; analytic geometry uses Canvas; math presentation uses MathJax or KaTeX by template. There is no server-side application runtime or required external API. index.html is a completed sample artifact rather than a runtime entry point.
Main entry points: plugin.json Claude plugin entry · SKILL.md Solid skill · geometry_kernel.py Exact geometry solver · analytic_kernel.py Conic solver
Components 19
Distribution
- Claude plugin entry · Publishes the skills package and marketplace entry.
.claude-plugin/plugin.json - Marketplace entry
.claude-plugin/marketplace.json
Solid Geometry
- Solid skill
skills/edu-solid-geometry/SKILL.md - Solid generator
skills/edu-solid-geometry/scripts/generate.py - Exact geometry solver · Computes exact results, intermediates, and 3D coordinates.
skills/edu-solid-geometry/lib/geometry_kernel.py - Solid topology
skills/edu-solid-geometry/lib/bodies.py - 3D lesson template · Data-driven Three.js and MathJax lesson.
skills/edu-solid-geometry/template/lesson.html
Analytic Geometry
- Analytic skill
skills/edu-analytic-geometry/SKILL.md - Analytic generator
skills/edu-analytic-geometry/scripts/generate.py - Conic solver · Uses parameterized lines, systems, Vieta, and attainability checks.
skills/edu-analytic-geometry/lib/analytic_kernel.py - Supported conics
skills/edu-analytic-geometry/lib/conics.py - Interactive board · Canvas board with live constructions and KaTeX.
skills/edu-analytic-geometry/template/board.html
Chemistry
- Chemistry skill
skills/edu-chem-reaction/SKILL.md - Reaction generator
skills/edu-chem-reaction/scripts/generate.py - Reaction validator · Balances equations, validates atom maps, derives bonds, and assembles render data.
skills/edu-chem-reaction/lib/reaction_kernel.py - Molecular geometry · Optionally uses available RDKit conformers.
skills/edu-chem-reaction/lib/molecules.py - Reaction lesson template · Three.js morph/mechanism animation with equation and energy UI.
skills/edu-chem-reaction/template/reaction.html
Generated Lesson Runtime
- Standalone HTML lesson · CLI writes to an explicit path or current directory; no server runtime.
Other components
- Problem contracts · Conventions connect skill prompting, generators, and compute kernels.
skills/edu-solid-geometry/references/problem-schema.md
Connections 20
- Marketplace entry → Claude plugin entry: lists
- Claude plugin entry → Solid skill: publishes
- Claude plugin entry → Analytic skill: publishes
- Claude plugin entry → Chemistry skill: publishes
- Problem contracts → Solid skill: defines input
- Solid skill → Solid generator: invokes
- Solid generator → Exact geometry solver: solves specification
- Solid topology → Exact geometry solver: provides edges
- Exact geometry solver → 3D lesson template: injects lesson data
- 3D lesson template → Standalone HTML lesson: renders
- Analytic skill → Analytic generator: invokes
- Analytic generator → Conic solver: solves specification
- Supported conics → Conic solver: defines curves
- Conic solver → Interactive board: injects board data
- Interactive board → Standalone HTML lesson: renders
- Chemistry skill → Reaction generator: invokes
- Reaction generator → Reaction validator: validates reaction
- Molecular geometry → Reaction validator: provides geometry
- Reaction validator → Reaction lesson template: injects render data
- Reaction lesson template → Standalone HTML lesson: renders