slide-dsl
यह क्या करती है
यह स्किल OpenMAIC में स्लाइड पेज कैसे सेव होते हैं, इसका फ़ील्ड-दर-फ़ील्ड संदर्भ है। यह उन लोगों या AI के लिए है जो डेटा स्तर पर स्लाइड संपादित करते हैं, जहाँ एक छोटी गलती पेज तोड़ सकती है।
कब इस्तेमाल करें
- ✓जब आपको स्लाइड का मूल सामग्री या लेआउट डेटा सीधे बदलना हो।
- ✓जब स्लाइड में किया गया संपादन आपकी उम्मीद के अनुसार न दिखे।
- ✓जब आपको जानना हो कि डिस्प्ले किसी मान के लिए कौन-सी फ़ील्ड इस्तेमाल करता है।
Skill का लिंक
https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-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 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 |
|---|
अक्सर पूछे जाने वाले सवाल
क्या सिस्टम मेरे लिखे HTML को साफ़ करता है?
नहीं। स्किल कहती है कि सिस्टम वही सेव करता है जो आप भेजते हैं, इसलिए यह मैनुअल ही बताता है कि क्या काम करता है।
सेव करते समय क्या जाँचा जाता है?
स्किल कहती है कि लिखने में केवल पेज की संरचना जाँची जाती है, अर्थ या दिखावट नहीं।
संपादन के बाद पेज क्यों जाँचें?
स्किल कहती है कि पेज का ढाँचा सही हो सकता है, फिर भी स्क्रीन पर वह गलत दिख सकता है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 42k
- रैंकिंग में स्थान
- #6410
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
build-personal-skill
42kआपके एजेंट को आपके पिछले कोर्स बनाने के रिकॉर्ड और चैट से एक निजी, दोबारा इस्तेमाल होने वाली स्किल बनाने में मदद करती है, जो आपके अपने इतिहास के पैटर्न पर आधारित है।
curriculum-planner
42kआपके एजेंट को जुड़े हुए पाठों की श्रृंखला की योजना बनाने में मदद करती है, जैसे सात दिन का कोर्स या अध्याय के हिसाब से बँटी किताब, और आपकी मंज़ूरी के बाद उन्हें एक-एक करके बनाती है।
deep-interactive
42kआपके एजेंट को ऐसा कोर्स डिज़ाइन करने में मदद करती है जिसमें ज़्यादातर पेजों पर सीखने वाले सिमुलेशन, डायग्राम, कोड और गेम के साथ काम करें, स्लाइड पढ़ने के बजाय।
deep-research
42kआपके एजेंट को हाल के या तथ्य-आधारित विषयों पर कोर्स बनाने में मदद करती है, जिसमें पहले लाइव स्रोतों पर शोध होता है और हर दावा उस स्रोत से जुड़ता है जिसे जाँचा गया हो।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।