pro-editing
它能做什么
这个技能编辑已经制作完成的课程页面,而不重新规划。适合希望对现有课程进行有针对性改进的课程制作者。
适用场景
- ✓当你想修改或重写现有课程中的某一页的时候。
- ✓当你想修复测验或调整页面布局的时候。
- ✓当你想调整页面顺序或提高整门课程质量的时候。
技能链接
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/pro-editing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请修正第 5 页的测验,并重写第 6 页的旁白,其他内容都不要改动?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会列出课程的页面,在编辑每个目标页面之前先读取它,然后只改动你要求的部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Professional course editing
You are editing a persisted course, not generating one. The pages already exist in storage; your work is surgical — read what is there, change exactly what was asked for, and leave everything else untouched.
Enter the course before touching it
This skill is active because the course already has pages (the session is attached to an existing course, or the classroom was already built). Before any edit:
- Call
list_scenesto take stock of the whole course: every persisted page, its order, its type. This list — not your assumption — is the map you edit by. - Do not plan a replacement stage. The course has a structure; you are not replanning it.
- If the request is broad ("make it better"), turn it into a concrete plan against the page list and say which pages you will touch before touching them.
- If a read says the course is still being generated, it is read-only until generation completes: do not offer to edit it or to generate its remaining pages (the generation is already producing them) — tell the user to wait.
Read before every change
Read the target page with read_stage path:/scenes/<order|id>
immediately before editing it. The inventory it
returns — element ids, question ids, action ids, widget config — is the only
address space you may edit against, and it tells you the page's true type. A
stale id is a failed edit; a stale assumption about what is on the page is a
wrong edit. If an edit lands on the wrong page type, that is a signal to
re-read, not to force the operation.
read_stage has three levels, and a slide edit uses the deep one. The default
tree is a compact map — enough to find an element, never enough to edit it,
because it strips the styles. Before any slide write, read the page with
detail:"source": it returns the page's exact persisted JSON (all style
fields, raw content HTML with inline marks and line breaks, exact geometry,
z-order), and it is the root your patch paths address — a field read at
/content/canvas/elements/2/left is written back through that same path. It always
returns the whole page, so indices cannot drift between the read and the write.
detail:"text" is the third level: every text-bearing element as
{ path, id, type, text } plus a page-wide combinedText, for proving a page
carries no leftover copy.
Choose the smallest operation
A slide edit is one of three operations, and the first one is a single JSON
Pointer write against what detail:"source" just returned.
| User intent | Tool | Operation |
|---|---|---|
| Fix or rewrite text on a slide | patch_stage |
set or str_replace on that element's content path — /content/canvas/elements/N/content, …/text/content, …/data/0/0/text, …/lines/1/content, …/latex |
| Move / resize / rotate an element, fix overlap | patch_stage |
set on /content/canvas/elements/N/left (or top / width / height / rotate), one number per op |
| Recolor or restyle an element | patch_stage |
set on the renderer-owned style path — …/defaultColor, …/fill, …/text/defaultColor, …/color |
| Drop an optional field | patch_stage |
remove on that path |
| Swap an image or media source | patch_stage |
set on /content/canvas/elements/N/src |
| Restack slide elements | patch_stage |
set on /content/canvas/elements — the whole array, reordered, same ids and types |
| Add or remove a slide element | patch_stage |
add_element (complete JSON, no id) / delete_element |
| Fix quiz questions, options, answers, scoring | patch_stage |
set / remove against /content/questions/...; additions rewrite the complete array |
| Change an interactive page | patch_stage |
set / remove / str_replace against /content/widgetConfig/... or /content/html |
| Reword / insert / remove / reorder narration | patch_stage |
scene-root pointers under /actions/...; |
常见问题
它会重建整门课程吗?
不会。技能用于编辑,不会重新规划或替换现有结构。
如果课程仍在生成中怎么办?
技能说明,在生成完成前课程为只读状态,因此你应等待。
如果我的要求比较宽泛怎么办?
技能会把宽泛的要求转为具体计划,并在编辑前指明将要改动的页面。
详情
作者的原始描述
Professional editing of a course that already exists. Use when the user wants to revise, improve, restructure or polish pages the course already has — fix a page, tune a layout, repair a quiz, reword narration, reorder the deck, or raise the quality of the whole course. Not for building a new course from scratch.
repo: THU-MAIC/OpenMAIC
热度
- GitHub 星标
- 42k
- 排名
- #6408
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
build-personal-skill
42k帮你的智能体把你过去的课程制作记录和聊天内容,基于你自己历史中的规律,整理成一份可重复使用的个人技能。
curriculum-planner
42k帮你的智能体规划一系列相互关联的课程,例如七天课程或按章节拆分的书籍,并在你批准后逐一制作。
deep-interactive
42k帮你的智能体设计一门课程,让学习者在大多数页面上操作模拟、图表、代码和游戏,而不是只看幻灯片。
deep-research
42k帮你的智能体制作关于近期或事实性主题的课程,先研究实时来源,并让每项论断都对应一个已核实的来源。