|
|
1 settimana fa | |
|---|---|---|
| .openclaw | 2 settimane fa | |
| courseware | 1 settimana fa | |
| exercises | 1 settimana fa | |
| memory | 2 settimane fa | |
| modelfiles | 2 settimane fa | |
| reports | 2 settimane fa | |
| scripts | 3 settimane fa | |
| skills | 2 settimane fa | |
| staging | 2 settimane fa | |
| templates | 3 settimane fa | |
| tests | 1 settimana fa | |
| .gitignore | 3 settimane fa | |
| AGENTS.md | 3 settimane fa | |
| BOOTSTRAP.md | 3 settimane fa | |
| HEARTBEAT.md | 3 settimane fa | |
| IDENTITY.md | 1 settimana fa | |
| MEMORY.md | 1 settimana fa | |
| README.md | 2 settimane fa | |
| SOUL.md | 1 settimana fa | |
| TOOLS.md | 3 settimane fa | |
| USER.md | 1 settimana fa | |
| math-textbook-compiler.skill | 3 settimane fa | |
| robot_daily_20260304_103219.html | 1 settimana fa | |
| robot_daily_20260304_234333.html | 1 settimana fa |
一个面向深度学习/强化学习学习者的数学课件编译与部署仓库。
目标是把“抽象数学符号”转成“可执行的工程理解路径”:
MathLab 聚焦 3 件事:
∇ → gradient,E[] → 采样均值)当前教材根目录(配置):
/mnt/ai/textbooks
当前覆盖方向:
本仓库仅保留数学学习与课件生产相关内容。
.
├── courseware/ # 正式课件输出(HTML/学习文档)
├── exercises/ # 正式练习代码
├── tests/ # 正式测试代码
├── staging/ # 编译暂存区(批处理先输出到这里)
│ ├── course_dayN.html
│ ├── exercises/dayN_task.py
│ └── tests/test_dayN.py
├── skills/
│ ├── mathlab/ # 主技能(当前使用)
│ │ ├── SKILL.md
│ │ ├── config.yaml
│ │ └── scripts/
│ │ ├── check_env.py
│ │ ├── compile_day.py
│ │ ├── deploy_day.py
│ │ └── pdf_to_md.py
│ └── math-textbook-compiler/ # 历史/参考技能
├── templates/ # 练习与测试模板
└── scripts/ # 辅助脚本
将某一 Day 的主题编译到 staging/:
python3 skills/mathlab/scripts/compile_day.py --day 1 --topic "感知机"
输出:
staging/course_day1.htmlstaging/exercises/day1_task.pystaging/tests/test_day1.py将 staging 内容发布到正式目录并做 Git 交付:
python3 skills/mathlab/scripts/deploy_day.py --day 1 --topic "感知机"
部署动作包括:
courseware/ exercises/ tests/v_day1_感知机)推荐依赖:
pyyamlpytestnumpyjinja2pdftotext(用于 PDF 转文本)环境检查:
python3 skills/mathlab/scripts/check_env.py
关键字段:
textbook_path: 教材根目录textbooks: 教材列表、阶段与主题gogs_url: 远程仓库地址git_branch: 推送分支output: staging / courseware / exercises / tests 输出目录notification: 通知开关与模板当前统一规范:
https://code.indigofloyd.spaceClawLabmathlab远程示例:
git remote set-url origin https://code.indigofloyd.space/ClawLab/mathlab.git
每个 Day 的课件建议保持固定结构:
这样可保证“理解-实现-验证”的闭环。
后续新增功能时,默认先给出思维导图式任务拆解(逻辑与层级),再进入编码执行。
目的:
# 查看仓库状态
git status
# 编译 Day N
python3 skills/mathlab/scripts/compile_day.py --day N --topic "主题"
# 部署 Day N
python3 skills/mathlab/scripts/deploy_day.py --day N --topic "主题"
# 运行测试(示例)
pytest -q tests/
如果你希望,我可以在下一步把“每日自动化部署 + Feishu 附件推送”再整理成一套可直接复用的 SOP。