Command Palette

Search for a command to run...

Назад к скиллам
скилл № 12690

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от 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

  1. Decide the deck outline and choose a visual system: palette, typography, repeated motif, and slide rhythm.
  2. Write JavaScript module content that exports default async function build(pptx, ctx) or named build(pptx, ctx).
  3. In the script, add slides directly with PptxGenJS. Do not generate HTML for this workflow.
  4. Pass the script to pptx_write. Prefer inline (script) for small decks — pass path, script, optional assets_dir, and optional data. For large decks (many slides), writing the whole script inline bloats the tool call; instead write it to a .mjs file with the write tool (first call creates it, subsequent calls use append=true to add chunks), then pass path + script_path.
  5. 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_analyze when the user provides a .pptx template or wants to preserve existing layouts, charts, images, tables, or SmartArt.
  • Build a template_fill_pptx_plan.v1 plan from the returned slide IDs and object IDs, then call pptx_template_fill.
  • For SmartArt, use smartarts[*].smartart_id and smartarts[*].nodes[*].node_id in smartart_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 the pptx instance and the ctx argument of build(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 no node_modules to resolve against.
  • Inline (preferred): put the complete JavaScript module in the script argument. 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 .mjs file — first call writes it, subsequent calls pass append=true to append chunks — then pass its path as script_path. Either way the build function signature is the same: default async function build(pptx, ctx).
  • If revising a deck, update the script (inline script or the .mjs file) and call pptx_write again.

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 under assets_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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить powerpoint с