计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
cot_equation_calculator【效率与协作】Safely check and repair simple arithmetic equations inside chain-of-thought reasoning traces.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when an arithmetic chain-of-thought trace contains explicit equations and you need to verify or repair calculation-only errors. Do not use it to validate semantic reasoning, create prompts, or score final answers directly.
2 * 3 = 6.ast.Run:
python scripts/cot_equation_calculator.py --self-test
python -m unittest discover -s tests
The tests cover correct equations, incorrect equations, repaired traces, multiple equations, and unsafe expressions that must be ignored.
The calculator intentionally refuses variables, function calls, and arbitrary Python syntax. It cannot decide whether the chosen equation is semantically appropriate for the word problem.