powerpoint
Create designed, editable PowerPoint .pptx presentations with PptxGenJS-Plus. Use when the user asks to create, generate, update, or inspect a deck, slide…
от yusheng-g★ 20 звёзд на GitHub
Установить powerpoint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PowerPoint
Use this skill whenever a PowerPoint deck is involved. For new decks, pass a PptxGenJS build script to the pptx_write tool — inline via script (preferred, for small decks) or via script_path for large decks whose script is written to a .mjs file. For filling or editing an existing template, call pptx_template_analyze first and then pptx_template_fill with the exact IDs returned by analysis.
Workflow
- Decide the deck outline and choose a visual system: palette, typography, repeated motif, and slide rhythm.
- Write JavaScript module content that exports
default async function build(pptx, ctx)or namedbuild(pptx, ctx). - In the script, add slides directly with PptxGenJS. Do not generate HTML for this workflow.
- Pass the script to
pptx_write. Prefer inline (script) for small decks — passpath,script, optionalassets_dir, and optionaldata. For large decks (many slides), writing the whole script inline bloats the tool call; instead write it to a.mjsfile with the write tool (first call creates it, subsequent calls useappend=trueto add chunks), then passpath+script_path. - Verify the result with
pptx_read; for visual QA, convert the PPTX to images if the environment has LibreOffice and Poppler.
Template Workflow
- Use
pptx_template_analyzewhen the user provides a.pptxtemplate or wants to preserve existing layouts, charts, images, tables, or SmartArt. - Build a
template_fill_pptx_plan.v1plan from the returned slide IDs and object IDs, then callpptx_template_fill. - For SmartArt, use
smartarts[*].smartart_idandsmartarts[*].nodes[*].node_idinsmartart_edits. This edits existing node text only; it does not create, delete, or relayout SmartArt nodes.
Script Creation
- Build environment. The script runs in a Node.js worker spawned from a temp directory that has no
node_modules. PptxGenJS-Plus, JSZip, and pako are already bundled into the worker, so they reach the script only as thepptxinstance and thectxargument ofbuild(pptx, ctx)— not as importable modules. Node built-ins (node:fs,node:path, …) resolve from the temp file; npm packages do not, since there is nonode_modulesto resolve against. - Inline (preferred): put the complete JavaScript module in the
scriptargument. Best for small decks where the script is short. - File path (large decks): when the script is large, writing it inline bloats the tool call and the model's thinking with script source. Instead use the write tool to create a
.mjsfile — first call writes it, subsequent calls passappend=trueto append chunks — then pass its path asscript_path. Either way the build function signature is the same:default async function build(pptx, ctx). - If revising a deck, update the script (inline
scriptor the.mjsfile) and callpptx_writeagain.
Tool Contract
Inline (small deck):
{
"tool": "pptx_write",
"arguments": {
"path": "deck.pptx",
"script": "export default async function build(pptx, ctx) {\\n pptx.layout = \"LAYOUT_WIDE\";\\n}",
"assets_dir": "/absolute/path/to/assets",
"data": {"title": "Quarterly Review"}
}
}
File path (large deck — script written to a .mjs file via the write tool):
{
"tool": "pptx_write",
"arguments": {
"path": "deck.pptx",
"script_path": "/tmp/deck.mjs",
"data": {"title": "Quarterly Review"}
}
}
Pass exactly one of script or script_path. The worker creates the PptxGenJS instance and writes the output file. The script only adds slides and content.
export default async function build(pptx, ctx) {
pptx.layout = "LAYOUT_WIDE";
pptx.author = "OpenAgent";
const slide = pptx.addSlide();
slide.background = { color: "FFFFFF" };
slide.addText("Title", {
x: 0.6, y: 0.4, w: 8, h: 0.6,
fontSize: 36, bold: true, color: "1F2937",
margin: 0,
});
slide.addNotes("speaker notes");
}
ctx includes:
ctx.data: JSON data passed from the tool call.ctx.assetsDir: resolved asset directory.ctx.outPath: final PPTX path.ctx.resolveAsset("image.png"): absolute path underassets_dir.ctx.imageData("image.png"): base64 image data URL.ctx.iconSvgData("check", "16A34A"): Font Awesome solid icon as SVG data.
Design Rules
- Set slide background explicitly on every slide. PptxGenJS defaults to a black background; if you do not set
slide.background = { color: "FFFFFF" }, slides will render with a black background. Always set the background color even for "white" slides. - Avoid plain white bullet decks. Every slide should have a visual element: shape, image, chart, icon, timeline, stat callout, or diagram.
- Vary layouts across the deck: title, divider, two-column, card grid, process flow, quote/callout, and conclusion.
- Pick topic-specific colors. Use one dominant color, one or two supporting tones, and one accent.
- Use strong hierarchy: titles ar
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл powerpoint?
Create designed, editable PowerPoint .pptx presentations with PptxGenJS-Plus. Use when the user asks to create, generate, update, or inspect a deck, slide deck, presentation, or .pptx file.
Как установить скилл powerpoint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл powerpoint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse 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…
xlsx
AnthropicUse 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…
pptx
AnthropicUse 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…