stage-dsl
यह क्या करती है
यह स्किल OpenMAIC कक्षा के ढाँचे का नक्शा है, जो दिखाता है कि कौन-सा हिस्सा कौन-सा मान रखता है। यह उन लोगों या AI के लिए है जो कक्षाएँ सीधे पढ़ते या संपादित करते हैं।
कब इस्तेमाल करें
- ✓जब आपको कक्षा के भीतर कोई मान कहाँ सेव है यह पता करना हो।
- ✓जब कक्षा में किया गया संपादन अस्वीकार हो जाए और कारण समझना हो।
- ✓जब आपको कक्षा के सभी पेजों में कोई शब्द खोजना हो।
Skill का लिंक
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/stage-dsl/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस कक्षा के हर पेज को खोजिए जिसमें बजट शब्द है, और दिखाइए कि हर एक कहाँ सेव है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI कक्षा के पढ़ने, संपादन और खोजने वाले टूल इस्तेमाल करता है, और लिखने से पहले इस नक्शे का पालन करके ढाँचे का सही हिस्सा चुनता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
The stage document map
This is a map, not the field manual.
Use it to decide which subtree owns a value, which path to read, and which reference chapter to load. Then read the exact source before writing.
The document model
The durable structure is:
stage
├── outline
└── scenes[] ordered by scene.order, shown as pages 1..N
├── id stable scene identity
├── order 1-based page position
├── type slide | quiz | interactive | pbl
├── content shape selected by scene.type
│ ├── slide.canvas
│ ├── quiz.questions[]
│ ├── interactive.html / widgetConfig
│ └── pbl.projectV2
└── actions[] ordered playback verbs
stage is the stage's metadata. outline is the generation plan. A persisted page
is a scene. Its type and content.type must agree.
The three generic tools do not replace page-list operations. Insert, delete,
reorder, and retitle pages with edit_deck.
Tool vocabulary
| Need | Tool | How |
|---|---|---|
| Read a scene | read_stage |
`path:/scenes/<order |
| Edit scene content or actions | patch_stage |
`target:/scenes/<order |
| Search visible text or source | grep_stage |
literal search over the whole stage |
| List stages in folders | list_folder_stages |
returns the explicit stageId required by every stage tool |
| Insert, delete, reorder, or retitle pages | edit_deck |
page-list operations stay outside the document patcher |
| Plan and build a new stage | conversation + create_stage + generate_scene |
settle the page plan in conversation, then call generate_scene once per page with an explicit brief |
| Set the classroom cast | set_roster |
write the settled roster before page generation |
Addressing with read_stage
| Path | Resolves to |
|---|---|
"" or omitted |
the whole stage |
/outline |
the persisted outline snapshot |
/scenes/3 |
the scene whose order is 3 |
/scenes/scene_abc |
the scene with that stable id |
/scenes/scene-abc |
the historical hyphenated scene-id form |
/scenes/3/actions |
only scene 3's action array |
Orders are 1-based. Array indices inside source JSON are 0-based.
detail:"tree" is the compact structural inventory. It reports scene id,
order, type, title, element/question/project counts, and action counts. It is
for finding a target, never for reconstructing a write value.
detail:"source" is the exact JSON at the selected path. A scene source is the
persisted scene object, so writable pointers begin /content/... or
/actions/.... Inline media bytes larger than 2 KiB are replaced in this read
projection by a read-only placeholder. The stored document is unchanged.
detail:"text" is the visible-text projection. Use it to find learner-facing
copy or prove that old wording no longer remains. It deliberately omits known
internal PBL prompts and runtime state.
Source and text responses are character-paged after 12,000 characters. Pass
the returned nextOffset back as offset until it disappears.
Writing with patch_stage
target is one scene path: /scenes/<order|sceneId>.
Every call carries a human intent and one or more ops. The ops are atomic:
the server applies them to a clone, validates the resulting scene, and writes
once. If op 2 fails, op 1 is not persisted.
| Op | Fields | Meaning |
|---|---|---|
set |
path, value |
replace an existing leaf or add an optional object key |
remove |
path |
delete an existing object key or splice an array index |
str_replace |
path, oldText, newText, optional replaceAll |
replace one exact occurrence of oldText inside the string field at path; replaceAll:true replaces every occurrence |
add_element |
element, optional afterId or index |
add one complete id-less slide element |
delete_element |
elementId |
delete one slide element by stable id |
Set/remove/str_replace paths are JSON Pointers rooted at the scene source:
/content/canvas/elements/0/content
/content/questions/1/options/0/label
/content/widgetConfig/description
/content/projectV2/milestones/0/title
/actions/2/text
Escape / in an object key as ~1 and ~ as ~0. Array indices are
canonical zero-based integers: 0, 1, 2, never 03, -1, or +1.
Every intermediate segment must exi
अक्सर पूछे जाने वाले सवाल
पेज के कौन-से प्रकार हैं?
स्किल slide, quiz, interactive और pbl पेज प्रकार सूचीबद्ध करती है।
पेज कैसे जोड़ें या हटाएँ?
स्किल कहती है कि पेज डालने, हटाने, क्रम बदलने और शीर्षक बदलने के लिए पेज-सूची टूल इस्तेमाल करें।
क्या यह पूरी फ़ील्ड गाइड है?
नहीं। स्किल एक नक्शा है जो अधिक विस्तृत संदर्भ अध्यायों की ओर इशारा करता है।
जानकारी
लेखक का मूल विवरण
The map for reading and editing an OpenMAIC stage document with read_stage, patch_stage, and grep_stage. Load it before patching a structure you have not patched before, when patch_stage rejects an operation, or whenever the path from a stage, outline, scene, content object, or action to the field you need is uncertain. It routes to field-level references for quizzes, interactive widgets, actions, and PBL projects; the installed slide-dsl skill remains the complete slide canvas manual.
repo: THU-MAIC/OpenMAIC
लोकप्रियता
- GitHub स्टार
- 42k
- रैंकिंग में स्थान
- #6412
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
build-personal-skill
42kआपके एजेंट को आपके पिछले कोर्स बनाने के रिकॉर्ड और चैट से एक निजी, दोबारा इस्तेमाल होने वाली स्किल बनाने में मदद करती है, जो आपके अपने इतिहास के पैटर्न पर आधारित है।
curriculum-planner
42kआपके एजेंट को जुड़े हुए पाठों की श्रृंखला की योजना बनाने में मदद करती है, जैसे सात दिन का कोर्स या अध्याय के हिसाब से बँटी किताब, और आपकी मंज़ूरी के बाद उन्हें एक-एक करके बनाती है।
deep-interactive
42kआपके एजेंट को ऐसा कोर्स डिज़ाइन करने में मदद करती है जिसमें ज़्यादातर पेजों पर सीखने वाले सिमुलेशन, डायग्राम, कोड और गेम के साथ काम करें, स्लाइड पढ़ने के बजाय।
deep-research
42kआपके एजेंट को हाल के या तथ्य-आधारित विषयों पर कोर्स बनाने में मदद करती है, जिसमें पहले लाइव स्रोतों पर शोध होता है और हर दावा उस स्रोत से जुड़ता है जिसे जाँचा गया हो।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।