← 返回 Skills 市场
tonylemon

learn-courses-mooc

作者 tonylemon · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
199
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install learn-courses-enhanced
功能描述
MOOC自动化学习工具 - 自动完成课程视频学习、检测章节状态、等待视频播放完成
使用说明 (SKILL.md)

\r \r

MOOC自动化学习工具 (增强版)\r

\r 本Skill提供基于Playwright的MOOC平台自动化学习功能。\r \r

何时使用本Skill\r

\r 当用户请求以下操作时使用本Skill:\r

  • 自动学习MOOC课程视频\r
  • 批量完成课程章节学习\r
  • 自动化视频播放和完成检测\r \r

功能特性\r

\r

  1. 多课程支持 - 支持配置多个课程,自动逐个学习\r
  2. 自动章节检测 - 识别"开始学习"、"继续学习"、"复习"状态的章节\r
  3. 视频播放监控 - 等待视频播放完成,支持进度检测和完成状态识别\r
  4. 弹窗智能处理 - 自动关闭学习过程中的确认弹窗\r
  5. 防休眠机制 - 随机点击防止屏幕休眠\r
  6. 进度保存 - 意外中断后可恢复学习进度\r
  7. 异常自动恢复 - 网络异常时自动刷新重试\r
  8. 学习统计报告 - 生成详细的学习报告\r \r

使用方法\r

\r

环境要求\r

\r

  • Node.js 18+\r
  • 已安装Playwright: npm install playwright\r
  • Chrome浏览器\r \r

安装依赖\r

\r

cd \x3Cskill目录>\r
npm install playwright\r
```\r
\r
### 配置课程\r
\r
编辑 `scripts/learn-courses.js`,在 `CONFIG.COURSES` 数组中添加目标课程:\r
\r
```javascript\r
COURSES: [\r
  {\r
    id: 'course-1',\r
    name: '课程名称',\r
    url: 'https://mooc.ctt.cn/#/study/subject/detail/...'\r
  }\r
],\r
```\r
\r
### 运行脚本\r
\r
```bash\r
node scripts/learn-courses.js\r
```\r
\r
## 配置文件说明\r
\r
| 配置项 | 说明 |\r
|--------|------|\r
| `CONFIG.COURSES` | 课程列表,支持多个 |\r
| `CONFIG.VIDEO.MAX_WAIT_SECONDS` | 视频最大等待时间 |\r
| `CONFIG.BROWSER.HEADLESS` | 是否无头模式 |\r
\r
## 输出文件\r
\r
- `learning-progress.json` - 学习进度保存\r
- `learning-report.json` - 学习统计报告\r
\r
## 注意事项\r
\r
1. 本工具仅用于个人学习辅助,请遵守平台服务条款\r
2. 建议在夜间运行以避开高峰期\r
3. 部分平台可能有反自动化机制,请适度使用\r
安全使用建议
This appears to be a straightforward Playwright-based MOOC automation script: it will open a browser, require you to log in, and save progress to learning-progress.json / learning-report.json in the working directory. Before running: (1) inspect the entire scripts/learn-courses.js file (the provided copy was truncated) to ensure there are no hidden network calls or unexpected behavior; (2) run it in a restricted account or VM if you are unsure; (3) install Playwright and its browser binaries only from official sources (npx playwright install chrome); (4) review the CONFIG.COURSES URLs and any executable path settings (process.pkg / chrome executable) to avoid running unknown binaries; (5) do not run as root/admin and avoid using sensitive accounts while testing.
功能分析
Type: OpenClaw Skill Name: learn-courses-enhanced Version: 1.0.2 The skill bundle provides a functional Playwright-based automation tool for the MOOC platform (mooc.ctt.cn). The main script, scripts/learn-courses.js, automates video playback, handles interactive popups, and records learning progress in local JSON files. While it includes bot-detection evasion techniques (disabling AutomationControlled) and anti-sleep mechanisms, these behaviors are consistent with the stated purpose of the tool and do not exhibit signs of data exfiltration, credential theft, or malicious system interference.
能力评估
Purpose & Capability
Name/description (MOOC automation) match the files and instructions: the SKILL.md explains using Node + Playwright and the script implements browser automation for course/video progress. Declared dependencies (playwright) and required runtime (Node.js, Chrome) are proportional to the stated purpose.
Instruction Scope
SKILL.md instructs running the provided Node script and installing Playwright; instructions and visible code operate on the target MOOC URLs and local progress/report files. There are no instructions to read unrelated system files or to send data to external endpoints in the visible parts.
Install Mechanism
No automatic install spec is provided (instruction-only), and SKILL.md asks the user to run npm install/playwright locally. Dependencies are from npm (playwright) which is expected for browser automation.
Credentials
The skill requests no environment variables or credentials. The script reads/writes local JSON files for progress and report, which is reasonable for this tool. There are no signs in the visible code of accessing unrelated credentials or config paths.
Persistence & Privilege
Skill is not always-enabled and uses normal agent invocation. It does not request elevated system-wide privileges in the visible files and only persists local progress/report files in the working directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install learn-courses-enhanced
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /learn-courses-enhanced 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added _meta.json metadata file for enhanced skill management. - No changes to features or documentation in SKILL.md.
v1.0.1
Version 1.0.1 - Added assets/package.json to manage dependencies. - Added references/README.md for documentation reference. - Removed the root README.md, moving documentation details into the references directory. - SKILL.md updated with enhanced feature descriptions, multi-course support, robust error recovery, and clearer configuration instructions.
v1.0.0
MOOC自动学习工具首次发布,支持主流视频课程平台自动刷课: - 自动识别并逐个学习未完成的课程章节 - 实时输出学习进度,自动处理各类弹窗 - 支持进度保存,可断点续学 - 完成后生成详细学习统计报告 - 灵活配置课程链接、播放等待时长及是否无头模式
元数据
Slug learn-courses-enhanced
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

learn-courses-mooc 是什么?

MOOC自动化学习工具 - 自动完成课程视频学习、检测章节状态、等待视频播放完成. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 199 次。

如何安装 learn-courses-mooc?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install learn-courses-enhanced」即可一键安装,无需额外配置。

learn-courses-mooc 是免费的吗?

是的,learn-courses-mooc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

learn-courses-mooc 支持哪些平台?

learn-courses-mooc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 learn-courses-mooc?

由 tonylemon(@tonylemon)开发并维护,当前版本 v1.0.2。

💬 留言讨论