slide-making-skill
यह क्या करती है
यह स्किल PptxGenJS लाइब्रेरी से एकल PowerPoint स्लाइड बनाने का मार्गदर्शन करती है। यह उन डेवलपर्स के लिए है जो कोड से स्लाइड बनाते हैं और सही आकार, फ़ॉन्ट और स्टाइलिंग चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप कोड से PowerPoint पेज बनाने वाली स्लाइड फ़ाइल लिखते या ठीक करते हैं।
- ✓जब आपको PptxGenJS से बनी स्लाइड में टेक्स्ट, इमेज या चार्ट जोड़ने हैं।
- ✓जब आप चाहते हैं कि नतीजा ऐसी नेटिव .pptx फ़ाइल हो जो PowerPoint में खुले।
Skill का लिंक
https://github.com/MiniMax-AI/skills/blob/main/plugins/pptx-plugin/skills/slide-making-skill/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे एक स्लाइड चाहिए जिसमें शीर्षक, दो बुलेट पॉइंट और एक बार चार्ट हो, PptxGenJS से PowerPoint फ़ाइल के रूप में बनी।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल आयामों, स्थितियों, फ़ॉन्ट और रंगों के PptxGenJS नियम देती है। एजेंट उन नियमों का पालन करके ऐसी स्लाइड फ़ाइल लिखता है जो मानक PowerPoint फ़ॉर्मेट में एक्सपोर्ट हो।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
PptxGenJS Slide Making Skill
This skill teaches how to generate native .pptx slides using PptxGenJS (JavaScript).
PptxGenJS Reference
Read pptxgenjs.md for the complete PptxGenJS API reference, including:
- Setup & basic structure
- Text & formatting
- Lists & bullets
- Shapes & shadows
- Images & icons
- Slide backgrounds
- Tables & charts
Font Rules
Font Family Standards
| Language | Default | Alternatives |
|---|---|---|
| Chinese | Microsoft YaHei (微软雅黑) | — |
| English | Arial | Georgia, Calibri, Cambria, Trebuchet MS |
fontFace: "Microsoft YaHei" // Chinese text
fontFace: "Arial" // English text (or approved alternative)
Use system-safe fonts for cross-platform compatibility. Header/body can use different fonts (e.g., Georgia + Calibri).
No Bold for Body Text
Plain body text and caption/legend text must NOT use bold.
- Body paragraphs, descriptions → normal weight
- Captions, legends, footnotes → normal weight
- Reserve bold for titles and headings only
// ✅ Correct
slide.addText("Main Title", { bold: true, fontSize: 36, fontFace: "Arial" });
slide.addText("Body text here.", { bold: false, fontSize: 14, fontFace: "Arial" });
// ❌ Wrong
slide.addText("Body text here.", { bold: true, fontSize: 14 });
Color Palette Rules (MANDATORY)
Strict Palette Adherence
Use ONLY the provided color palette. Do NOT create or modify colors.
- All colors must come from the user-provided palette
- Do NOT use colors outside the palette
- Do NOT modify palette colors (brightness, saturation, mixing)
- Only exception: Add transparency using the
transparencyproperty (0-100)
// ✅ Correct: Using palette colors
slide.addShape(pres.shapes.RECTANGLE, { fill: { color: theme.primary } });
slide.addText("Title", { color: theme.accent });
// ❌ Wrong: Colors outside palette
slide.addShape(pres.shapes.RECTANGLE, { fill: { color: "1a1a2e" } });
No Gradients
Gradients are prohibited. Use solid colors only.
// ✅ Correct: Solid colors
slide.background = { color: theme.bg };
// ✅ Correct: Solid + transparency for overlay
slide.addShape(pres.shapes.RECTANGLE, { fill: { color: theme.accent, transparency: 50 } });
No Animations
Animations and transitions are prohibited. All slides must be static.
Page Number Badge (REQUIRED)
All slides except Cover Page MUST include a page number badge in the bottom-right corner.
- Position: x: 9.3", y: 5.1"
- Show current number only (e.g.
3or03), NOT "3/12" - Use palette colors, keep subtle
Circle Badge (Default)
slide.addShape(pres.shapes.OVAL, {
x: 9.3, y: 5.1, w: 0.4, h: 0.4,
fill: { color: theme.accent }
});
slide.addText("3", {
x: 9.3, y: 5.1, w: 0.4, h: 0.4,
fontSize: 12, fontFace: "Arial",
color: "FFFFFF", bold: true,
align: "center", valign: "middle"
});
Pill Badge
slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
x: 9.1, y: 5.15, w: 0.6, h: 0.35,
fill: { color: theme.accent },
rectRadius: 0.15
});
slide.addText("03", {
x: 9.1, y: 5.15, w: 0.6, h: 0.35,
fontSize: 11, fontFace: "Arial",
color: "FFFFFF", bold: true,
align: "center", valign: "middle"
});
Theme Object Contract (MANDATORY)
The compile script passes a theme object with these exact keys:
| Key | Purpose | Example |
|---|---|---|
theme.primary |
Darkest color, titles | "22223b" |
theme.secondary |
Dark accent, body text | "4a4e69" |
theme.accent |
Mid-tone accent | "9a8c98" |
theme.light |
Light accent | "c9ada7" |
theme.bg |
Background color | "f2e9e4" |
NEVER use other key names like background, text, muted, darkest, lightest.
Subagent Output Format
Each subagent outputs a complete, runnable JS file:
// slide-01.js
const pptxgen = require("pptxgenjs");
const slideConfig = {
type: 'cover',
index: 1,
title: 'Presentation Title'
};
// ⚠️ MUST be synchronous (not async)
function createSlide(pres, theme) {
const slide = pres.addSlide();
slide.background = { color: theme.bg };
slide.addText(slideConfig.title, {
x: 0.5, y: 2, w: 9, h: 1.2,
fontSize: 48, fontFace: "Arial", // English text uses Arial
color: theme.primary, bold: true, align: "center"
});
return slide;
}
// Standalone preview - use slide-specif
अक्सर पूछे जाने वाले सवाल
कौन-से फ़ॉन्ट सुझाए गए हैं?
चीनी टेक्स्ट के लिए Microsoft YaHei और अंग्रेज़ी के लिए Arial, साथ में कुछ सुरक्षित विकल्प।
क्या मुख्य टेक्स्ट बोल्ड होना चाहिए?
नहीं। स्किल कहती है कि मुख्य टेक्स्ट और कैप्शन सामान्य वज़न में रहें, और बोल्ड केवल शीर्षकों के लिए हो।
क्या यह चार्ट बना सकती है?
हाँ। स्किल PptxGenJS के चार्ट और टेबल विकल्प कवर करती है।
जानकारी
लेखक का मूल विवरण
Implement single-slide PowerPoint pages with PptxGenJS. Use when writing or fixing slide JS files: dimensions, positioning, text/image/chart APIs, styling rules, and export expectations for native .pptx output.
repo: MiniMax-AI/skills
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11285
- लाइसेंस
- MIT
- अपडेट की गई
- 18/4/2026
कमेंट
- …
इस repository की और skills
design-style-skill
14kयह आपके एजेंट को स्लाइड के लिए एक एकसमान विज़ुअल स्टाइल चुनने में मदद करती है, तीखे और कॉम्पैक्ट से लेकर नरम, गोल या खुले तक, मेल खाते कोनों और spacing के साथ।
ppt-editing-skill
14kयह आपके एजेंट को मौजूदा PowerPoint फ़ाइल या टेम्पलेट सुरक्षित रूप से बदलने में मदद करती है, टेक्स्ट बदलकर, स्लाइड का क्रम बदलकर या हटाकर, और सही डेक दोबारा पैक करके।
ppt-orchestra-skill
14kयह आपके एजेंट को बनाने से पहले पूरे PowerPoint डेक की योजना बनाने में मदद करती है, हर स्लाइड को मानक पेज प्रकार में रखकर और विविधता व टेक्स्ट गुणवत्ता जाँचकर।
android-native-dev
14kयह आपके एजेंट को Compose और Material Design 3 के साथ Kotlin में Android ऐप बनाने में मदद करती है, जिसमें प्रोजेक्ट सेटअप, accessibility और build सुधार शामिल हैं।
मिलती-जुलती skills
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।