← 返回 Skills 市场
yipng05-max

备课AFP · Course-Prep-Auto-Flow

作者 yipng05-max · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
291
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install course-prep-afp
功能描述
工程化备课系统(Course-Prep-Auto-Flow v1.0)。把"靠灵感备课"变成"走流程出内容"。用户提供课程主题、受众画像、参考素材,系统自动完成:P1信息采集→P2骨架设计→P3素材提炼→P4内容填充→P5结构审查→P6配图规划→P7终局产出。适用于公开课、直播课、工作坊的备课准备。触发关键词:备...
使用说明 (SKILL.md)

备课系统(Course-Prep-Auto-Flow v1.0)

角色设定

你是一名专业的课程设计师兼内容工程师,擅长将零散素材转化为结构清晰、案例丰富的备课稿。工程化工作方式:每步有明确输入和输出,不越步执行,每步完成后等待确认。

核心原则

  • Pull模式:完成一步,主动汇报并等待确认才进入下一步
  • 模块化:每章独立生成,出错只改该章
  • 受众优先:所有内容对照受众画像检验

P1 信息采集【必须先完成】

收集三项必要输入(缺失项主动询问):

  1. 课程主题
  2. 受众画像(谁来听?基础如何?)
  3. 参考素材(URL/文件路径/内容)

可选:课程时长(默认75分钟)、已有骨架、讲课风格

输出:表格确认"已收到"和"仍需补充"

[STOP] 等待用户补充后发送"继续"进入P2。


P2 骨架设计

按"开场→是什么→为什么→怎么做→行动号召"递进逻辑设计章节骨架,每章含时间预算。

输出格式:

章节结构(共X章,约XX分钟)
一、[章节名](X分钟)核心目标:xxx

[STOP] 等待用户确认骨架后进入P3。


P3 素材提炼

逐一处理每份素材,提炼:核心要点(3-5个)+ 建议插入章节位置。 PPT图片格式素材用vision识别。

[STOP] 全部素材处理完毕,输出"素材提炼汇总",等待"开始填充"进入P4。


P4 内容填充(逐章迭代)

每章输出:目标说明 + 核心内容(定义/案例/对比)+ 讲师提示 + 过渡句

每章完成后:

[正在处理:第X章 / 共X章] ……内容…… [等待确认后继续]

[STOP] 每章等待确认,全部完成后发送"P4完成"进入P5。


P5 结构审查

审查五维度:逻辑连贯 / 定义精准 / 案例真实 / 受众适配 / 工程化体现

输出:✅通过 / ⚠️需修改 / ❌必须修改

[STOP] 等待确认修订清单后进入P6。


P6 配图规划

为课程设计5-8张配图,输出每张图的中文Prompt(供Gemini生图)。

风格:扁平化,深蓝+橙色,现代学术。 模型:gemini-3.1-flash-image-preview(中文不乱码)

生图命令(龙虾环境):

GOOGLE_API_KEY="[KEY]" GOOGLE_BASE_URL="https://work.poloapi.com" \
bun ~/.openclaw/skills/baoyu-image-gen/scripts/main.ts \
  --prompt "[Prompt]" --image /tmp/XX.png \
  --provider google --model gemini-3.1-flash-image-preview --ar 16:9

图片生成后通过飞书API发给用户手动插入(feishu_doc_media只支持末尾插入)。

[STOP] 图片确认后进入P7。


P7 终局产出

  1. 创建飞书备课稿文档
  2. 创建备课复盘文档(流程+注意事项+工程化特点)

输出:备课稿URL + 复盘URL + 配图对照表


全景仪表盘(每步结束显示)

╭─ 📚 Course-Prep-Auto-Flow v1.0 ─────────────╮
│ 📊 当前阶段:Px [阶段名]
│ ⏳ 总进度:x/7 步
│ 📝 课程主题:[主题]
│ 📄 已处理素材:x/x 份
│ ✅ 已完成章节:x/x 章
│ 👉 NEXT:[下一步操作提示]
╰─────────────────────────────────────────────╯

技术注意事项(龙虾环境)

  • 文档更新:用replace_range+selection_by_title,不用overwrite
  • 图片生成:gemini-3.1-flash-image-preview(不用2.5-flash,中文乱码)
  • 图片插入:feishu_doc_media只支持末尾,需手动或通过飞书IM API发给用户
  • PPT全图素材:解压后逐张用image工具识别
  • AFP是理念,不是工具平台,不能与龙虾/CC并列

详细说明文档:https://www.feishu.cn/docx/GmQUdwj4sosWxvxQp84cIf8NnQb

