python-pptx-generator – skill Tài liệu & Office cho agent AI
Tạo script Python hoàn chỉnh để dựng bộ slide PowerPoint chuyên nghiệp bằng python-pptx với nội dung slide thực tế.
Cài skill python-pptx-generator bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-pptx-generator-2491e.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /python-pptx-generator – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-pptx-generator-2491e.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $python-pptx-generator – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-pptx-generator-2491e.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /python-pptx-generator – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-pptx-generator-2491e.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /python-pptx-generator – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Python PPTX Generator
Overview
Use this skill when the user wants a ready-to-run Python script that creates a PowerPoint presentation with python-pptx.
It focuses on turning a topic brief into a complete slide deck script with real slide content, sensible structure, and a working save step.
When to Use This Skill
- Use when the user wants a Python script that generates a
.pptxfile automatically - Use when the user needs slide content drafted and encoded directly into
python-pptx - Use when the user wants a quick presentation generator for demos, classes, or internal briefings
How It Works
Step 1: Collect the Deck Brief
Ask for the topic, audience, tone, and target number of slides if the request does not already include them.
If constraints are missing, pick conservative defaults and state them in the generated script comments.
Step 2: Plan the Narrative Arc
Outline the deck before writing code:
1. Title slide
2. Agenda or context
3. Core teaching or business points
4. Summary or next steps
Keep the slide count realistic for the requested audience and avoid filler slides.
Step 3: Generate the Python Script
Write a complete script that:
- imports
Presentationfrompython-pptx - creates the deck
- selects appropriate built-in layouts
- writes real titles and bullet points
- saves the file with a clear filename
- prints a success message after saving
Step 4: Keep the Output Runnable
The final answer should be a Python code block that can run after installing python-pptx.
Avoid pseudocode, placeholders, or missing imports.
Examples
Example 1: Educational Deck
User: Create a 5-slide presentation on the basics of machine learning for a high school class.
Output: A complete Python script that creates a title slide, overview, core concepts, examples, and recap.Example 2: Business Briefing
User: Generate a 7-slide deck for sales leadership on Q2 pipeline risks and mitigation options.
Output: A python-pptx script with executive-friendly slide titles, concise bullets, and a final recommendations slide.Best Practices
- ✅ Use standard
python-pptxlayouts unless the user asks for custom positioning - ✅ Write audience-appropriate bullet points instead of placeholders
- ✅ Save the output file explicitly in the script, for example
output.pptx - ✅ Keep slide titles short and the bullet hierarchy readable
- ❌ Do not return partial snippets that require the user to assemble the rest
- ❌ Do not invent unsupported styling APIs without checking
python-pptxcapabilities
Security & Safety Notes
- Install
python-pptxonly in an environment you control, for example a local virtual environment - If the user will run the script on a shared machine, choose a safe output path and avoid overwriting existing presentations without confirmation
- If the request includes proprietary or sensitive presentation content, keep it out of public examples and sample filenames
Common Pitfalls
- Problem: The generated script uses placeholder text instead of real content
Solution: Draft the narrative first, then turn each slide into specific titles and bullets
- Problem: The deck uses too many slides for the requested audience
Solution: Compress the outline to the most important 4 to 8 slides unless the user explicitly wants a longer deck
- Problem: The script forgets to save or print a completion message
Solution: Always end with prs.save(...) and a short success print
Related Skills
@pptx-official- Use when the task is about inspecting or editing existing PowerPoint files@docx-official- Use when the requested output should be a document instead of a slide deck
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- qrx – Tạo mã QR nghệ thuật, có thương hiệu và sẵn sàng in, kiểm tra trước khi dùng với QRX…
- recallmax – Chuẩn bị bàn giao hội thoại có liên kết nguồn và tóm tắt tài liệu có giới hạn, giữ lại…
- runbook-creation – Tạo runbook vận hành và quy trình thao tác chuẩn (SOP). Ghi lại hướng dẫn xử lý sự cố và…
- scale-benchmarks – Tài liệu tham chiếu cho scale-benchmarks của monopoly.
- slideops – Biến một repository thành bộ slide HTML có trích dẫn và phát hiện khi nào slide bị lệch…
- source-document-filing – Sổ đăng ký chứng từ gốc: loại và số chứng từ, bên liên quan, số tiền, khóa tra cứu, vị…
- spreadsheet-manual-build – Tạo bảng tính Excel trống hoặc CSV từ danh sách trường đã xác nhận, có định dạng và kiểm…
- startup-business-analyst-business-case – Tạo tài liệu business case toàn diện, sẵn sàng cho nhà đầu tư, gồm thị trường, giải…