slide-dsl
Fungsinya
Skill ini adalah referensi tentang cara halaman slide disimpan di OpenMAIC, field demi field. Skill ini ditujukan untuk orang atau AI yang menyunting slide di tingkat data, tempat kesalahan kecil bisa merusak halaman.
Kapan dipakai
- โSaat Anda perlu mengubah konten atau tata letak slide secara langsung di data.
- โSaat suntingan pada slide tidak tampil seperti yang Anda harapkan.
- โSaat Anda perlu tahu field mana yang dipakai tampilan untuk nilai tertentu.
Link skill
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-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
โUbah warna latar belakang slide ini dan pastikan perubahannya benar-benar tampil di layar.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI membaca struktur tersimpan halaman, menulis field yang tepat dipakai tampilan, lalu membaca halaman kembali untuk memastikan perubahannya muncul.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
The slide DSL
A slide page is a JSON document. Editing it well means writing the exact field that holds the thing you want to change, in the exact shape the renderer reads, and leaving every neighbouring field byte-identical.
Read this part first, because it changes how you should use everything below.
The write path stores what you send. There is no markup allow-list, no
sanitizer, no colour or font normalisation, no geometry clamping, no house style
applied on the way in. patch_stage checks one thing โ that the resulting
document still matches the DSL structure schema (field names, types, required
fields, closed objects) โ and then persists your value byte for byte.
So there is nothing between you and the screen. A structurally legal page can still be an unreadable page: markup the renderer never styles, a colour on a field nothing paints, a formula snapshot that disagrees with its source. The guard rail catches shape, not meaning. This manual is the meaning. Where it tells you how the renderer behaves, that is the whole of your knowledge โ write against it, then read the page back and check what you wrote is what is there.
Contents
- Reading before writing โ the three read depths
- The document โ
contentโcanvas - The canvas โ viewport, theme, background, animations, paint order
- How an edit reaches the JSON โ three ops, pointer rules
- What the structure schema refuses โ the only hard boundary
- Two renderers paint your page โ playback vs. preview
- Fields every element carries
- The ten element types โ one section each
- The rendering truth of
contentHTML โ the most important section - Quick reference โ one row per element type
- Where this sits
- Hard rules
Reading before writing
read_stage has three depths โ detail:"tree", detail:"source" and
detail:"text" โ and they are not interchangeable.
detail |
What comes back | Use it for |
|---|---|---|
inventory (default) |
One compact line per element โ id, type, plain-text text, left, top, width, height, src |
Finding an element. Never as a patch source. |
source |
The exact persisted page JSON โ the root every patch path is written against | Every patch. Read it again after a write. |
text |
Every text-bearing element as { path, id, type, text } plus one page-wide combinedText |
Proving old copy left no residue. |
inventorystrips the markup. Itstextis the element's HTML with tags replaced by spaces and whitespace collapsed. A patch built from it invents style values that were never there and deletes the ones that were.sourcealways returns the whole page. There is no per-element projection, so array indices cannot drift between what you read and what you write. It returns the fullcontentobject โtype,schemaVersionand the completecanvas, background, theme and animations included.detail:"text"gives you pointers. Eachpathis that element's own/content/canvas/elements/N, so a residue check hands you the pointer to fix. Note that itstextfor alatexelement is the LaTeX source, forcodethe lines joined by newlines, and fortablethe cells joined by|.
The document
A slide scene's content is:
{ type: 'slide', schemaVersion?: number, canvas: Slide }
type and schemaVersion sit outside /content/canvas/ and are therefore not
reachable by a slide-canvas patch path โ such a pointer begins /content/canvas/. Everything you can
write lives under canvas.
The canvas
| Field | Required | Meaning |
|---|
Pertanyaan umum
Apakah sistem membersihkan HTML yang saya tulis?
Tidak. Skill menyebutkan sistem menyimpan apa yang Anda kirim, sehingga panduan ini menjadi acuan untuk apa yang berhasil.
Apa yang diperiksa saat menyimpan?
Skill menyebutkan penulisan hanya diperiksa strukturnya, bukan maknanya atau tampilannya.
Mengapa halaman perlu diperiksa setelah diedit?
Skill menyebutkan halaman bisa valid secara bentuk tetapi tetap terlihat salah di layar.
Detail
Deskripsi asli dari pembuat
The complete slide DSL manual โ the canvas and its background, the ten element types field by field with units, defaults and legal values, where each type keeps its words, which field the renderer actually paints when two disagree, exactly what happens to the HTML you put in `content`, and the structure schema that is now the ONLY thing a write is checked against. Nothing filters your markup and nothing normalises your values, so this manual is the whole of what makes a page render correctly. Load it before patching a field you have not patched before, when a patch comes back rejected, when a
repo: THU-MAIC/OpenMAIC
Popularitas
- Bintang GitHub
- 42k
- Peringkat
- #6410
- 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
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.