ppt-skill

GitHub

用于生成PPT模板、完整演示文稿及导出PDF或图片格式的技能。支持从创意、大纲或文档构建幻灯片,处理图像生成配置,并按需输出交付物。

skill/ppt-skill/SKILL.md CodingFeng101/CanvasAnvil

触发场景

需要PPT模板背景 根据创意或大纲生成完整演示文稿 将演示文稿导出为PDF或图片格式

安装

npx skills add CodingFeng101/CanvasAnvil --skill ppt-skill -g -y
更多选项

非标准路径

npx skills add https://github.com/CodingFeng101/CanvasAnvil/tree/main/skill/ppt-skill -g -y

不安装直接使用

npx skills use CodingFeng101/CanvasAnvil@ppt-skill

指定 Agent (Claude Code)

npx skills add CodingFeng101/CanvasAnvil --skill ppt-skill -a claude-code -g -y

安装 repo 全部 skill

npx skills add CodingFeng101/CanvasAnvil --all -g -y

预览 repo 内 skill

npx skills add CodingFeng101/CanvasAnvil --list

SKILL.md

Frontmatter
{
    "name": "ppt-skill",
    "description": "Generate PPT templates, full presentation slide sets, and export deliverables. Use for template-only requests, full presentation generation from idea or outline, and PPT delivery in PDF or image-based PPT form."
}

PPT Skill

Trigger

Use when the task requires:

  • one or more PPT template backgrounds
  • a full presentation from idea, outline, or source documents
  • slide-image-based presentation rendering
  • export delivery as pdf or image_ppt

First-Use Reminder

On the first use of this skill in a conversation, remind the user that image generation reads config/image-provider.json in this skill folder, and that it must be filled in before any image can be produced. If it does not exist, they copy config/image-provider.example.json to it; the filled file is git-ignored and must not be committed.

Order

  1. Classify the task.
  2. Collect missing required fields for that task type.
  3. Read the required references.
  4. Produce the planning or generation prompt.
  5. Generate template backgrounds or slide images.
  6. Route into the requested export mode.
  7. Export or bundle artifacts when requested.

Task Types

  • template_only
  • deck_from_idea
  • deck_from_outline
  • deck_from_documents
  • deck_edit_routing
  • export_only

Required References

  • references/task-types.md
  • references/template-contract.md
  • references/plan-schema.md
  • references/layout-hints.md
  • references/image-rules.md
  • references/export-modes.md
  • references/image-provider-config.md

Read only the references needed for the current task type.

Plan Contract

For full-presentation generation, every slide must include:

  • id
  • title
  • content
  • description
  • layout
  • note

description is for visual generation, not for audience-facing copy.

Template Contract

  • Template generation creates text-free 16:9 background images.
  • Templates are style references, not completed slides.
  • Template output may include one or more variants when the user asks for options.

Export Contract

Supported delivery modes:

  • pdf
  • image_ppt

If the user does not specify an export mode, recommend pdf and image_ppt first.

Image Contract

  • Image generation uses config/image-provider.json.
  • Template generation and slide generation use the same image config unless the user explicitly defines a split configuration.
  • Require apiKey and model.
  • Do not ask the user to paste API keys into chat.
  • If image generation is requested and config is missing or incomplete, stop and tell the user to fill the config file.

Prompts

  • prompts/template.md
  • prompts/plan.md
  • prompts/slide-image.md
  • prompts/edit-router.md

Scripts

  • scripts/generate-ppt-template-image.mjs
  • scripts/generate-ppt-deck-images.mjs
  • scripts/export-pdf.mjs
  • scripts/build-image-ppt.mjs

If the user specifies an output directory or file path, write artifacts there.

If the user does not specify an output location, create a new output folder automatically and write all artifacts there.

Do not write generated artifacts into the skill folder.

Deliverables

Preferred:

  • pdf
  • pptx
  • metadata JSON

Optional on request:

  • slide PNG files
  • prompt text

版本历史

  • 27f1aea 当前 2026-11-03 09:19

    修复脚本读取图像配置文件的路径问题,确保密钥不提交至Git,添加Playwright依赖以支持CAD导出,并优化路径处理。

  • 3eacea1 2026-09-09 14:52

    重构技能:移除多厂商镜像层,仅保留OpenAI兼容传输,简化配置并修复无效供应商列表。

  • d33dc57 2026-08-20 07:35

同 Skill 集合

skill/cad-skill/SKILL.md
skill/diagram-skill/SKILL.md
skill/flow-skill/SKILL.md
skill/infographic-skill/SKILL.md
skill/poster-skill/SKILL.md
skill/product-skill/SKILL.md

元信息

文件数
0
版本
27f1aea
Hash
9f31c389
收录时间
2026-08-20 07:35

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 03:03
浙ICP备14020137号-1