← 返回 Skills 市场
textboy

present-ppt

作者 textboy · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
51
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install present-ppt
功能描述
Convert structured single-slide or small deck HTML files into editable PPTX slides with native text boxes, shapes, chips, arrows, and panels. Use when the us...
使用说明 (SKILL.md)

html-slide-to-pptx

Convert structured HTML slides into editable PPTX by parsing semantic blocks and mapping them to native PowerPoint objects.

This skill is preset-driven.

  • Reuse an existing preset when the HTML belongs to a supported slide family.
  • Add a new preset when the HTML belongs to a new slide family.
  • Do not promise arbitrary HTML/CSS fidelity.

First steps

  1. Read the incoming HTML and identify the slide family.
  2. Place the output PPTX in ./output/\x3Cname>.pptx (create the directory if it doesn't exist).
  3. If you are on a new machine, a fresh agent, or dependency state is unclear, read references/setup.md first.
  4. Run npm run check-env before first use on a new environment.
  5. If dependencies are missing, run npm ci or npm install in the skill directory.

Workflow

  1. Identify whether the HTML belongs to a supported preset.
  2. Parse the HTML into a small intermediate model instead of trying to render arbitrary CSS.
  3. Generate PPTX with native text/shapes using the bundled script.
  4. Run a QA/preflight review on the generated result or the extracted model.
  5. Open or preview the PPTX and inspect spacing, overflow, and arrow direction issues.
  6. Iterate the preset mapping when fidelity is not good enough.

Current support

Preset: v9-architecture

Use for this exact or near-exact structure:

  • Header eyebrow + brand
  • Title
  • Core summary box
  • Left driver panel
  • Center layered architecture stack
  • Right judgement chain panel

Preset: ai-runtime-page

Use for this exact or near-exact structure:

  • Header eyebrow + brand
  • Title + lead box
  • Input chip row
  • Main runtime box with 5 modules
  • Support layer cards
  • Output chip row
  • Base layer + takeaway

Commands

Verify environment

npm run check-env

Convert HTML to PPTX

# Output is saved to ./output/\x3Cname>.pptx by default
node scripts/html_to_pptx.js \x3Cinput.html> ./output/\x3Cname>.pptx [--preset=v9-architecture|ai-runtime-page] [--dump-model \x3Cfile.json>]

Run preflight QA

node scripts/preflight_qa.js \x3Cmodel.json> [--preset=v9-architecture|ai-runtime-page] [--report \x3Creport.json>]

When no preset fits

Do not hard-convert arbitrary HTML.

If the HTML structure is meaningfully different from existing presets, add a new preset by implementing all three layers:

  1. DOM extraction rules
  2. Layout/render mapping rules
  3. QA/preflight rules

Reuse existing presets only when the page family is genuinely close. If the structure differs in information architecture, add a new preset instead of overloading an old one.

Rules

  • Prefer semantic mapping over screenshot embedding.
  • Preserve editability first, then iterate toward fidelity.
  • Treat browser rendering as reference, not as the generation engine.
  • Run QA for every generated result.
  • If setup or portability is the issue, read references/setup.md.
  • If extending support, read references/preset-decision-rules.md first, then references/presets.md, references/preset-template.md, and references/qa-heuristics.md.

References

  • Read references/setup.md when installing or using the skill on a new machine/agent.
  • Read references/preset-decision-rules.md when deciding whether to reuse, extend, or replace a preset.
  • Read references/presets.md when extending to new slide families.
  • Read references/preset-template.md when creating a brand-new preset.
  • Read references/qa-heuristics.md when designing or tuning preflight checks.
  • Read references/roadmap.md when planning higher-fidelity HTML measurement or hybrid background/text-layer approaches.
  • Read references/usage-principles.md for the full 5-rule usage guide.
  • Read README.md for a human-friendly overview, setup summary, and portability notes.
安全使用建议
Before installing, confirm you are comfortable running a local Node/npm project. Use `npm ci` when possible, provide only the HTML files you intend to convert, keep outputs in a project/output folder, and approve any changes the agent proposes to the skill's preset scripts.
功能分析
Type: OpenClaw Skill Name: present-ppt Version: 1.0.0 The skill bundle is a legitimate tool designed to convert structured HTML slide designs into editable PowerPoint (PPTX) files. It utilizes standard libraries like 'cheerio' for DOM parsing and 'pptxgenjs' for document generation. The logic is divided into several preset scripts (e.g., ai_runtime_preset.js, data_strategy_deck_preset.js) that map HTML elements to native PowerPoint shapes and text boxes. There is no evidence of data exfiltration, unauthorized network access, or malicious command execution; the use of execFileSync in html_to_pptx.js is limited to calling internal helper scripts. The instructions in SKILL.md are strictly aligned with the tool's functional purpose.
能力标签
crypto
能力评估
Purpose & Capability
The documented purpose—converting structured HTML slides into editable PPTX files—matches the visible scripts, dependencies, and workflow.
Instruction Scope
The workflow is mostly scoped to user-provided HTML and local PPTX/JSON outputs, but it also tells the agent to add new preset code when no preset fits.
Install Mechanism
There is no registry install spec and the metadata lists no required binaries, while the documentation expects Node.js/npm and npm dependency installation.
Credentials
The local file reads/writes and Node execution are proportionate for converting HTML into PowerPoint files; no credentials or external service calls are shown.
Persistence & Privilege
Generated PPTX/model/report files are expected, and new preset development may persist changes in the skill directory; this is disclosed and purpose-aligned.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install present-ppt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /present-ppt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of present-ppt. - Converts structured HTML slides into editable PPTX files with native PowerPoint text boxes and shapes. - Supports preset-driven workflow with two included presets: `v9-architecture` and `ai-runtime-page`. - Emphasizes semantic mapping and editability over screenshot exports; does not convert arbitrary HTML. - Includes QA/preflight process and detailed instructions for environment setup and extending presets.
元数据
Slug present-ppt
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

present-ppt 是什么?

Convert structured single-slide or small deck HTML files into editable PPTX slides with native text boxes, shapes, chips, arrows, and panels. Use when the us... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。

如何安装 present-ppt?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install present-ppt」即可一键安装,无需额外配置。

present-ppt 是免费的吗?

是的,present-ppt 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

present-ppt 支持哪些平台?

present-ppt 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 present-ppt?

由 textboy(@textboy)开发并维护,当前版本 v1.0.0。

💬 留言讨论