← Back to Skills Marketplace
sopaco

Markdown To Slides

by Sopaco · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
75
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install md2slides
Description
将 Markdown 格式的演讲/汇报文档转化为可编辑的 PPTX 演示文稿。 输出标准 .pptx 文件,可在 PowerPoint / Keynote / WPS 中打开编辑。
README (SKILL.md)

md-to-slides

做什么

把用户的 Markdown 演讲/汇报文档转化为可编辑的 .pptx 演示文稿。

怎么做

Step 0:确认输入

向用户确认要转换的 Markdown 文件路径。

Step 1:扫描结构

读取文件,提取 frontmatter 元数据和所有章节标题,报告给用户确认。

Step 2:逐章解析

对每个章节生成 Slide 数组。超长章节(>8000 tokens)需要按子标题拆分。主 Agent 只读标题行,正文由子 Agent 解析。

子 Agent 解析 Prompt 模板见 references/analysis-prompt.md

Step 3:合并确认

汇总所有 Slide,检查密度和连贯性,向用户报告分页方案。

Step 4:生成 Schema

将完整的 PresentationSchema JSON 写入当前工作目录的临时文件。

Step 5:生成 PPTX

调用生成脚本:

node scripts/generate-pptx.cjs \x3Cschema.json路径> \x3C输出路径>

生成后提取文本核验内容完整性。

兜底

  • 子 Agent 失败 → 重试一次,仍失败则标记该章需人工处理
  • Mermaid 图表 → 输出占位 slide,提示手动插入
  • 不篡改用户原文内容
Usage Guidance
This review is inconclusive: the sandbox failed before reading metadata.json or artifact files, so treat this as a low-confidence result and re-run the scan in an environment where artifacts can be inspected.
Capability Assessment
Purpose & Capability
Unable to assess purpose-to-capability coherence because file inspection failed before metadata or artifacts could be read.
Instruction Scope
Unable to assess instruction scope because the provided artifact contents were not accessible through the shell sandbox.
Install Mechanism
Unable to assess installation behavior because install specs and manifests could not be inspected.
Credentials
Unable to assess environment access proportionality because artifact files could not be read.
Persistence & Privilege
Unable to assess persistence or privilege behavior because no artifact evidence was available.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install md2slides
  3. After installation, invoke the skill by name or use /md2slides
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Removed the sample file scripts/presentation-schema.json. - No changes to features or functionality.
v1.0.0
Initial release with new architecture and workflow. - Replaces Python script with a Node.js-based processing pipeline. - Adds multi-step conversion process: input confirmation, document structure scan, section parsing, schema generation, and PPTX export. - Introduces support for PresentationSchema JSON format and dedicated script for PPTX generation. - Provides fallback handling for errors and unsupported content like Mermaid diagrams. - Updated triggers and metadata for easier activation.
Metadata
Slug md2slides
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Markdown To Slides?

将 Markdown 格式的演讲/汇报文档转化为可编辑的 PPTX 演示文稿。 输出标准 .pptx 文件,可在 PowerPoint / Keynote / WPS 中打开编辑。 It is an AI Agent Skill for Claude Code / OpenClaw, with 75 downloads so far.

How do I install Markdown To Slides?

Run "/install md2slides" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Markdown To Slides free?

Yes, Markdown To Slides is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Markdown To Slides support?

Markdown To Slides is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Markdown To Slides?

It is built and maintained by Sopaco (@sopaco); the current version is v1.0.1.

💬 Comments