Edu Chem Reaction

Turns a chemical reaction into a 3D web page where you drag a slider to watch bonds break, atoms regroup and new molecules form.

Research & Learningchemistry3danimationinteractive lessonsby wy51ai1.7kGitHub

What it is

A chemistry teaching skill for students and teachers who want to see what molecules actually do during a reaction. You type a reaction or equation, upload a picture of one, or ask for a random example, and it builds one web page. One side is a 3D ball-and-stick animation you can rotate, with a slider that moves the reaction forward step by step. The other side shows the balanced equation, a step-by-step explanation, an atom counter and an optional energy diagram. It covers combustion, the basic reaction types, redox and organic mechanisms such as esterification. Its examples are mainly Chinese; the page follows your prompt's language.

Rather than letting the AI draw molecules freely, a bundled Python script built on SymPy, a math library, balances the equation, checks that every atom on the left has a partner on the right, and works out exactly which bonds break and form. The animation is generated from that data, so the equation, the counts and the picture agree. It picks between two animation styles: one where each atom glides to its new place, which shows that atoms are conserved, and one that moves whole groups through keyframes, for catalysts, transition states and leaving groups. Redox reactions can show electrons moving between atoms.

You get one HTML file in your current folder that opens in a browser, though it needs an internet connection to load its 3D and formula libraries. Molecule shapes come from a small built-in library of common species such as water, methane, carbon dioxide, ammonia and sodium chloride. Six reactions are ready-made; others need the agent to write new build code. If RDKit, a chemistry toolkit, is already installed it is used for more realistic shapes, but it is never installed for you.

What it can do

  • Balances chemical equations automatically and checks that atoms are conserved from reactants to products.
  • Animates bond breaking, bond forming and atom regrouping in 3D, controlled by a progress slider.
  • Shows electron transfer in redox reactions, and catalysts and transition states in organic mechanisms.
  • Adds optional flame effects and an energy curve that follows the reaction's progress.
  • Reads a reaction from an image and asks you to confirm it before building the page.
  • Includes ready-made examples such as methane combustion, electrolysis of water and esterification, or picks one at random.

When to use it

  • You are teaching conservation of mass and want students to watch the atoms in burning methane rearrange.
  • You keep forgetting how esterification works and want to see the catalyst and transition state step by step.
  • You want an interactive page showing sodium handing an electron to chlorine for a redox lesson.
  • You photographed an equation in a textbook and want a balanced, animated version of it.

How it works

  1. 1Turns your text, image or random request into a structured reaction: reactants, products, conditions, category and language.
  2. 2Checks that Python with SymPy is available and asks before installing anything that is missing.
  3. 3Runs its reaction script to balance the equation, match atoms across both sides and work out the bond changes.
  4. 4Chooses the animation style, writes the explanation for each step and fills the bundled page template.
  5. 5Opens the page on a temporary local server to check the equation and slider, then shuts the server down.
  6. 6Saves the HTML file in your current folder and tells you where it is.

Try asking

“Show me what happens to the molecules when methane burns, as an interactive 3D page.”
“Make an animated demo of esterification with the acid catalyst.”
“Balance and animate the electrolysis of water.”
“Give me a random chemical reaction to explore in 3D.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/wy51ai/edulab/tree/master/skills/edu-chem-reaction
pnpm
pnpm dlx skills add https://github.com/wy51ai/edulab/tree/master/skills/edu-chem-reaction

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the edu-chem-reaction folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/wy51ai/edulab.git
mkdir -p ~/.claude/skills
cp -r edulab/skills/edu-chem-reaction ~/.claude/skills/edu-chem-reaction

Then just ask in plain language, for example: “Show me what happens to the molecules when methane burns, as an interactive 3D page.”