技能图谱SKILLSGROVE
技能图谱/办公文档/aws-samples/sample-spec-driven-presentation-maker/spec-driven-presentation-maker

spec-driven-presentation-maker

安装

$npx skills add https://github.com/aws-samples/sample-spec-driven-presentation-maker --skill spec-driven-presentation-maker
$git clone --depth 1 https://github.com/aws-samples/sample-spec-driven-presentation-maker.git /tmp/sample-spec-driven-presentation-maker && mkdir -p ~/.claude/skills && cp -r /tmp/sample-spec-driven-presentation-maker/sdpm ~/.claude/skills/spec-driven-presentation-maker
请帮我安装这个 Agent Skill:https://github.com/aws-samples/sample-spec-driven-presentation-maker/tree/c3729424259e9654cddfd7b67f5c038c232d3175/sdpm ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MIT-0Generate PowerPoint presentations from JSON. Use when user wants to create slides, proposals, or presentation materials.
以下 SKILL.md 内容转载自 aws-samples/sample-spec-driven-presentation-maker(提交 c372942),依据 MIT-0 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 Amazon.com, Inc. or its affiliates. All Rights Reserved. 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

PPTX Maker

Generate PowerPoint from JSON using corporate templates. This is the Layer 1 (no-MCP) environment adapter: it tells you how to run the engine, not what to do — role and procedure are what the start subcommand prints.

All paths in this file are relative to this SKILL.md. cd to this directory before running commands.

Running the engine

uv run python3 scripts/pptx_builder.py {contract_name} [args]

Subcommand names match the MCP tool names (generate_pptx, read_guides, list_styles, init_deck_workspace, analyze_template, search_assets, list_templates, code_to_slide, diff_pptx, arch_diagram, grid), so workflow text that calls a tool applies verbatim here. --help on any subcommand shows its arguments.

CLI-only operations without a contract name:

Operation Command
Preview slides as PNG scripts/pptx_builder.py preview
Measure text bounding boxes scripts/pptx_builder.py measure
Build output.html for an HTML deck scripts/pptx_builder.py generate_html <deck>
Import an existing PPTX to JSON scripts/pptx_to_json.py
Start a deck translation scripts/translate_extract.py <deck> --target-lang <lang>
Apply filled translations scripts/translate_apply.py <deck>-<lang>

Files, not tool calls

There is no MCP session here — deck files (deck.json, specs/, slides/) are read and written directly with normal file I/O. Everything the workflows describe as a tool call (read_text, write_file, etc.) is just that: open the path, read or write it.

HTML decks (deck.json outputFormat html; composer: start composing --mode html) have no run_python post-processing here — run generate_html <deck> after writing slides. It also checks every slide in a local Chrome / Edge (layout, JS errors) when one is installed; measure <deck> reports those checks and preview <deck> writes PNGs to preview/png/.

Start here

To create slides, run start presentation --workflow-only and follow it (start composing --deck <dir> --slugs ... prints the composer's document and inputs; start style, start translation --deck <dir> --language <lang> likewise).

Without a sub-agent mechanism, one agent plays both roles, one slug group at a time.

查看许可证全文(MIT-0)
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
查看 NOTICE 声明
Spec-Driven Presentation Maker
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.