pptx
Skill này làm gì
Skill này làm việc với bản trình chiếu PowerPoint, từ đọc nội dung slide đến xây dựng bản mới từ brief. Skill dành cho người cần tạo hoặc cập nhật slide theo định dạng PowerPoint.
Khi nào nên dùng
- ✓Khi bạn cần một file PowerPoint được tạo từ brief hoặc dàn ý.
- ✓Khi bạn cần cập nhật một bản trình chiếu có sẵn nhưng giữ nguyên mẫu.
- ✓Khi bạn cần lấy văn bản và ghi chú diễn giả ra khỏi một file .pptx.
Liên kết skill
https://github.com/TokenRhythm/opensquilla/blob/main/src/opensquilla/skills/bundled/pptx/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
“Bạn có thể biến dàn ý này thành bản trình chiếu PowerPoint mười slide bằng mẫu của công ty chúng tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xây bản trình chiếu trong không gian làm việc theo các bố cục của mẫu, rồi xem lại các slide và xuất file hoàn thành. Nếu phiên làm việc không thể tạo file, agent nói rõ điều đó thay vì dán mã vào khung chat.
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
Work with PowerPoint .pptx decks. The pptx file format is OOXML — a zip
container holding XML descriptions of slides, layouts, masters, and media.
Delivery rule
First, use the available tool list for this session to choose the delivery path.
If write_file, edit_file, apply_patch, or execute_code is available:
- Build the
.pptxin the active workspace using the paths below. - Call
publish_artifactfor the final.pptxbefore your final reply when that tool is available. - The code examples later in this document apply.
In restricted channels, run the inline Python examples with execute_code
and save workspace-relative files before calling publish_artifact. Shell,
Node, and LibreOffice commands require the corresponding exposed tool and
runtime. Do not use Python subprocesses to bypass an unavailable shell tool,
and do not retry generation on the host when sandbox execution fails.
If none of those file-authoring tools are available:
- Do not attempt to generate, save, or modify the
.pptx. - Do not paste OOXML, Python, JavaScript, HTML, or other source as a substitute for sending the deck.
- Ignore the Path B, Path C, and Visual QA sections below; they do not apply when file authoring is unavailable.
- Reply plainly: explain that the current session cannot create files, and
offer to publish an existing
.pptxby path, describe the slide contents in text, or continue in a file-authoring surface such as the OpenSquilla Web UI.
In all cases, do not paste full file source as the deliverable. Source code is appropriate only when the user explicitly asks for code.
Decide the path first
Pick one of three paths up front; do not mix them. The right path depends only on what is on disk before you start.
| You have | Goal | Path |
|---|---|---|
Existing .pptx |
Read text only | A. Read |
Existing .pptx |
Modify content while keeping the design | B. Edit-in-place |
| Nothing, or a brief | Build a new deck | C. Create from scratch |
If the user hands you a deck and asks for changes, default to path B and treat the input deck as the visual style baseline. Only fall back to path C when the user explicitly says "start fresh" or there is no input deck.
Path A: Read text from a .pptx
When shell execution is available, use the helper script. It walks slides via
the python-pptx public API and prints text grouped by slide. With
execute_code, use the inline Python example instead.
python {baseDir}/scripts/extract_text.py /path/to/deck.pptx
python {baseDir}/scripts/extract_text.py /path/to/deck.pptx --json
For programmatic use, call python-pptx directly:
from pptx import Presentation
prs = Presentation("deck.pptx")
for i, slide in enumerate(prs.slides, 1):
for shape in slide.shapes:
if shape.has_text_frame:
for para in shape.text_frame.paragraphs:
print(i, "".join(run.text for run in para.runs))
If markitdown is available, it gives a faster Markdown rendering:
python -m markitdown deck.pptx
Path B: Edit an existing deck
Two sub-strategies; pick by how invasive the edit is.
B1. Text-only edits (preferred)
When the change is "swap this string for that one" or "fill these placeholders": use python-pptx to mutate runs in place. This preserves all theme/master/font settings.
from pptx import Presentation
prs = Presentation("input.pptx")
slide = prs.slides[0]
for shape in slide.shapes:
if not shape.has_text_frame:
continue
for para in shape.text_frame.paragraphs:
for run in para.runs:
if run.text == "{{TITLE}}":
run.text = "Q3 Review"
prs.save("output.pptx")
Edit at the run level, not the paragraph level — replacing whole paragraph
text drops formatting. If a placeholder spans multiple runs (often happens
when the original template had partial bold/italic), concatenate the runs into
the first run and clear the others.
B2. Structural edits (add/remove/reorder slides, change layouts)
python-pptx's slide-level mutation is limited (no public reorder API). For
structural work, unzip the .pptx, patch ppt/presentation.xml and the
slide files, and repack:
mkdir _unpacked && (cd _unpacked && unzip -q ../input.pptx)
# edit _unpacked/ppt/presentation.xml (sldIdLst order)
# edit _unpacked/ppt/slides/slideN.xml content
(cd _unpacked && zip -q -r ../output.pptx . -x "*.DS_Store")
Rules
Câu hỏi thường gặp
Nếu phiên làm việc không thể tạo file thì sao?
Skill yêu cầu agent giải thích giới hạn và đề nghị làm việc với một file có sẵn.
Skill có giữ mẫu của tôi không?
Có. Skill được thiết kế để giữ nguyên mẫu và các bố cục khi chỉnh sửa.
Skill có đọc được ghi chú diễn giả không?
Có. Skill bao gồm việc lấy văn bản và ghi chú diễn giả từ bản trình chiếu.
Chi tiết
Mô tả gốc của tác giả
Read, inspect, edit, or create PowerPoint `.pptx` presentations, including text extraction, template-preserving changes, slide review, and generation from a brief.
repo: TokenRhythm/opensquilla
Độ phổ biến
- Sao GitHub
- 7.1k
- Vị trí xếp hạng
- #13591
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-use
7.1kCho phép agent của bạn mở, đọc và thao tác với các trang web trong trình duyệt thanh bên của OpenSquilla Desktop, gồm biểu mẫu và kiểm tra trực quan.
deep-research
7.1kDạy agent của bạn nghiên cứu nhiều vòng với kế hoạch đã lưu, nguồn được theo dõi và một báo cáo dài có trích dẫn.
docx
7.1kGiúp agent của bạn đọc, chỉnh sửa hoặc tạo file Word .docx, đồng thời giữ nguyên định dạng, thay đổi đang theo dõi và cấu trúc.
html-coder
7.1kGiúp agent của bạn viết trang HTML sạch, có cấu trúc ngữ nghĩa, biểu mẫu dễ tiếp cận, phương tiện và tính năng HTML5, rồi mở xem trước trên web.
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.