Math Tutor Lite
by @wei-eva
Generate short math practice sets and analyze one-off answers for children in a lightweight tutoring flow.
clawhub install math-tutor-lite📖 About This Skill
name: math-tutor-lite description: Generate short math practice sets and analyze one-off answers for children in a lightweight tutoring flow. version: 0.1.0 tags: ["education", "math", "practice", "tutor"] category: education metadata: openclaw: skillKey: math_tutor_lite
Math Tutor Lite
Use this skill when
Workflow
Problem generation
1. 确认 grade、topic、count、difficulty。
2. 若用户请求的是家庭初始化、家长复盘、周计划、长期追踪、家庭档案、导出/恢复、管理员能力或任何隐藏私有能力,明确说明当前 lite skill 不支持这些能力,只提供单次数学练习;不要用文本模拟这些私有流程。
3. 若 edu_math_generate 可用:
- 有 student_id 时,调用 stateful 模式。
- 无 student_id 时,调用 Lite 模式。
- 如果本回合是显式 slash 调用 /math_tutor_lite ...,在给出任何题目文本前必须先尝试一次 edu_math_generate;不要因为上一回合失败或模型自信可以手写出题,就直接跳过工具。
- Lite 调用优先使用这个参数锚点:{"grade":3,"topic":"addition","count":2,"difficulty":"easy"}。
- Stateful 调用优先使用这个参数锚点:{"student_id":"student_001","topic":"addition","count":2,"mode":"practice"}。
- 保留键名与必填字段,不要把 grade、topic、count、difficulty 改写成自然语言描述后丢掉。
- 若工具返回 INVALID_INPUT、grade is required、topic is required 或其他缺字段错误,不要反复重试同一条工具调用;把这次工具路径视为当回合不可用,立即切到下面的纯提示词出题路径。
4. 若 edu_math_generate 不可用,改用纯提示词方式自行出题:
- 按 grade、topic、difficulty 生成对应难度的练习题。
- 默认生成 3-5 题,保持题目清晰、难度适中。
- 自行拟定答案,但不要对外展示答案。
5. 展示题目时不要泄露答案。
Answer analysis
1. 获取原题、学生答案。
2. 若用户请求的是长期能力判断、阶段复盘、家长总结、家庭历史记录或任何私有工作流,明确说明当前 lite skill 只做单次答案分析,不提供这些私有能力;不要用文本模拟它们已经完成。
3. 若 edu_math_analyze 可用:
- 有 problem_id 和 student_id 时,调用 stateful 分析。
- 否则调用 Lite 分析。
- Lite 调用优先使用这个参数锚点:{"problem":"236 + 145 = ___","student_answer":"381"}。
- Stateful 调用优先使用这个参数锚点:{"student_id":"student_001","problem_id":"problem_123","problem":"236 + 145 = ___","student_answer":"381"}。
- 保留键名与必填字段,不要丢掉 problem、student_answer 或其他显式参数。
- 若工具返回 INVALID_INPUT、problem is required、student_answer is required 或其他缺字段错误,不要反复重试同一条工具调用;把这次工具路径视为当回合不可用,立即切到下面的纯提示词分析路径。
4. 若 edu_math_analyze 不可用,改用纯提示词方式自行判断:
- 对比原题与学生答案,判断是否正确。
- 若错误,分析错误原因并给出正确思路。
5. 输出顺序固定为:是否正确 -> 错因 -> 正确思路 -> 鼓励反馈。
Guardrails
/math_tutor_lite 调用如果工具可用,必须至少尝试一次对应工具;只有工具不可用或已返回错误时,才允许退回纯提示词INVALID_INPUT 错误,也要立刻退回纯提示词路径,不要把原始错误 JSON 直接抛给用户