DeepSeek Harness 插件

gengyabc/baicai-edu#math-primary-low

Star 数 ★ 2 下载量(近 30 天) 1,213 分类 技能包 收录于 2026-11-25 npm baicai-edu-math-primary-low

面向 1-3 年级的 CGI 式小学数学教学规则:自适应推进、策略诊断、针对性练习与学生出题;年级只调整语言与表征,不限制学生可以探索的内容。

安装

# npm 包(预构建)

dsh plugin --profile web add baicai-edu-math-primary-low

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:gengyabc/baicai-edu#path:/math-primary-low

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

English | 中文

English

CGI-style primary math teaching for grades 1–3, the default band for the math subject: adaptive turns, strategy diagnosis, targeted practice and student-authored problems. Grade tunes language, notation and representation only — never what a student may explore, and high-grade content stays open to a younger student. Shared math contracts come from baicai-edu-math; the board is the separate plugin baicai-edu-math-board, a required dependency here. This package ships rules, not a runtime or a tool. The grades 4–6 package is math-primary-high/, and both share the math subject id.

Entries

The package adds no command; math is reached through the shared entries, and the lesson runs in math-low-session.

Command Purpose
/learn-start Pick math in the subject table, identify or create the student
/learn Math teaching mainline: set focus, advance one action, record one segment
/learn-feynman The student explains their own thinking; the AI listens as a classmate

The resolver picks the band from a known grade (1–3 → low, 4–6 → high, no grade → low), owned by learn-data's references/teaching-resolver.md. That priority is not a content gate, and a running task keeps the band it was started with, unaffected by the other package being installed.

Install

From the registry, name every bundle you want enabled: pnpm installs this package's declared dependencies, but DSH enables only the bundles the call selects.

dsh plugin --profile web add baicai-edu-learn baicai-edu-math baicai-edu-math-board baicai-edu-math-primary-low

From a local checkout of the repository, the installer expands that same list for you:

# from the repository root: installs learn, math-common, math-board and this band
node scripts/install.mjs math-primary-low --profile web

Restart if DSH says so, then refresh the Web session. When it worked, the model catalog lists the math-low-* skills, / shows no math command of its own, and choosing math in /learn enters the low band. Shared dependencies: learn-core owns teaching, roles and confirmation; learn-data owns snapshots, records and finalize; learn-errors owns dropped files. The installer fills dependencies in but does not re-enable a bundle you disabled by hand; do not replace a full install with a lone link: of a math package. Unified entry, re-install and manual-disable behavior: installation guide.

If the catalog lists math-low-* but has no /learn-start and no learn-* skills, the shared bundles were downloaded without being selected: re-run the registry command above. Reinstalling this package does not fix that state.

What is irreversible

  • data/.../raw/ originals are read-only; rename only after backing up.
  • Deleting student data belongs to learn-clean, not this package, and its high-risk forms are permanent.
  • A board clear wipes the canvas and this round's local edit history together. The tool records the request; whether the client applied it needs separate confirmation, and values, colors, attachments and the student profile are untouched.

Where the data lives

System state is in outputs/students/, user originals in data/students/<student_id>/math/raw/. Both sit in the current workspace and never ship. Field paths, per-turn records and write exceptions: student data directories.

Further reading

To learn about Go to
Which skill owns which rule, leaf dispatch, shared contracts and local deltas Skills and rule ownership
What the board is, how teaching uses it, and who may clear it The math board
Guided work, informed full solution, and what counts as independent Teaching boundaries
Student data layout, math fields, per-turn records Student data directories
Building resources/, checks, teaching scenarios Development and validation

中文

以小学低年级(1–3 年级)为主的 CGI 数学指令包,也是 math 科目的默认带:一回合教学、策略诊断、分层练习、学生出题考 AI。年级只调整语气、语言、记号和呈现,从不限制学生探究什么,低年级学生仍可探索高年级内容。共享数学契约来自 baicai-edu-math;画板是独立插件 baicai-edu-math-board,在本包是必需依赖。本包给的是规则,不是运行时或工具。4–6 年级对应包为 math-primary-high/,两者科目 id 同为 math。

入口

本包不新增命令,数学通过共享入口进入,课程在 math-low-session 里跑。

命令 作用
/learn-start 在科目表里选数学,识别或创建学生
/learn 数学教学主线:定焦点、推进一个动作、记录唯一回合段
/learn-feynman 学生讲自己的思路,AI 当同龄同学听

选型按已知年级决定带(1–3 年级 → 低年级包,4–6 年级 → 高年级包,无年级 → 低年级包),归 learn-data 的 references/teaching-resolver.md 统一负责。这个优先级不是内容门槛;进行中的任务保留开始时的带,不受另一个包安装影响。

安装

从 registry 装时请把要启用的 bundle 都写出来:pnpm 会装本包声明的依赖,但 DSH 只启用本次命令选中的 bundle。

dsh plugin --profile web add baicai-edu-learn baicai-edu-math baicai-edu-math-board baicai-edu-math-primary-low

在仓库里从源码安装时,安装器会替你展开同一份名单:

# 在仓库根目录运行:安装 learn、math-common、math-board 与本年级段包
node scripts/install.mjs math-primary-low --profile web

按 DSH 输出决定是否重启,再刷新 Web 会话。装好后模型目录里有 math-low-* 技能,/ 不新增数学命令,在 /learn 里选数学进入低年级带。共享依赖:learn-core 管教学、角色与确认;learn-data 管快照、记录与收尾保存;learn-errors 管投放文件。安装器补齐依赖,但不会重新启用此前手动禁用的技能包;不要用 link: 单独装数学包来替代完整安装。统一入口、重复安装与手动禁用见统一安装说明。

如果模型技能目录里有 math-low-*,却没有 /learn-start、也没有 learn-* 技能,那是共享包被下载但没有被选中:重跑上面的 registry 命令即可,重装本包解决不了这种状态。

不可逆的部分

  • data/.../raw/ 原件只读,改名须先备份。
  • 删除学生数据归 learn-clean,不属于本包,其中高风险形式永久不可恢复。
  • 清空画板会同时清掉画布与本轮的本地修改记录。工具只记录请求,客户端是否执行须另有确认;数值、颜色、已有附件与学生档案不受影响。

数据放在哪

系统状态在 outputs/students/,用户原件在 data/students/<student_id>/math/raw/。两处都在当前工作区,不随包发布。字段路径、逐轮记录与写入例外见学生数据目录。

深入阅读

想了解 位置
哪条规则归谁、子技能调度、共享契约与本地差异 技能与规则所有权
画板是什么、教学怎么用、谁能清空 数学画板
引导、知情全解、什么算独立完成 教学边界
学生数据布局、数学字段、逐轮记录 学生数据目录
构建 resources/、检查、教学场景 开发与验证

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。