style-clone
它能做什么
这个技能以用户导入的演示文稿的视觉风格制作新课程。适合希望新课程与某种特定设计相符的课程制作者。
适用场景
- ✓当你有一份设计想要用于新课程的演示文稿的时候。
- ✓当你想用别人的幻灯片风格来讲授新的教学内容的时候。
- ✓当你希望成果看起来像是一位作者制作了整门课程的时候。
技能链接
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/style-clone/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用我导入的演示文稿的风格,讲授一节关于机器学习的新课?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会导入演示文稿的版式,为每个新页面复制合适的版式,然后逐个元素改写复制的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cloning a deck's style
The user has a deck by someone whose slides are worth copying. Your job is to produce new pages that look like that deck made them — its palette, its typography, its background treatment, its way of dividing a page — while the teaching content on those pages is entirely new. New content in the old style is the whole point of this mode, not the exception.
The route is copy, then refine. For every page in the new course you pick the
source layout that fits it, duplicate_scene that layout, and rewrite the copy's
content element by element. The design is preserved because you copied it, not
because you described it.
Generation is not an alternative for a copied page. generate_scene re-rolls a page from its
outline entry and draws in the house look, and no free-text slot on it overrides
that: a real run that wrote the source deck's exact hex values and font names
into materialFacts on every page produced pages where those values appear
zero times. Describing a style to a generator does not transfer it. Copying
the element tree does.
The learner-facing name for this mode is 「名师复刻」. Never show the learner the machinery — no talk of templates, clones or source pages. They should just see a course that looks like it came from one hand.
Why this works now
Copy-then-refine failed the first time it was tried, and the reason was the editing tools, not the approach. The only content editor then was a whole-block text setter, and 35 of one run's 44 edits went through it: each one replaced a block wholesale and flattened everything inside it, so a title's size and colour left with its words, contrast pairs came apart, and tables that resisted editing were shipped still carrying the old subject's text.
Those lossy ops are gone from the agent surface. What replaced them is an element-level, full-fidelity seam of three parts:
read_stagewithpath:/scenes/<order|id>anddetail:"source"returns the page's exact persisted JSON —background, each text element'sdefaultColoranddefaultFontName, the inlinecolor/font-size/font-familyinside itscontentHTML, shape fills, and exact geometry. It is your fidelity source and your address space: the paths you read are the paths you write.patch_stagewrites one scene-root JSON Pointer path withop:"set"orop:"remove"./content/canvas/elements/0/contentreplaces one text element's rich-text HTML and touches nothing else on the page; a<span>keeps its colour and size while its words change. Address the leaf, and everything you did not name keeps the value you copied.add_element(a complete, id-less element JSON, id assigned by the server) anddelete_elementare the only ways the element set changes — a patch may not add, remove, rename or retype an element, which is exactly the guard that keeps a borrowed design intact.
So one atomic patch is the entry point for every content rewrite, whatever the
element is — a paragraph at /content/canvas/elements/3/content, a shape's label at
/content/canvas/elements/3/text/content, a table cell at
/content/canvas/elements/5/data/0/0/text, a code line at
/content/canvas/elements/9/lines/1/content, a formula's latex, a chart's label. There
is no per-type editor to hunt for and no growing list of per-type operations: read
the source JSON, find the path that holds the words, write that path.
slide-dsl is the field manual — which field holds the words in each of the
ten element types, the pointer rules, what values are legal, which field the
renderer reads when two disagree, and what the renderer really does with the HTML
you write.
Two guarantees are what make this trustworthy on someone else's design: a rejected patch changes nothing (a bad path, an unknown field or unsafe HTML fails loud with the page exactly as it was), and nothing is normalised — no colour, font or theme value is rewritten toward a house palette. The deck's look survives because the tool has no opinion about it.
stage-design governs the build of the stage this produces, and
curriculum-planner governs a series of them; both still apply, and this skill
shapes only how the pages get their look. page-clone carries the per-page
mechanics of the loop in Step 4 — read it before the first page. slide-dsl is
the field-level truth about the JSON you are patching, slide-craft is the
design law any page still has to sa
常见问题
它能只把风格描述给 AI 吗?
不能。技能说明,向生成器描述风格无法使其复现,因此它会复制页面结构。
学习者会看到它是如何制作的吗?
不会。技能说明,学习者应看到一门看起来像是一人制作的课程,不提及模板或复制。
开始需要什么?
一份导入的演示文稿,或可以先导入的 PowerPoint 文件。
详情
作者的原始描述
Building a new course inside someone else's deck — import the deck as a library of layouts, then produce each page of the new course by copying the layout that fits it and rewriting that copy's content element by element, so the result reads as though the original author made it. Use when the session has an imported deck (or a `.pptx` to import) and the ask is to teach new material in its design — its palette, its typography, its way of dividing a page. Not for a straight import that must stay slide-for-slide identical to the file (that is `pptx-import`), and not for extracting how a teacher s
repo: THU-MAIC/OpenMAIC
热度
- GitHub 星标
- 42k
- 排名
- #6413
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
build-personal-skill
42k帮你的智能体把你过去的课程制作记录和聊天内容,基于你自己历史中的规律,整理成一份可重复使用的个人技能。
curriculum-planner
42k帮你的智能体规划一系列相互关联的课程,例如七天课程或按章节拆分的书籍,并在你批准后逐一制作。
deep-interactive
42k帮你的智能体设计一门课程,让学习者在大多数页面上操作模拟、图表、代码和游戏,而不是只看幻灯片。
deep-research
42k帮你的智能体制作关于近期或事实性主题的课程,先研究实时来源,并让每项论断都对应一个已核实的来源。