page-clone
하는 일
기존 과정이나 가져온 덱에서 모델 페이지를 복사한 뒤, 디자인은 그대로 두고 내용을 바꿉니다. 새 페이지가 기존 스타일과 맞기를 원하는 강의 제작자를 위한 스킬입니다.
사용하는 경우
- ✓새 페이지가 과정에 이미 있는 페이지와 똑같이 보여야 할 때.
- ✓가져온 덱이 있고 그 디자인으로 새 페이지가 필요할 때.
- ✓페이지의 레이아웃은 유지하고 글과 내용만 바꾸고 싶은 경우.
스킬 링크
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/page-clone/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“3번 슬라이드와 같은 디자인이지만 인플레이션의 원인을 다루는 새 슬라이드를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 디자인을 그대로 둔 채 모델 페이지를 복제하고, 복사본의 구조를 읽은 뒤 페이지를 다시 그리지 않고 텍스트 슬롯을 하나씩 편집합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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 |
자주 묻는 질문
그냥 새 페이지를 생성하면 안 되나요?
스킬에 따르면 페이지를 생성하면 디자인이 처음부터 다시 만들어져 모델 페이지의 모습을 잃습니다.
복사본에도 내레이션이 있나요?
스킬에 따르면 복사본에는 전체 내용이 있지만 내레이션 동작은 없습니다.
왜 복사본의 제목을 바꾸나요?
스킬은 제목이 새 주제를 밝혀야 학습자나 내레이션 단계를 오도하지 않는다고 말합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 42k
- 순위
- #6407
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
build-personal-skill
42k과거 수업 제작 기록과 대화를 바탕으로, 자신의 이력에서 찾은 패턴을 담은 개인 재사용 스킬을 만들도록 돕습니다.
curriculum-planner
42k7일짜리 과정이나 장별로 나눈 책처럼, 연결된 여러 수업의 계획을 세우고 승인 후 하나씩 만들도록 돕습니다.
deep-interactive
42k학습자가 슬라이드를 읽는 대신 대부분의 페이지에서 시뮬레이션, 다이어그램, 코드, 게임을 다루는 과정을 설계하도록 돕습니다.
deep-research
42k최신이나 사실 기반 주제에 대해 실시간 출처를 먼저 조사하고, 각 주장을 확인한 출처와 연결하는 과정을 만들도록 돕습니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.