slides by openai/skills
npx skills add https://github.com/openai/skills --skill slides使用 PptxGenJS 进行幻灯片创作。除非任务仅为检查,否则不要使用 python-pptx 生成演示文稿;在 JavaScript 中保持可编辑的输出,并同时交付 .pptx 和源 .js 文件。
工作保存在任务本地目录中。仅在渲染和验证通过后,将最终产物复制到请求的目标位置。
assets/pptxgenjs_helpers/:将此文件夹复制到演示文稿工作区,并在本地导入,而不是重新实现辅助逻辑。scripts/render_slides.py:将 .pptx 或 .pdf 栅格化为每页 PNG 图片。scripts/slides_test.py:检测超出幻灯片画布的内容。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
scripts/create_montage.pyscripts/detect_font.py:报告 LibreOffice 解析时缺失或被替换的字体。scripts/ensure_raster_image.py:将 SVG/EMF/HEIC/PDF 类资源转换为 PNG 以便快速检查。references/pptxgenjs-helpers.md:仅在需要 API 详情或依赖项说明时加载。LAYOUT_WIDE)。assets/pptxgenjs_helpers/ 复制到工作目录,并从那里导入辅助工具。render_slides.py 渲染结果,查看 PNG 图片,并在交付前修复布局问题。slides_test.py 进行溢出检查。.pptx 文件、创作用的 .js 文件以及重新构建演示文稿所需的任何生成资源。autoFontSize、calcTextBox 及相关辅助工具来调整文本框大小;不要使用 PptxGenJS 的 fit 或 autoFit。• 字符。imageSizingCrop 或 imageSizingContain 代替 PptxGenJS 内置的图像大小调整。latexToSvgDataUri(),对语法高亮的代码块使用 codeToRuns()。warnIfSlideHasOverlaps(slide, pptx) 和 warnIfSlideElementsOutOfBounds(slide, pptx)。ensure_raster_image.py 从矢量或特殊图像格式生成调试用的 PNG 图片。以下示例假设您已将所需脚本复制到工作目录。如果没有,请调用相对于此技能文件夹的相同脚本路径。
# 将幻灯片渲染为 PNG 以供审阅
python3 scripts/render_slides.py deck.pptx --output_dir rendered
# 构建拼图以便快速浏览
python3 scripts/create_montage.py --input_dir rendered --output_file montage.png
# 检查是否超出原始幻灯片画布
python3 scripts/slides_test.py deck.pptx
# 检测缺失或被替换的字体
python3 scripts/detect_font.py deck.pptx --json
如果需要辅助工具的 API 摘要或依赖项详细信息,请加载 references/pptxgenjs-helpers.md。
每周安装次数
251
仓库
GitHub 星标数
15.3K
首次出现
2026年3月5日
安全审计
安装于
codex232
opencode222
gemini-cli221
cursor220
github-copilot220
kimi-cli219
Use PptxGenJS for slide authoring. Do not use python-pptx for deck generation unless the task is inspection-only; keep editable output in JavaScript and deliver both the .pptx and the source .js.
Keep work in a task-local directory. Only copy final artifacts to the requested destination after rendering and validation pass.
assets/pptxgenjs_helpers/: Copy this folder into the deck workspace and import it locally instead of reimplementing helper logic.scripts/render_slides.py: Rasterize a .pptx or .pdf to per-slide PNGs.scripts/slides_test.py: Detect content that overflows the slide canvas.scripts/create_montage.py: Build a contact-sheet style montage of rendered slides.scripts/detect_font.py: Report missing or substituted fonts as LibreOffice resolves them.scripts/ensure_raster_image.py: Convert SVG/EMF/HEIC/PDF-like assets into PNGs for quick inspection.references/pptxgenjs-helpers.md: Load only when you need API details or dependency notes.LAYOUT_WIDE) unless the source material clearly uses another aspect ratio.assets/pptxgenjs_helpers/ into the working directory and import the helpers from there.render_slides.py, review the PNGs, and fix layout issues before delivery.slides_test.py for overflow checks when slide edges are tight or the deck is dense..pptx, the authoring .js, and any generated assets that are required to rebuild the deck.autoFontSize, calcTextBox, and related helpers to size text boxes; do not use PptxGenJS fit or autoFit.• characters.imageSizingCrop or imageSizingContain instead of PptxGenJS built-in image sizing.latexToSvgDataUri() for equations and codeToRuns() for syntax-highlighted code blocks.ensure_raster_image.py to generate debug PNGs from vector or odd image formats before placing them.Examples below assume you copied the needed scripts into the working directory. If not, invoke the same script paths relative to this skill folder.
# Render slides to PNGs for review
python3 scripts/render_slides.py deck.pptx --output_dir rendered
# Build a montage for quick scanning
python3 scripts/create_montage.py --input_dir rendered --output_file montage.png
# Check for overflow beyond the original slide canvas
python3 scripts/slides_test.py deck.pptx
# Detect missing or substituted fonts
python3 scripts/detect_font.py deck.pptx --json
Load references/pptxgenjs-helpers.md if you need the helper API summary or dependency details.
Weekly Installs
251
Repository
GitHub Stars
15.3K
First Seen
Mar 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex232
opencode222
gemini-cli221
cursor220
github-copilot220
kimi-cli219
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
27,400 周安装
warnIfSlideHasOverlaps(slide, pptx) and warnIfSlideElementsOutOfBounds(slide, pptx) in the submitted JavaScript whenever you generate or substantially edit slides.