मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)42k · #6410

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-dsl/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

  1. Reading before writing — the three read depths
  2. The document — content → canvas
  3. The canvas — viewport, theme, background, animations, paint order
  4. How an edit reaches the JSON — three ops, pointer rules
  5. What the structure schema refuses — the only hard boundary
  6. Two renderers paint your page — playback vs. preview
  7. Fields every element carries
  8. The ten element types — one section each
  9. The rendering truth of content HTML — the most important section
  10. Quick reference — one row per element type
  11. Where this sits
  12. 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.
  • inventory strips the markup. Its text is 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.
  • source always 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 full content object — type, schemaVersion and the complete canvas, background, theme and animations included.
  • detail:"text" gives you pointers. Each path is that element's own /content/canvas/elements/N, so a residue check hands you the pointer to fix. Note that its text for a latex element is the LaTeX source, for code the lines joined by newlines, and for table the 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

build-personal-skill

42k

आपके एजेंट को आपके पिछले कोर्स बनाने के रिकॉर्ड और चैट से एक निजी, दोबारा इस्तेमाल होने वाली स्किल बनाने में मदद करती है, जो आपके अपने इतिहास के पैटर्न पर आधारित है।

AI और एजेंटप्रॉम्प्ट और LLM

curriculum-planner

42k

आपके एजेंट को जुड़े हुए पाठों की श्रृंखला की योजना बनाने में मदद करती है, जैसे सात दिन का कोर्स या अध्याय के हिसाब से बँटी किताब, और आपकी मंज़ूरी के बाद उन्हें एक-एक करके बनाती है।

लेखन और डॉक्यूमेंटलेखन

deep-interactive

42k

आपके एजेंट को ऐसा कोर्स डिज़ाइन करने में मदद करती है जिसमें ज़्यादातर पेजों पर सीखने वाले सिमुलेशन, डायग्राम, कोड और गेम के साथ काम करें, स्लाइड पढ़ने के बजाय।

लेखन और डॉक्यूमेंटलेखन

deep-research

42k

आपके एजेंट को हाल के या तथ्य-आधारित विषयों पर कोर्स बनाने में मदद करती है, जिसमें पहले लाइव स्रोतों पर शोध होता है और हर दावा उस स्रोत से जुड़ता है जिसे जाँचा गया हो।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills