executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
edulab面向中高考数学的可视化解题工具:空间几何题生成可交互 3D 解题演示(建系向量法 + sympy 校验 + Three.js),函数表达式生成参数可控的 2D 图形(滑块实时联动)。产物为单文件自包含交互式 HTML。适用:用户给出立体几何题要 3D 演示解题步骤、要函数图像并能拖滑块看参数变化、要数学可视化教学素材。触发词:/edulab、立体几何、空间几何题、线面角、二面角、点到平面距离、异面直线距离、外接球、内切球、三视图、函数图像、函数可视化、二次函数、数学可视化。用法:/edulab <题目或函数>。
Independent GitHub snapshot · Automated classification · Original documentation governs
中高考数学可视化:把中文立体几何题或函数表达式,变成单文件、可离线打开、可交互的 HTML 演示。几何走"读题 -> spec JSON -> 建系向量法求解(sympy 校验)-> Three.js 场景";函数走"函数族 + 参数 -> Canvas2D 绘图 + 参数滑块实时联动"。
/edulab <题目或函数>、立体几何、空间几何题、线面角、二面角、外接球、内切球、三视图、函数图像、数学可视化。teach-eli5(可视化教学页)。curriculum-design。infocard / mckinsey-cover。路径约定:下文
<skill>指本技能安装目录(如~/.claude/skills/edulab)。运行脚本前先cd到该目录,或替换为实际路径。Python 需装 sympy(建议python3 -m venv .venv && .venv/bin/pip install sympy)。
references/schema.md;题型清单见 references/taxonomy.md)。cd <skill>/scripts/geometry
python3 geometry_solver.py <spec.json> <scene.json>
检查 steps 与 result 是否与标准答案一致;不一致则修 spec 重跑,不得静默交付错误答案。--offline 内联 Three.js,无网环境可打开):
python3 build_html.py <scene.json> <out.html> [--offline]
present_files 打开 out.html。cd <skill>/scripts/function
python3 function_engine.py <family> <params.json> <scene.json>
python3 build_html.py <scene.json> <out.html>,然后用 present_files 打开。完整命令配方见 examples/quickstart.md。
query.type 支持 13 种:line_plane_angle / line_line_angle / dihedral_angle / point_plane_distance / volume_tetra / parallel_perp / skew_distance / circumsphere / insphere / three_views / surface_shortest_path / net / surface_volume。{"expr": "sin(x)/x"},只走 safe_expr.py,非法输入直接拒绝。{"items": [{"expr":..., "label":...}]}。references/schema.md。references/taxonomy.md。references/design.md。--offline,否则 CDN 版打不开。safe_expr.py(禁 eval/Function)。assets/vendor/three.min.js、assets/vendor/OrbitControls.js、assets/vendor/CSS2DRenderer.js(--offline 时内联)。safe_expr.py,任何绕过解析器的写法都禁止。--offline,接受约 +630KB 内联开销。交付前逐项确认:
references/schema.md。--offline 验证可打开。safe_expr.py 解析,注入样例被拒绝。present_files 向用户展示产物。scene.json(中间契约)+ out.html;几何产物含 steps 数组与精确值/数值双结果;函数产物含参数滑块与联动性质(顶点/零点/渐近线等)。按需加载,不要预先全读:
references/schema.md — 写 spec 或读取 scene、需要字段契约时读。references/taxonomy.md — 需要确认题型 / 函数族 / 立体的支持状态时读。references/design.md — 需要架构决策、渲染要点、阶段规划、验证记录或已知边界时读。按需加载:
examples/quickstart.md — 第一次跑通或需要完整命令配方与样例清单时读。examples/geom_line_plane_angle.json、examples/geom_line_line_angle.json、examples/geom_dihedral_angle.json、examples/geom_point_plane_distance.json、examples/geom_skew_distance.json、examples/geom_volume_tetra.json、examples/geom_parallel_perp.json、examples/geom_circumsphere.json、examples/geom_insphere.json、examples/geom_three_views.json、examples/geom_net.json、examples/geom_surface_path.json、examples/geom_surface_volume.json、examples/geom_pyramid_apex_angle.json — 需要构造同类题目时读,改造其 solid/params/query 即可。examples/func_quadratic.json、examples/func_custom.json、examples/func_multi.json — 需要函数产物的参数写法时读。按调用链使用,不要跳步:
scripts/geometry/geometry_solver.py — python3 geometry_solver.py <spec.json> <scene.json>;返回 scene JSON(points/edges/steps/result 等)。scripts/geometry/build_html.py — python3 build_html.py <scene.json> <out.html> [--offline];返回单文件 HTML 路径。scripts/geometry/solids.py — 立体积木库(8 种立体的参数化标准顶点 labeling 与 edges);新增立体在此加 vertices/edges。scripts/geometry/template_3d.html — Three.js r128 + CSS2DRenderer 中文标签模板,含数据注入占位。scripts/function/function_engine.py — python3 function_engine.py <family> <params.json> <scene.json>;返回函数 scene JSON,支持 custom 与 multi。scripts/function/build_html.py — python3 build_html.py <scene.json> <out.html>;返回单文件 HTML(前端零求值)。scripts/function/function_families.py — 7 个函数族的参数定义(默认/范围/步长);新增函数族在此加项。scripts/function/safe_expr.py — 递归下降 AST 安全表达式解析器;SafeExpr(expr).eval({"x": v})。scripts/function/template_2d.html — Canvas2D + 参数滑块模板,含 f() / computeProps() 分支。teach-eli5 — 把概念讲给外行听的教学页;本技能产出可交互演示,它产出图文讲解。curriculum-design — 课程与教案设计,本技能可作为课堂互动素材。grasp — 十维认知框架与学习路线图,用于学习者的系统自学。