page-clone
यह क्या करती है
यह स्किल मौजूदा कोर्स या इंपोर्ट किए गए डेक से एक मॉडल पेज कॉपी करती है, फिर डिज़ाइन बनाए रखते हुए सामग्री बदलती है। यह उन कोर्स बनाने वालों के लिए है जो नए पेज मौजूदा शैली से मिलाना चाहते हैं।
कब इस्तेमाल करें
- ✓जब नया पेज कोर्स में पहले से मौजूद किसी पेज जैसा दिखना चाहिए।
- ✓जब आपके पास इंपोर्ट किया गया डेक है और आपको उसके डिज़ाइन में नया पेज चाहिए।
- ✓जब आप पेज का लेआउट रखना चाहें लेकिन उसके शब्द और सामग्री बदलना चाहें।
Skill का लिंक
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/page-clone/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“स्लाइड 3 जैसा डिज़ाइन वाली एक नई स्लाइड बनाइए, जो मुद्रास्फीति के कारण बताए।”
हर हफ़्ते 5 नई skills, 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
build-personal-skill
42kआपके एजेंट को आपके पिछले कोर्स बनाने के रिकॉर्ड और चैट से एक निजी, दोबारा इस्तेमाल होने वाली स्किल बनाने में मदद करती है, जो आपके अपने इतिहास के पैटर्न पर आधारित है।
curriculum-planner
42kआपके एजेंट को जुड़े हुए पाठों की श्रृंखला की योजना बनाने में मदद करती है, जैसे सात दिन का कोर्स या अध्याय के हिसाब से बँटी किताब, और आपकी मंज़ूरी के बाद उन्हें एक-एक करके बनाती है।
deep-interactive
42kआपके एजेंट को ऐसा कोर्स डिज़ाइन करने में मदद करती है जिसमें ज़्यादातर पेजों पर सीखने वाले सिमुलेशन, डायग्राम, कोड और गेम के साथ काम करें, स्लाइड पढ़ने के बजाय।
deep-research
42kआपके एजेंट को हाल के या तथ्य-आधारित विषयों पर कोर्स बनाने में मदद करती है, जिसमें पहले लाइव स्रोतों पर शोध होता है और हर दावा उस स्रोत से जुड़ता है जिसे जाँचा गया हो।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।