ppt-skill
GitHub用于生成PPT模板、完整演示文稿及导出PDF或图片格式。支持从想法、大纲或文档生成幻灯片,处理背景渲染与交付。
触发场景
安装
npx skills add CodingFeng101/CanvasAnvil --skill ppt-skill -g -y
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
pdforimage_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, and that it must be filled in before any image can be produced.
Order
- Classify the task.
- Collect missing required fields for that task type.
- Read the required references.
- Produce the planning or generation prompt.
- Generate template backgrounds or slide images.
- Route into the requested export mode.
- Export or bundle artifacts when requested.
Task Types
template_onlydeck_from_ideadeck_from_outlinedeck_from_documentsdeck_edit_routingexport_only
Required References
references/task-types.mdreferences/template-contract.mdreferences/plan-schema.mdreferences/layout-hints.mdreferences/image-rules.mdreferences/export-modes.mdreferences/image-provider-config.md
Read only the references needed for the current task type.
Plan Contract
For full-presentation generation, every slide must include:
idtitlecontentdescriptionlayoutnote
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:
pdfimage_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
apiKeyandmodel. - 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.mdprompts/plan.mdprompts/slide-image.mdprompts/edit-router.md
Scripts
scripts/generate-ppt-template-image.mjsscripts/generate-ppt-deck-images.mjsscripts/export-pdf.mjsscripts/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:
pdfpptx- metadata JSON
Optional on request:
- slide PNG files
- prompt text
版本历史
-
3eacea1
当前 2026-09-09 14:52
重构技能:移除多厂商镜像层,仅保留OpenAI兼容传输,简化配置并修复无效供应商列表。
- d33dc57 2026-08-20 07:35


