name: math-textbook-compiler
Convert mathematical formulas into engineering APIs to help overcome "symbol phobia". Transform dense math textbooks into interactive, hands-on learning materials.
clawd/
├── staging/ # Draft materials awaiting release
│ ├── course_dayN.html
│ ├── exercises/dayN_task.py
│ └── tests/test_dayN.py
├── courseware/ # Final published course materials
├── exercises/ # Python exercise files
├── tests/ # Test cases
├── templates/ # HTML/Python templates
├── scripts/ # Automation scripts
└── textbook/ # Source textbook files
/mnt/ai/textbooks/
lihang-code (Statistical Learning Methods)d2l-zh (Dive into Deep Learning)Book-Mathematical-Foundation-of-Reinforcement-Learningstaging/staging/ to courseware/, exercises/, tests/$formula$ (no spaces inside delimiters)
$x + y$$ x + y $$$formula$$ (no spaces inside delimiters)
$$\sum_{i=1}^{n} x_i$$$$ \sum_{i=1}^{n} x_i $$numpy, torch (basic tensor operations only)torch.nn and other high-level APIshttps://code.indigofloyd.space/ClawLab/MathLab.git
originhttps://code.indigofloyd.space/ClawLab/RobotDaily.git
dailybotgit config http.sslVerify false # Self-signed certificate
git config credential.helper store
See templates/course_module_template.html for structure:
See templates/exercise_template.py:
"""
Day N: [Topic]
Implement [algorithm] from scratch using numpy/torch
"""
import numpy as np
# or import torch
def your_implementation():
pass
See templates/test_template.py:
"""
Test cases for Day N exercises
"""
import numpy as np
def test_implementation():
# Verify correctness
pass
0 10 * * 687041122-59af-4f79-8599-e987fd494dad0 14 * * *78dee83d-4c29-4f79-8599-e987fd494dadConfigure RobotDaily repository settings:
#!/bin/bash
git remote add dailybot <url>
git config remote.dailybot.url <url>
When skill updates are needed:
cd /home/zhn/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/skills/skill-creator
python3 scripts/package_skill.py ../math-textbook-compiler
~/.git-credentialsgit config http.sslVerify false for self-signed certs/mnt/ai/textbooks/$...$ or $$...$$references/workflow.mdreferences/latex-rules.mdreferences/exercise-patterns.md