page-clone
O que ela faz
Esta skill copia uma página modelo de um curso existente ou de um material importado e substitui o conteúdo mantendo o design. Ela é para criadores de cursos que querem que as novas páginas sigam o estilo já existente.
Quando usar
- ✓Quando uma nova página deve ficar exatamente igual a uma página que já está no curso.
- ✓Quando você tem um material importado e quer uma nova página no mesmo design.
- ✓Quando você quer manter o layout de uma página, mas mudar o texto e o conteúdo.
Link da skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/page-clone/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Crie um novo slide com o mesmo design do slide 3, mas que trate das causas da inflação.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA duplica a página modelo com o design intacto, lê a estrutura da cópia e depois edita o texto campo por campo, em vez de redesenhar a página.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Cloning one page's design
The design already exists on another page. Your job is to put new content into that design without redrawing it: copy the page, then swap what it says.
Copy-then-edit is the only clone path in this runtime. generate_scene always
re-rolls a page from its outline entry — the model invents a fresh element tree
every time — so calling it on a copied page destroys exactly the design you came
for. Nothing here validates the shape of your result either: the design is
preserved because you copied it, and the judgement about which elements are
content and which are the skeleton is yours.
The sequence
duplicate_scene({ templateSceneId, targetOrder, title })— an exact copy of the model page at the position you want (templateOrderworks too, but an id is safer). The copy carries the full content, no narration actions, and a new outline entry. Pass atitlethat names the NEW page; the entry inherits the model page's brief, and a copy still called 「第 3 章回顾」 misleads both the learner and the narration step.- Read the copy with
read_stage,path:/scenes/<order|id>,detail:"source"— this is your address space and your fidelity source. It returns the whole page's persisted JSON, including raw content HTML, inline spans, fonts, colours, fills, shadows, geometry and z-order, and it is the root your patch paths are written against: a field you read at/content/canvas/elements/2/contentis written back through that same path. Copy unchanged markup and style fields from this result; do not reconstruct them from stripped text. - Decide, element by element, what each one is. Content slots are the ones whose words belong to the old subject. Skeleton is everything else — rules, bands, page numbers, logos, decorative shapes, background art — and it stays untouched even when it holds text.
- Call
patch_stageonce per content slot, withop:"set"on the exact path that holds that slot's words —/content/canvas/elements/3/contentfor a paragraph,/content/canvas/elements/5/data/0/0/textfor a table cell. One leaf per call: everything you do not name keeps the value you copied.slide-dslis the manual for which field holds the words in each element type. Do not patch geometry or style paths while cloning — they ARE the design you copied. - Read the copy with
read_stage detail:"text"after the edits. It returns every text-bearing element as{ path, id, type, text }plus a page-widecombinedText, so you read the whole page's words in one call and get the pointer to fix with them. Search it for source-topic residue; the read reports, and you decide what is stale, thenset,remove, ordelete_elementit. generate_actionson the copy to give it narration (audio is on by default). A duplicated page arrives silent.
Work one page at a time and re-read before you edit. Every patch_stage result
already carries the page's fresh inventory, so a run of edits on the same page
needs one read_stage call at the start, not one
per call.
Where a change goes
For a cloned slide, patch_stage uses set, remove, str_replace,
add_element, and delete_element; for cloning the usual choice is set on
the smallest content leaf. The only question is which path carries the change.
| Need | Call | What really happens |
|---|---|---|
| New words in a text block | set /content/canvas/elements/N/content |
Stores your HTML byte for byte — nothing filters it; preserve the source element's <span> marks and inline styles while changing the words |
| New words in a shape's label | set /content/canvas/elements/N/text/content |
Only the label's HTML moves; font, colour, vertical alignment, line height, shape fill and path all stay |
| One table cell | set /content/canvas/elements/N/data/0/0/text |
One cell's plain text; every other cell, id, colspan, rowspan and per-cell style is untouched |
Perguntas frequentes
Por que não gerar simplesmente uma nova página?
A skill diz que gerar uma página recria o design do zero, o que faria perder o visual da página modelo.
A cópia mantém a narração?
Segundo a skill, a cópia leva todo o conteúdo, mas nenhuma das ações de narração.
Por que renomear a cópia?
A skill diz que o título deve nomear o novo tema, para não confundir o aluno nem a etapa de narração.
Detalhes
Descrição original do autor
Building one page that looks like a page the course already has — copy the model page with `duplicate_scene`, then rewrite the copy's words with one `patch_stage` op per content slot. Use when a new page has to inherit an existing page's design, whether the model page came from an imported deck or the course wrote it earlier. Not for revising a page that is already the page you want (that is `pro-editing`), and not for the course-level work of cataloguing layouts and assigning one per outline entry (that is `style-clone`).
repo: THU-MAIC/OpenMAIC
Popularidade
- Estrelas no GitHub
- 42 mil
- Posição no ranking
- #6407
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
build-personal-skill
42 milAjuda seu agente a transformar seus registros e conversas antigos de criação de cursos em uma skill pessoal e reutilizável, baseada nos seus próprios padrões.
curriculum-planner
42 milAjuda seu agente a planejar uma série de aulas conectadas, como um curso de sete dias ou um livro dividido por capítulo, e a criá-las uma por vez, com sua aprovação.
deep-interactive
42 milAjuda seu agente a criar um curso em que os alunos interagem com simulações, diagramas, código e jogos na maioria das páginas, em vez de apenas ler slides.
deep-research
42 milAjuda seu agente a criar um curso sobre temas recentes ou factuais, pesquisando fontes atuais primeiro e ligando cada afirmação a uma fonte que ele verificou.
Skills parecidas
canvas
394 milPermite que seu agente mostre um widget visual hospedado em um painel conectado a um Mac e depois oculte o painel ou o mova para outra página.
control-ui
394 milAjuda seu agente a organizar e diagnosticar a Control UI do OpenClaw, incluindo sessões, painéis e Gateways conectados.
diagram-maker
394 milAjuda seu agente a criar diagramas claros em SVG, HTML ou Excalidraw editável, para processos, arquitetura de sistemas e esboços de quadro branco.