मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)42k · #6409

slide-craft

यह क्या करती है

यह स्किल OpenMAIC स्लाइड पेजों के पीछे के डिज़ाइन नियम देती है, जिनमें मार्जिन, टेक्स्ट के आकार, कंट्रास्ट और स्पेसिंग शामिल हैं। यह स्लाइड संपादित करने वाले उन लोगों के लिए है जो मूल डिज़ाइन से मेल खाते बदलाव चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी स्लाइड का एक एलिमेंट बदल रहे हों और चाहते हों कि वह फ़िट हो।
  • ✓जब किसी स्लाइड का टेक्स्ट उसके बॉक्स के लिए बहुत बड़ा या छोटा हो।
  • ✓जब कोई स्लाइड भरी हुई या खाली लगे और उसे बेहतर स्पेसिंग चाहिए।

Skill का लिंक

https://github.com/THU-MAIC/OpenMAIC/blob/main/skills/agent-runtime/slide-craft/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

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

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

AI से क्या माँगें: उदाहरण

“इस स्लाइड का टेक्स्ट बॉक्स से बाहर जा रहा है। इसे ठीक कीजिए ताकि वह फ़िट हो और बाकी स्लाइड से भी मेल खाए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI स्लाइड कैनवास, टेक्स्ट की ऊँचाई और रंग के कंट्रास्ट के लिए मापदंडों और नियमों का एक सेट इस्तेमाल करता है, ताकि पेज के डिज़ाइन में फ़िट होने वाला बदलाव किया जा सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

The design law of a slide page

Every slide in this runtime was drawn under a long set of rules — the canvas, the height table, the type scale, the spacing standards. The generator that drew the page had all of them in front of it. When you patch one element, you have the page's numbers and nothing else, and the rules are the only way to tell a repair from a dent.

This is that rule set, restated for editing. It is about the page, not the process: which numbers a change has to stay consistent with, and which fields actually reach the screen.

The canvas you are editing inside

The canvas is 1000 × 562.5. All elements respect a 50px margin, so the live area is left ∈ [50, 950], top ∈ [50, 512.5], and an element's right edge (left + width) stays ≤ 950, its bottom edge ≤ 512.5.

The page's own alignment grid, which existing elements are already on:

  • Left-aligned content sits at left = 60 or left = 80.
  • Centred content is left = (1000 - width) / 2 — recomputed, never guessed.
  • Right-aligned content is left = 1000 - width - 60.

Changing width on centred content changes left too, and they are two separate writes. Read the neighbours' boxes first and land on the column they are already using; a lone element 8px off the shared left edge reads as a mistake even though nothing overflows.

There is no alignment operation. Every position is an explicit number you write to that element's own left / top / width / height, one path per call, computed from the neighbours you read. Aligning a row means giving each element the number the row already uses — not asking the page to tidy itself.

Text is sized by table, not by eye

A text element has 10px padding on all four sides, so its usable area is (width - 20) × (height - 20), and heights come from one table (line-height 1.5, padding included):

Font size 1 line 2 lines 3 lines 4 lines 5 lines
14px 43 64 85 106 127
16px 46 70 94 118 142
18px 49 76 103 130 157
20px 52 82 112 142 172
24px 58 94 130 166 202
28px 64 106 148 190 232
32px 70 118 166 214 262
36px 76 130 184 238 292

When you replace an element's words, re-derive its height instead of keeping the old one:

  1. characters_per_line = (width - 20) / font_size. Keep the longest line at ≤ 75% of that; past 100% the text wraps and takes a row you did not budget.
  2. Count the lines your new content needs — one per <p>, plus a wrap for every paragraph over characters_per_line — then add ~0.8 of a line of slack and round up.
  3. Look the height up against the largest font size present in the content, not the average.

Height is a container, not a clamp: overflowing text spills past the box rather than shrinking, and the page shows the spill. The fix order is shorten the words, then step to the next table row, then widen the box — in that order, because a slide that needs a bigger box usually needs fewer words.

The type scale

Content Size
Main title 32-36px
Subtitle 24-28px
Key points 18-20px
Body 16-18px
Caption 14-16px

Levels stay 2-4px apart and everything at one level uses one size. When you touch an element, take its size from the siblings that share its role on that page rather than from this table fresh — the page's own scale wins, and this table is how you recognise which level an element belongs to.

Size lives in the content HTML, as inline font-size on the <p> — there is no font-size field to write. So changing a size means writing the whole content string back, which means you have to know the markup you are replacing.

What the renderer really does with your HTML

The content of a text element is an HTML string, and this page's CSS resets most tag semantics. Four consequences decide how you write rich text:

  • <ul> / <ol> render without markers. The stylesheet's reset strips list-style and the indent, and the rule that puts them back is scoped to the browser editor — not to classroom playback. A list sent as <ul><li>…</li></ul>
अक्सर पूछे जाने वाले सवाल

स्लाइड कैनवास का आकार क्या है?

स्किल के अनुसार कैनवास 1000 बाय 562.5 यूनिट है, और हर तरफ़ 50 यूनिट का मार्जिन है।

क्या रंग के सुधार भी कवर होते हैं?

हाँ। स्किल में कंट्रास्ट जोड़े और रंग सुधार के नियम शामिल हैं।

क्या एलिमेंट अपने-आप संरेखित होते हैं?

नहीं। स्किल कहती है कि कोई संरेखण कार्रवाई नहीं है, इसलिए हर स्थिति साफ़ तौर पर सेट करनी होती है।

जानकारी

लेखक का मूल विवरण

The design law of a slide page — canvas geometry, the text height table, the type scale, contrast pairs, spacing rhythm, and which element type carries which content. Load it when patching slide elements one at a time, when a fix is about colour or contrast, when text has to grow or shrink inside a box, when a page feels crowded or empty, or when replacement content needs real rich-text structure. It is the standard `page-clone` and `pro-editing` edit against, not a procedure of its own — those two decide which pages to touch and in what order, this one decides what a good page looks like when

repo: THU-MAIC/OpenMAIC

लोकप्रियता

GitHub स्टार
42k
रैंकिंग में स्थान
#6409
लाइसेंस
MIT
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

build-personal-skill

42k

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

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

curriculum-planner

42k

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

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

deep-interactive

42k

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

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

deep-research

42k

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

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

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