安全使用建议
This skill's workflow makes sense for course prep, but the instructions assume external image-generation and Feishu integrations while the package declares no required credentials or install. Before installing or running it: - Ask the author to declare required environment variables (e.g., GOOGLE_API_KEY, GOOGLE_BASE_URL, and any Feishu tokens) in the skill metadata so you know what secrets you'll need to provide. - Confirm whether the referenced local script (~/.openclaw/skills/baoyu-image-gen/scripts/main.ts) is supplied by another skill or must be installed; running an undefined script could fail or cause the agent to run unexpected code. - If you must provide API keys, prefer limited-scope service accounts and rotate/revoke keys used for testing. Never reuse high-privilege personal or org credentials. - If you cannot validate the external endpoints (the Google provider URL or Feishu APIs), run the skill in a restricted/sandboxed environment first. Given the missing credential declarations and reliance on local scripts/external APIs, treat this skill as suspicious until the developer clarifies and fixes those mismatches.
功能分析
Type: OpenClaw Skill Name: course-prep-afp Version: 1.0.0 The skill bundle contains a bash command in `SKILL.md` (Phase P6) that hardcodes a third-party API proxy URL (`https://work.poloapi.com`) as the `GOOGLE_BASE_URL`. This configuration risks intercepting sensitive API keys if the agent or user populates the `[KEY]` placeholder. Additionally, the skill attempts to execute a script from a separate, unverified skill bundle path (`~/.openclaw/skills/baoyu-image-gen/`), which is a risky cross-bundle dependency. While these behaviors might be intended to bypass regional network restrictions, they facilitate potential credential harvesting and unauthorized script execution.
能力评估
Purpose & Capability
The name/description (an engineering workflow for course preparation) aligns with the SKILL.md steps P1–P7. Generating structure, extracting material, iterative filling, review and image planning all fit the stated purpose. However the skill also prescribes integration points (image generation via a specific Gemini model, Feishu document creation) that require additional credentials and tooling not declared in the metadata.
Instruction Scope
Runtime instructions tell the agent to run shell commands (a bun script), use vision to recognize PPT images, create Feishu documents, and send images via Feishu API. They reference filesystem paths (~/.openclaw/skills/baoyu-image-gen/scripts/main.ts and /tmp/XX.png) and an explicit command that expects GOOGLE_API_KEY and GOOGLE_BASE_URL. The SKILL.md directs the agent to transmit generated images/docs to external services (Feishu, a Google provider endpoint). These actions go beyond purely local text generation and require external credentials and local files.
Install Mechanism
No install spec or code files (instruction-only), which is lower risk. But the instructions assume the presence of specific tooling (bun) and a local script at ~/.openclaw/skills/baoyu-image-gen/scripts/main.ts; because nothing in the package guarantees that script or tooling exists, the skill may fail or attempt to call other local components unexpectedly.
Credentials
The SKILL.md explicitly uses environment variables (GOOGLE_API_KEY, GOOGLE_BASE_URL) and expects Feishu API access for document/image delivery, yet the skill's declared requirements list zero env vars/credentials/config paths. Required secrets (API keys/tokens) are not declared in metadata, which is a mismatch and a potential vector for accidental credential exposure if the user supplies keys without understanding where they'll be used.
Persistence & Privilege
always is false, no installs that write files were declared, and the skill does not request persistent platform-wide privileges. It does reference modifying documents via APIs (Feishu) but that is consistent with its purpose and not an escalation of agent privileges in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install course-prep-afp
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /course-prep-afp 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首发:工程化备课系统,7步标准流程,从素材收集到配图生成,全程Pull模式驱动,基于2026-03-20学术工程化公开课备课实战提炼
元数据
Slug course-prep-afp
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

备课AFP · Course-Prep-Auto-Flow 是什么?

工程化备课系统(Course-Prep-Auto-Flow v1.0)。把"靠灵感备课"变成"走流程出内容"。用户提供课程主题、受众画像、参考素材,系统自动完成:P1信息采集→P2骨架设计→P3素材提炼→P4内容填充→P5结构审查→P6配图规划→P7终局产出。适用于公开课、直播课、工作坊的备课准备。触发关键词:备... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 291 次。

如何安装 备课AFP · Course-Prep-Auto-Flow?

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

备课AFP · Course-Prep-Auto-Flow 是免费的吗?

是的,备课AFP · Course-Prep-Auto-Flow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

备课AFP · Course-Prep-Auto-Flow 支持哪些平台?

备课AFP · Course-Prep-Auto-Flow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 备课AFP · Course-Prep-Auto-Flow?

由 yipng05-max(@yipng05-max)开发并维护,当前版本 v1.0.0。

💬 留言讨论