AgentSkillsCN

powerpoint

负责 PowerPoint(.pptx)的创建、设计与分析。 适用于制作路演演示文稿、状态更新报告,以及通过可视化叙事传递信息。 当需要精准布局定位与严格的设计原则时,可主动启用此功能。 示例: - 用户:“为董事会会议制作一份包含 10 张幻灯片的演示文稿” → 结合设计原则与 html2pptx 工具进行创作; - 用户:“将这份报告转化为演示文稿” → 提取文本内容并映射至相应模板; - 用户:“对这份演示文稿进行版式问题排查” → 生成缩略图网格,便于快速检查与优化。

SKILL.md
--- frontmatter
name: powerpoint
description: |-
  Handle PowerPoint (.pptx) creation, design, and analysis.
  Use for pitch decks, status updates, and visual storytelling.
  Use proactively when precise layout positioning and design principles are needed.
  Examples:
  - user: "Create a 10-slide deck for the board meeting" -> use design principles + html2pptx
  - user: "Convert this report into a presentation" -> extract text and map to template
  - user: "Audit this deck for layout issues" -> generate thumbnail grid for inspection
<instructions> <powerpoint_professional_suite>

<high_fidelity_creation> The preferred method for precise layout positioning:

  1. HTML: Create slides (720pt x 405pt). Text MUST be in <p>, <h1>-<h6>, or <ul>.
  2. Visuals: You MUST rasterize gradients/icons as PNGs using Sharp FIRST. Reference: references/html2pptx.md.
  3. Execution: Run html2pptx.js to generate the presentation. </high_fidelity_creation>

<template_structure> For deck editing or template mapping:

  • Audit: Generate thumbnail grid (scripts/thumbnail.py) to analyze layout.
  • Duplication: Use scripts/rearrange.py to duplicate and reorder slides.
  • Text Injection: Use scripts/replace.py with the JSON inventory to populate content. </template_structure>

<design_quality>

  • Fonts: You MUST use web-safe fonts ONLY (Arial, Helvetica, Georgia).
  • Colors: You MUST NOT use the # prefix in PptxGenJS hex codes (causes corruption).
  • Layout: You SHOULD prefer two-column or full-slide layouts. You MUST NOT stack charts below text.
  • Verification: You MUST generate a final thumbnail grid with --cols 4 to inspect for text cutoff or overlap issues. </design_quality>

</powerpoint_professional_suite> </instructions>