stage-dsl
Fungsinya
Skill ini adalah peta struktur di balik kelas OpenMAIC, yang menunjukkan bagian mana menyimpan nilai apa. Skill ini ditujukan untuk orang atau AI yang membaca atau menyunting kelas secara langsung.
Kapan dipakai
- βSaat Anda perlu mencari tempat sebuah nilai disimpan di dalam kelas.
- βSaat suntingan pada kelas ditolak dan Anda perlu memahami alasannya.
- βSaat Anda perlu mencari teks di seluruh halaman dalam sebuah kelas.
Link skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/stage-dsl/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βCari setiap halaman di kelas ini yang menyebut kata anggaran, dan tunjukkan di mana masing-masing disimpan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI memakai alat membaca, menyunting, dan mencari untuk kelas, serta mengikuti peta ini untuk memilih bagian struktur yang tepat sebelum menulis.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Jenis halaman apa saja yang ada?
Skill mencantumkan jenis halaman slide, kuis, interaktif, dan pbl.
Bagaimana cara menambah atau menghapus halaman?
Skill menyebutkan untuk memakai alat daftar halaman untuk menyisipkan, menghapus, mengurutkan ulang, dan mengganti judul halaman.
Apakah ini panduan field yang lengkap?
Tidak. Skill ini adalah peta yang mengarah ke bab referensi yang lebih rinci.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 42k
- Peringkat
- #6412
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
build-personal-skill
42kMembantu agent Anda mengubah catatan pembuatan kursus dan percakapan lama menjadi skill pribadi yang bisa dipakai ulang, berdasarkan pola dari riwayat Anda sendiri.
curriculum-planner
42kMembantu agent Anda merencanakan serangkaian pelajaran yang saling terhubung, seperti kursus tujuh hari atau buku yang dibagi per bab, lalu membangunnya satu per satu setelah Anda setujui.
deep-interactive
42kMembantu agent Anda merancang kursus yang membuat peserta bermain dengan simulasi, diagram, kode, dan permainan di sebagian besar halaman, alih-alih hanya membaca slide.
deep-research
42kMembantu agent Anda membangun kursus tentang topik terkini atau faktual dengan meneliti sumber langsung terlebih dahulu dan mengaitkan setiap klaim dengan sumber yang sudah diperiksa.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.