pptx-generator
Skill này làm gì
Skill này xử lý bài trình chiếu PowerPoint từ đầu đến cuối. Skill bao gồm đọc bộ trình chiếu, chỉnh sửa mẫu và tạo slide mới với một hệ thống thiết kế có sẵn. Skill dành cho người làm bài thuyết trình.
Khi nào nên dùng
- ✓Khi bạn muốn một bài trình chiếu mới được xây từ đầu.
- ✓Khi bạn có mẫu PowerPoint và cần cập nhật nó.
- ✓Khi bạn cần lấy chữ từ một bài trình chiếu có sẵn.
Liên kết skill
https://github.com/MiniMax-AI/skills/blob/main/skills/pptx-generator/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn một bài trình chiếu 10 slide về lộ trình sản phẩm của chúng tôi, có trang bìa, mục lục và phần tóm tắt.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc bộ trình chiếu có sẵn hoặc tạo bộ mới từ các loại slide và quy tắc thiết kế. Chỉnh sửa mẫu được thực hiện qua các bước XML an toàn, còn đọc dùng công cụ trích xuất văn bản.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
PPTX Generator & Editor
Overview
This skill handles all PowerPoint tasks: reading/analyzing existing presentations, editing template-based decks via XML manipulation, and creating presentations from scratch using PptxGenJS. It includes a complete design system (color palettes, fonts, style recipes) and detailed guidance for every slide type.
Quick Reference
| Task | Approach |
|---|---|
| Read/analyze content | python -m markitdown presentation.pptx |
| Edit or create from template | See Editing Presentations |
| Create from scratch | See Creating from Scratch below |
| Item | Value |
|---|---|
| Dimensions | 10" x 5.625" (LAYOUT_16x9) |
| Colors | 6-char hex without # (e.g., "FF0000") |
| English font | Arial (default), or approved alternatives |
| Chinese font | Microsoft YaHei |
| Page badge position | x: 9.3", y: 5.1" |
| Theme keys | primary, secondary, accent, light, bg |
| Shapes | RECTANGLE, OVAL, LINE, ROUNDED_RECTANGLE |
| Charts | BAR, LINE, PIE, DOUGHNUT, SCATTER, BUBBLE, RADAR |
Reference Files
| File | Contents |
|---|---|
| slide-types.md | 5 slide page types (Cover, TOC, Section Divider, Content, Summary) + additional layout patterns |
| design-system.md | Color palettes, font reference, style recipes (Sharp/Soft/Rounded/Pill), typography & spacing |
| editing.md | Template-based editing workflow, XML manipulation, formatting rules, common pitfalls |
| pitfalls.md | QA process, common mistakes, critical PptxGenJS pitfalls |
| pptxgenjs.md | Complete PptxGenJS API reference |
Reading Content
# Text extraction
python -m markitdown presentation.pptx
Creating from Scratch — Workflow
Use when no template or reference presentation is available.
Step 1: Research & Requirements
Search to understand user requirements — topic, audience, purpose, tone, content depth.
Step 2: Select Color Palette & Fonts
Use the Color Palette Reference to select a palette matching the topic and audience. Use the Font Reference to choose a font pairing.
Step 3: Select Design Style
Use the Style Recipes to choose a visual style (Sharp, Soft, Rounded, or Pill) matching the presentation tone.
Step 4: Plan Slide Outline
Classify every slide as exactly one of the 5 page types. Plan the content and layout for each slide. Ensure visual variety — do NOT repeat the same layout across slides.
Step 5: Generate Slide JS Files
Create one JS file per slide in slides/ directory. Each file must export a synchronous createSlide(pres, theme) function. Follow the Slide Output Format and the type-specific guidance in slide-types.md. Generate up to 5 slides concurrently using subagents if available.
Tell each subagent:
- File naming:
slides/slide-01.js,slides/slide-02.js, etc. - Images go in:
slides/imgs/ - Final PPTX goes in:
slides/output/ - Dimensions: 10" x 5.625" (LAYOUT_16x9)
- Fonts: Chinese = Microsoft YaHei, English = Arial (or approved alternative)
- Colors: 6-char hex without # (e.g.
"FF0000") - Must use the theme object contract (see Theme Object Contract)
- Must follow the PptxGenJS API reference
Step 6: Compile into Final PPTX
Create slides/compile.js to combine all slide modules:
// slides/compile.js
const pptxgen = require('pptxgenjs');
const pres = new pptxgen();
pres.layout = 'LAYOUT_16x9';
const theme = {
primary: "22223b", // dark color for backgrounds/text
secondary: "4a4e69", // secondary accent
accent: "9a8c98", // highlight color
light: "c9ada7", // light accent
bg: "f2e9e4" // background color
};
for (let i = 1; i <= 12; i++) { // adjust count as needed
const num = String(i).padStart(2, '0');
const slideModule = require(`./slide-${num}.js`);
slideModule.createSlide(pres, theme);
}
pres.writeFile({ fileName: './output/presentation.pptx' });
Run with: cd slides && node compile.js
Step 7: QA (Requir
Câu hỏi thường gặp
Skill bao gồm những loại slide nào?
Nó bao gồm slide bìa, mục lục, chia phần, nội dung và tóm tắt.
Nó đọc bộ trình chiếu như thế nào?
Nó dùng công cụ markitdown để lấy văn bản của bài trình chiếu.
Skill có hệ thống thiết kế không?
Có. Skill gồm bảng màu, phông chữ và công thức phong cách để slide nhất quán.
Chi tiết
Mô tả gốc của tác giả
Generate, edit, and read PowerPoint presentations. Create from scratch with PptxGenJS (cover, TOC, content, section divider, summary slides), edit existing PPTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, PowerPoint, presentation, slide, deck, slides.
repo: MiniMax-AI/skills
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11298
- Giấy phép
- MIT
- Cập nhật
- 18/4/2026
Bình luận
- …
Thêm skill từ kho mã này
design-style-skill
14kGiúp agent của bạn chọn một phong cách slide nhất quán, từ sắc nét và gọn đến mềm mại, bo tròn hoặc thoáng, với góc và khoảng cách khớp.
ppt-editing-skill
14kGiúp agent của bạn chỉnh sửa tệp hoặc mẫu PowerPoint hiện có một cách an toàn: đổi nội dung, sắp xếp hoặc xóa slide, và đóng gói lại bộ trình chiếu hợp lệ.
ppt-orchestra-skill
14kGiúp agent của bạn lên kế hoạch toàn bộ bộ trình chiếu PowerPoint trước khi dựng, xếp mỗi slide vào loại trang chuẩn và kiểm tra nội dung.
slide-making-skill
14kGiúp agent của bạn viết từng slide PowerPoint bằng JavaScript với PptxGenJS, gồm bố cục, chữ, hình ảnh, biểu đồ và phông chữ cho tệp .pptx gốc.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.