pptx
БесплатноБез исполняемых скриптовНе проверенUse this skill any time a .pptx file is involved — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading or…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
PPTX Skill
Quick Reference
| Task | Approach |
|---|---|
| Read/analyze content | python3 -m markitdown presentation.pptx |
| Generate structured presentation | Use generate_report.js — see below |
| Create custom from scratch | Use pptxgenjs directly (see pptxgenjs section) |
Generating Presentations (Recommended)
For structured presentations with cover slide, auto-generated TOC, content slides, and closing, use the pre-built template:
Step 1: Copy the generator script
cp /builtin-skills/pptx/scripts/generate_report.js ./generate_pptx.js
Step 2: Build slides_data.json via Python script
Two phases: write slide content files, then assemble into JSON.
CRITICAL: NEVER write or edit .json files directly. Use a Python script with json.dump() to guarantee valid JSON output.
Phase 1 — Write each slide's content as a plain text file using write_file:
For each major topic, read_file the relevant research data, then write_file the slide content directly:
read_file("research_data/literature.md") # refresh data in context
write_file("slides/slide_01_intro.txt", "...") # write slide body
write_file("slides/slide_02_analysis.txt", "...") # next slide
...
Each content slide body should be concise but substantive (3-6 bullet points or 2-4 sentences with specific data and citations).
NEVER write a Python script that contains slide text as string literals. The slide content goes directly into .txt files via write_file, not into Python code.
Language (CRITICAL):
- All presentation content (title, subtitle, slide headings, body text, chart labels, speaker notes) MUST be written in the user's configured language as specified in the system prompt's
## Languagesection. - If the user's language is Chinese (
zh), write the entire presentation in Chinese; if English (en), write in English. Do NOT mix languages unless quoting a proper noun or technical term that has no standard translation.
Phase 2 — Assemble into JSON using a standard assembler script:
import json, glob, os
SLIDES_DIR = "slides"
TITLE = "Presentation Title"
SUBTITLE = "Subtitle or tagline"
# Slide config: (file_pattern, type, title, extra_fields_or_None)
SLIDE_MAP = [
("slide_01_*.txt", "section", "Introduction", None),
("slide_02_*.txt", "bullets", "Key Findings", None),
("slide_03_*.txt", "content", "Market Overview", {"layout": "text-image", "image": "chart.png"}),
("slide_04_*.txt", "stat", "Key Metrics", {
"stats": [
{"value": "25%", "label": "Revenue Growth"},
{"value": "15%", "label": "Cost Reduction"},
{"value": "32%", "label": "Market Share"},
]
}),
("slide_05_*.txt", "content", "Trend Analysis", None),
(None, "chart_pie", "Distribution", {
"labels": ["Type A", "Type B", "Type C", "Other"],
"values": [35, 30, 20, 15],
}),
(None, "chart_line", "Yearly Trends", {
"x_labels": ["2020", "2021", "2022", "2023", "2024"],
"series": [{"name": "Metric", "values": [40, 55, 62, 70, 78]}],
}),
]
data = {
"title": TITLE, "subtitle": SUBTITLE,
"author": "ScienceClaw", "date": "2026-03-09",
"theme": "midnight", "toc": True, "slides": [],
}
for entry in SLIDE_MAP:
pattern, stype, title, extra = entry
slide = {"type": stype, "title": title}
if pattern:
matches = sorted(glob.glob(os.path.join(SLIDES_DIR, pattern)))
if matches:
body = open(matches[0], encoding="utf-8").read().strip()
if stype == "bullets":
slide["items"] = [line.strip() for line in body.split("\n") if line.strip()]
else:
slide["body"] = body
if extra:
slide.update(extra)
data["slides"].append(slide)
# Closing slide
data["slides"].append({"type": "closing", "title": "Thank You", "subtitle": "Questions?"})
with open("slides_data.json", "w", encoding="utf-8") as f:
json.dump(data, f, ensure_ascii=False, indent=2)
print(f"Generated slides_data.json ({len(data['slides'])} slides)")
Step 3: Generate the PPTX
python3 build_slides_data.py # outputs slides_data.json
node generate_pptx.js slides_data.json output.pptx
Supported slide types
| Type | Required Fields | Optional Fields |
|---|---|---|
title |
(auto from top-level) | title, subtitle, author, date |
agenda |
items (string array) |
title (default: "Agenda") |
section |
title |
subtitle |
content |
title |
body, layout, image |
bullets |
title, items |
subtitle |
two_column |
title, left, right |
each column: {heading, body} or {heading, items} |
table |
title, headers, rows |
caption |
stat |
title, stats |
stats: [{value, label}] (2-4 items) |
image |
title, image |
caption |
chart_bar |
title, ` |
Установить pptx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pptx?
Use this skill any time a .pptx file is involved — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading or extracting text from .pptx files; editing or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck', 'slides', 'presentation', or references a .pptx filename. If a .pptx file needs to be opened, created, or touched, use this skill.
Как установить скилл pptx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pptx запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic