mcpField
P
powerpoint

powerpoint

github.com/igorwarzocha文档处理1226.0k 次安装38 周前更新
代码仓库

关于 powerpoint

用于创建和编辑 PowerPoint 演示文稿的技能,采用 HTML 生成幻灯片,并提供布局审查、幻灯片重排和文本替换脚本。适用于需要精确定位和视觉检查的工作流。

主要功能

  1. 01通过 HTML 生成 PowerPoint
  2. 02将渐变和图标栅格化为 PNG
  3. 03基于缩略图审查布局
  4. 04复制并重排幻灯片
  5. 05根据 JSON 替换文本
  6. 06检查文本截断与重叠

适用场景

  1. 01制作布局精确的幻灯片
  2. 02审查现有演示文稿布局
  3. 03重排或复制模板幻灯片
  4. 04根据 JSON 清单填充幻灯片

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/igorwarzocha/opencode-workflows --skill powerpoint

安装后在 Claude Code 中输入/powerpoint确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/
html2pptx.md
ooxml.md
references/ooxml/schemas/ecma/fouth-edition/
opc-contentTypes.xsd
opc-coreProperties.xsd
opc-digSig.xsd
opc-relationships.xsd
references/ooxml/schemas/ISO-IEC29500-4_2016/
dml-chart.xsd
dml-chartDrawing.xsd
dml-diagram.xsd
dml-lockedCanvas.xsd
dml-main.xsd
dml-picture.xsd
dml-spreadsheetDrawing.xsd
dml-wordprocessingDrawing.xsd
pml.xsd
shared-additionalCharacteristics.xsd
shared-bibliography.xsd
shared-commonSimpleTypes.xsd
shared-customXmlDataProperties.xsd
shared-customXmlSchemaProperties.xsd
shared-documentPropertiesCustom.xsd
shared-documentPropertiesExtended.xsd
shared-documentPropertiesVariantTypes.xsd
shared-math.xsd
shared-relationshipReference.xsd
sml.xsd
vml-main.xsd
vml-officeDrawing.xsd
vml-presentationDrawing.xsd
vml-spreadsheetDrawing.xsd

详细介绍

<high_fidelity_creation> 精确定位版式的首选方法:

  1. HTML:创建幻灯片(720pt x 405pt)。文本必须放在 <p>、<h1>-<h6> 或 <ul> 中。
  2. 视觉元素:必须先使用 Sharp 将渐变/图标栅格化为 PNG。参考:references/html2pptx.md。
  3. 执行:运行 html2pptx.js 生成演示文稿。 </high_fidelity_creation>

<template_structure> 编辑演示文稿或映射模板时:

  • 审查:生成缩略图网格(scripts/thumbnail.py)以分析版式。
  • 复制:使用 scripts/rearrange.py 复制并重新排列幻灯片。
  • 文本填充:使用 scripts/replace.py 和 JSON 清单填充内容。 </template_structure>

<design_quality>

  • 字体:只能使用 Web 安全字体(Arial、Helvetica、Georgia)。
  • 颜色:PptxGenJS 十六进制颜色代码中不得使用 # 前缀(会导致损坏)。
  • 版式:应优先使用双栏或全屏布局。不得将图表堆叠在文本下方。
  • 验证:必须使用 --cols 4 生成最终缩略图网格,检查文本是否被截断或重叠。 </design_quality>

</powerpoint_professional_suite>

评论

支持 Markdown