Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add SparkElf/deepseek-harness-plus --skill online-course-automationgit clone --depth 1 https://github.com/SparkElf/deepseek-harness-plusWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sparkelf/deepseek-harness-plus/online-course-automation)<a href="https://agentmods.dev/skills/sparkelf/deepseek-harness-plus/online-course-automation"><img src="https://agentmods.dev/badge/skills/sparkelf/deepseek-harness-plus/online-course-automation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sparkelf/deepseek-harness-plus/online-course-automation"><img src="https://agentmods.dev/badge/skills/sparkelf/deepseek-harness-plus/online-course-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00104 | $0.03184 |
| Opus 5.5 | $0.00042 | $0.01274 |
| Sonnet 5.5 | $0.00021 | $0.00637 |
| Haiku 4.5 | $0.00010 | $0.00318 |
Grade A, and why
online-course-automation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://127.0.0.1:9333/json/version How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
刷在线课程 / 完成学时
把"刷课"当成一个逆向平台计分规则的问题,不是"点播放然后等"的问题。
核心结论先给,这四条是整个流程的成败点:
- 完成线是视频的 80%,但进度只在视频播到结尾时才上报。 停在 80% 记录为 0。 这是最反直觉、最容易白刷一整门课的一条。
- 倍速上限是播放器自带档位(通常是 1.5x)。 4x 加回拖进度条会触发"学习异常"警告。
- 文档类课程不是"要读",而是"停留满几秒自动完成"。 页面上的
需学 00:05就是阈值。 - 页面显示的"课程进度 0%"经常是缓存。 判定完成一律以接口为准。
先判断是哪一类内容
打开课程后看章节行右侧:
| 页面显示 | 类型 | 完成条件 |
|---|---|---|
视频 34:43 需学 27:47 |
视频 | 播放到视频结尾(34:43 × 80% = 27:47 就是那条 80% 线) |
文档 05:00 需学 00:05 |
文档 | 打开后停留约 5 秒,翻页/滚动即可触发上报 |
需学 后面的数字是"还差多久达标",不是"要学多久"。视频类它等于该视频 80% 位置;文档类它基本是平台的最小停留阈值。
工作流
0. 接管浏览器
先确认登录态在哪个浏览器里。 这一步最容易走错:
# 浏览器必须带调试端口启动,否则接管不了
curl -s http://127.0.0.1:9333/json/version
Chrome 136+ 拒绝对默认 user-data-dir 开放 --remote-debugging-port。所以日常在用的 Chrome 通常没有可用端口,无论它启动时加没加参数。两条路:
- 推荐:另起一个带独立 profile 和调试端口的实例,在里面登录一次,之后长期复用。独立 profile 不受该限制。
- 或走 GUI 自动化(cua-driver)直接操作用户自己的窗口。
接管别人的浏览器前先问清楚:能不能开新实例、是否需要保留当前登录态。
1. 摸清上报接口(换平台必做)
在未知平台上,不要凭页面文字猜规则。跑探测脚本,然后自己在页面上点几下:
node scripts/probe-api.mjs 180 progress
它把进度请求的 URL、鉴权头、请求体和响应全打出来。你要从里面读出三件事:
- 哪个接口携带进度;
- "完成"的判据是什么(百分比规则?秒数阈值?);
- 什么动作才真正触发上报。
第三点最关键。本次实测就发现:只有视频播到结尾才上报。
2. 列出未完成项
node scripts/list-courses.mjs <subjectId>
subjectId 是 URL #/study/subject/detail/<subjectId> 里的 UUID。输出剩余课程及其 courseId。
3. 逐门完成
一次只开一门。 批量打开课程正是平台判定异常学习的行为:
node scripts/open-course.mjs <courseId> <subjectId> # 打开并确认章节结构
node scripts/play-course.mjs <courseId> # 逐章播到结尾
node scripts/list-courses.mjs <subjectId> # 复核(不要只看页面)
视频章节会以 1.5x 播到结尾;文档章节只做停留。脚本每次只处理当前打开的那一门。
整专题批量刷用 run-subject.mjs,它把上面这套串起来,并且是断点续跑、可中断、能自愈的:
node scripts/run-subject.mjs <subjectId>
它每轮都重新从服务端读进度,所以中途被杀掉(宿主重启、休眠、token 过期)后直接重跑即可,不会重复刷已完成的课。一个新专题建议先用 open-course.mjs + play-course.mjs 手动验证一门,确认规则一致后再交给它跑。
4. 复核
始终以 list-courses.mjs 为准,不要相信页面上的百分比。本次实测中,页面刷新后仍显示 75%,而服务端该课程 4 个章节已全部 finishStatus=2。
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- i18n/zh.json 1.0 KB
- scripts/cdp.mjs 3.1 KB runs code
- scripts/list-courses.mjs 2.0 KB runs code
- scripts/open-course.mjs 2.0 KB runs code
- scripts/play-course.mjs 5.3 KB runs code
- scripts/probe-api.mjs 3.6 KB runs code
- scripts/resolve-playwright.mjs 2.6 KB runs code
- scripts/run-subject.mjs 10 KB runs code
- scripts/zhixueyun.mjs 5.8 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 207 lines · 104 tokens per session scan A cba8cf35bc05
online-course-automation is a skill published in the GitHub repository SparkElf/deepseek-harness-plus (1 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 3,184 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.
online-course-automation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| online-course-automationSparkElf/deepseek-harness-plus | Skill | 1 | today | MIT | A | 104 | Claude Code, Codex |
| dsh-tui-guideccch1mneyyy/dsh-TUI | Skill | 8.4k | today | MIT | A | 41 | Claude Code, Codex |
| browser-use-cliamplifthq/oh-my-dsh | Skill | 20 | 1mo ago | MIT | C | 32 | Claude Code, Codex |
| modsearchliustack/modsearch | Skill | 1.1k | 4d ago | MIT | A | 99 | Claude Code |
| game-devsandbaseai/sandbase-skills | Skill | 213 | 7d ago | Apache-2.0 | A | 50 | Claude Code |
| i-have-adhdsandbaseai/sandbase-skills | Skill | 213 | 7d ago | Apache-2.0 | A | 41 | Claude Code |
| screenshot-capturesandbaseai/sandbase-skills | Skill | 213 | 7d ago | Apache-2.0 | A | 45 | Claude Code |