page-clone
Was er macht
Dieser Skill kopiert eine Musterseite aus einem bestehenden Kurs oder einem importierten Deck und ersetzt dann den Inhalt, während das Design erhalten bleibt. Er richtet sich an Kursersteller, die neue Seiten im bestehenden Stil wollen.
Wann du ihn nutzt
- ✓Wenn eine neue Seite genauso aussehen soll wie eine Seite, die schon im Kurs ist.
- ✓Wenn du ein importiertes Deck hast und eine neue Seite in dessen Design willst.
- ✓Wenn du das Layout einer Seite behalten, aber Wortlaut und Inhalt ändern willst.
Link zum Skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/page-clone/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Erstelle eine neue Folie, die dasselbe Design wie Folie 3 nutzt, aber die Ursachen der Inflation behandelt.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI dupliziert die Musterseite mit intaktem Design, liest die Struktur der Kopie und bearbeitet dann den Text Feld für Feld, statt die Seite neu zu zeichnen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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 |
Häufige Fragen
Warum nicht einfach eine neue Seite erzeugen?
Laut Skill würde eine erzeugte Seite ihr Design von Grund auf neu aufbauen, und das Aussehen der Musterseite ginge verloren.
Behält die Kopie den Erzähltext?
Laut Skill enthält die Kopie den vollständigen Inhalt, aber keine Erzählaktionen.
Warum wird die Kopie umbenannt?
Laut Skill soll der Titel das neue Thema nennen, damit er Lernende und den Erzählschritt nicht in die Irre führt.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 42k
- Platz im Ranking
- #6407
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
build-personal-skill
42kHilft deinem Agenten, frühere Kursunterlagen und Chats in einen persönlichen, wiederverwendbaren Skill zu verwandeln, basierend auf deiner eigenen Historie.
curriculum-planner
42kHilft deinem Agenten, eine Reihe zusammenhängender Lektionen zu planen, etwa einen Wochenkurs, und sie nach deiner Freigabe einzeln zu bauen.
deep-interactive
42kHilft deinem Agenten, einen Kurs zu entwerfen, in dem Lernende auf den meisten Seiten mit Simulationen, Diagrammen, Code und Spielen arbeiten, statt Folien zu lesen.
deep-research
42kHilft deinem Agenten, einen Kurs zu aktuellen Themen zu bauen: Er recherchiert zuerst Live-Quellen und belegt jede Aussage mit einer geprüften Quelle.
Ähnliche Skills
canvas
394kLässt deinen Agenten ein gehostetes visuelles Widget auf einem verbundenen Mac-Panel zeigen und das Panel danach ausblenden oder auf eine andere Seite verschieben.
control-ui
394kHilft deinem Agenten, die OpenClaw-Control-UI zu ordnen und zu prüfen, einschließlich Sitzungen, Dashboards und verbundener Gateways.
diagram-maker
394kHilft deinem Agenten, klare Diagramme als SVG, HTML oder bearbeitbare Excalidraw-Dateien zu erstellen, für Prozesse, Systemarchitekturen und Whiteboard-Skizzen.