pptx-official
Skill này làm gì
Skill này xử lý tệp PowerPoint từ đầu đến cuối. Skill bao gồm bộ trình chiếu mới, điền mẫu, đọc slide và chuyển đổi bài trình chiếu. Skill dành cho người tạo hoặc cập nhật bài thuyết trình.
Khi nào nên dùng
- ✓Khi bạn cần một bộ trình chiếu mới, như bài gọi vốn (pitch) hoặc bài huấn luyện.
- ✓Khi bạn có mẫu PowerPoint và muốn điền các giá trị vào.
- ✓Khi bạn muốn một bộ trình chiếu được chuyển sang PDF hoặc ảnh.
Liên kết skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/pptx-official/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 điền số liệu bán hàng quý này vào mẫu PowerPoint của mình và xuất thành PDF.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chọn một hướng: xây bằng thư viện Python hoặc JavaScript, điền các chỗ giữ chỗ trong mẫu, chỉnh sửa cấu trúc tệp hoặc đọc văn bản. Agent có thể dựng slide để kiểm tra cách chúng hiển thị.
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 Skill
An Apache-2.0 toolkit for producing, editing, and reading Microsoft PowerPoint
(.pptx) files. Written from scratch against the public
ECMA-376 / ISO/IEC 29500 (PresentationML)
specification and built on permissively-licensed tooling (python-pptx MIT,
pptxgenjs MIT, lxml BSD-3-Clause, Pillow MIT-CMU, optional external
binaries soffice MPL 2.0 and pdftoppm GPL) so it can be reused in
commercial projects without restriction.
Decision matrix
| Situation | Path | Read first |
|---|---|---|
| Build a deck from a prompt or dataset — no source file to start from | Author with python-pptx (structured / repeatable) or PptxGenJS (design-heavy, JS) |
create.md |
You have a .pptx template to fill in — keep its master, layouts, look |
Placeholder replacement via python-pptx |
edit.md → Template fill |
| Deep structural edits — reorder slides, splice XML, add unusual objects | Explode → edit XML parts → assemble | edit.md → Raw XML workflow |
Only need the text / speaker notes / structure out of a .pptx |
Extraction pipeline | read.md |
| Turn a deck into PDF or PNG images (visual QA, publishing) | scripts/render_pdf.py / scripts/render_slides.py via LibreOffice |
see QA below |
| Grid of slide thumbnails for previewing a template | scripts/contact_sheet.py (Pillow) |
read.md → Thumbnails |
If the task mixes several of these, do them in this order: read → plan slide-by-slide → edit/create → validate → visual QA.
One-time environment setup
Bundled runtime: when the
MIMO_PYTHONenvironment variable is set, skipuv/pip installs — run every Python command below withuv runreplaced by"$MIMO_PYTHON"(python-pptx/Pillow/lxml preinstalled; pip console scripts unavailable, use"$MIMO_PYTHON" -m <module>). A bundled LibreOffice is exposed asMIMO_SOFFICE(picked up automatically bysoffice_bridge.py/render_pdf.py), and slide rasterisation automatically falls back to pypdfium2 in that interpreter when Poppler (pdftoppm) is absent. For the PptxGenJS authoring path, bundled Node.js is exposed asMIMO_NODE, with pptxgenjs/react/react-dom/sharp/react-icons/mathjax-full preinstalled inMIMO_NODE_MODULES— run scripts asNODE_PATH="$MIMO_NODE_MODULES" "$MIMO_NODE" <script.js>instead ofnpm install.
Prerequisites
If uv or bun are not yet installed:
# Install uv (Python package/project manager)
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Install bun (TypeScript runtime, replaces Node.js for this workflow)
# macOS / Linux
curl -fsSL https://bun.sh/install | bash
# Windows: powershell -c "irm bun.sh/install.ps1|iex"
Only if the user explicitly refuses uv / bun, substitute pip (in a venv you manage yourself) for uv, and npm/pnpm + npx tsx for bun — everything else in this skill stays the same.
Python (uv)
Python dependencies are managed by uv. Do not use pip directly.
# Initialize project (if no pyproject.toml exists)
uv init -p 3.12
# Add dependencies
uv add python-pptx lxml Pillow
uv add defusedxml # safe XML parsing (recommended for manual XML edits)
Rules:
- Never use
pip— alwaysuv addfor packages. - Never run
python scripts/...directly — alwaysuv run scripts/.... - Don't manually manage environments with
python -m venvorsource .venv/bin/activate.
TypeScript (bun)
For PptxGenJS creation, use bun (project-local, not global installs):
# Initialize (if no package.json exists)
bun init -y
# Add dependencies
bun add pptxgenjs # core PPTX creation library
bun add react react-dom sharp # rasterization (icons + formulas)
bun add react-icons # icon library (FA, MD, etc.)
bun add mathjax-full # LaTeX formula rendering
# Type definitions (including Bun runtime types)
bun add -d @types/bun @types/react @types/react-dom
Create a tsconfig.json if one doesn't exist:
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"noEmit": true,
"jsx": "react-jsx",
"strict":
Câu hỏi thường gặp
Nó có giữ giao diện mẫu của tôi không?
Có. Điền mẫu dùng các chỗ giữ chỗ, nên master và layout được giữ nguyên.
Nó có cho tôi xem slide trông thế nào không?
Có. Nó có thể chuyển bộ trình chiếu sang PDF hoặc ảnh để kiểm tra trực quan.
Nó có cần phần mềm bổ sung không?
Một số bước dựng dùng công cụ tùy chọn như LibreOffice khi đã được cài đặt.
Chi tiết
Mô tả gốc của tác giả
Use this skill whenever a Microsoft PowerPoint (.pptx) file is being produced, opened, transformed, or read. That includes: authoring slide decks, pitch decks, executive readouts, training material, or any presentation deliverable; extracting text or structure from an existing .pptx; filling a .pptx template with values; converting a deck to PDF or images; splitting or merging decks; inspecting slides, layouts, masters, tables, images, charts, speaker notes, or comments. Trigger on words like 'deck', 'slides', 'presentation', 'pitch deck', 'keynote' (when a .pptx is expected as output), or any
repo: XiaomiMiMo/MiMo-Code
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11336
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
effect
14kGiúp agent của bạn trả lời câu hỏi về framework TypeScript Effect bằng cách kiểm tra mã nguồn và tài liệu, thay vì dựa vào trí nhớ.
arxiv
14kGiúp agent của bạn tìm, đọc, trích dẫn và theo dõi các bài báo học thuật trên arXiv, gồm tóm tắt, trích dẫn BibTeX, tải PDF và liên kết trích dẫn.
claude-code
14kGiúp agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Claude Code, dưới dạng chạy một lần, phiên tương tác hoặc tác vụ nền.
codex
14kGiúp agent của bạn chạy công cụ dòng lệnh OpenAI Codex mà không cần cửa sổ chat, cho tác vụ lập trình, tập lệnh và quy trình tự động.
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.