# Page Clone

Building one page that looks like a page the course already has, copy the model page...

- Repository: https://github.com/THU-MAIC/OpenMAIC (42385 stars)
- Category: Design
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add THU-MAIC/OpenMAIC --skill page-clone -g -a claude-code -y`
Codex: `npx skills add THU-MAIC/OpenMAIC --skill page-clone -g -a codex -y`
Cursor: `npx skills add THU-MAIC/OpenMAIC --skill page-clone -g -a cursor -y`
Gemini CLI: `npx skills add THU-MAIC/OpenMAIC --skill page-clone -g -a gemini-cli -y`

## Description

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`).

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

The rest: https://github.com/THU-MAIC/OpenMAIC/blob/HEAD/skills/agent-runtime/page-clone/SKILL.md
