Xpersona
D

Doc2slides

CLAWHUB · Unverified

One-click PDF/Word/Markdown to designer-grade PPT. AI auto-layout + 18 slide types + built-in charts. Local-first, free. Use when: user wants to create slide... Skill: Doc2slides Owner: lifei68801 Summary: One-click PDF/Word/Markdown to designer-grade PPT. AI auto-layout + 18 slide types + built-in charts. Local-first, free. Use when: user wants to create slide... Tags: conversion:3.0.0, document:2.7.0, latest:3.8.2, local:1.0.1, pdf:3.0.0, ppt:3.0.0, slides:3.0.0 Version history: v3.8.2 | 2026-04-05T02:49:59.260Z | auto - Updated description and feature tables to clarify de

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17aqaaq83dwh8634acxtaty8x83hxsq:doc2slides
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lifei68801-doc2slides/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

137,647 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: doc2slides
version: 3.8.2
description: "One-click PDF/Word/Markdown to designer-grade PPT. AI auto-layout + 18 slide types + built-in charts. Local-first, free. Use when: user wants to create slides from a document or convert content to PPT."
license: MIT-0
author: lifei68801
metadata:
  openclaw:
    requires:
      bins: ["python3", "pip3"]
      env:
        optional:
          - OPENAI_API_KEY
          - ZHIPU_API_KEY
          - DEEPSEEK_API_KEY
    permissions:
      - "file:read"
      - "file:write"
    behavior:
      modifiesLocalFiles: true
      network: optional
      telemetry: none
      credentials: optional
---

# Doc2Slides

> 把 PDF、Word、Markdown 一键变成设计师级 PPT。10 秒出稿,无需设计能力。

📄 论文答辩 / 📊 周报月报 / 📋 技术文档培训 / 💡 创业路演

```bash
# Install & setup
clawhub install doc2slides
bash ~/.openclaw/workspace/skills/doc2slides/setup.sh

# Go
python3 workflow.py --input report.pdf --output report.pptx
```

Done. 一行命令,PPT 生成在本地。

## Why doc2slides?

| | doc2slides | 模板方案 | AI 在线服务 |
|--|-----------|---------|-----------|
| 排版 | 18 种布局 AI 自动匹配 | 固定 2-3 种 | 有限 |
| 图表 | 内置 SVG 饼图/柱状/进度环 | 手动插入 | 依赖模板 |
| 隐私 | 默认本地,可选 LLM | 本地 | 上传云端 |
| 费用 | 免费 | 免费 | 按次收费 |
| 画质 | 3x 高清 (3840×2160) | 标清 | 取决于套餐 |
| AI | GPT-4o / 智谱 / DeepSeek 可选 | 无 | 固定模型 |

## Use Cases

- **论文答辩** — 把论文 PDF 变成答辩 PPT,自动提炼要点
- **周报月报** — Markdown 周报一键幻灯片,数据自动配图表
- **技术分享** — 技术文档转培训材料,代码块自动排版
- **创业路演** — 商业计划书变路演 PPT,金字塔/矩阵布局
- **读书笔记** — 长文拆解成结构化幻灯片

## Agent Trigger

User says any of → activate:

- "把这个文档做成PPT" / "做个演示文稿"
- "Convert this PDF to slides"
- "Generate a presentation from..."

**Workflow:**

1. First time? `bash setup.sh --verify`
2. Missing deps? tell user `bash setup.sh`
3. Ask: "有特殊要求吗?页数、风格、重点?没有我按默认来。"
4. Locate input (path or URL)
5. Generate:
   ```bash
   cd ~/.openclaw/workspace/skills/doc2slides/scripts
   python3 workflow.py --input <file> --output <file.pptx> [options]
   ```
6. Verify output, send to user

## CLI Options

| Flag | Example |
|------|---------|
| `--input` | Required. PDF / DOCX / MD path |
| `--output` | Required. Output .pptx path |
| `--pages N` | Limit slide count |
| `--instruction "..."` | Custom guidance |
| `--style corporate` | Color: corporate / tech / nature / warm / minimal / dark_purple / finance |
| `--theme AI` | Auto color by topic |
| `--model gpt-4o` | LLM for analysis |
| `--preview` | Also generate PNG screenshots |

```bash
# Example: business style, 8 pages, data focused
python3 workflow.py --input report.pdf --output report.pptx \
  --instruction "商务风格,重点突出数据,控制在8页,每页配图表"
```

## Layouts (18+)

| Category | Layouts |
|----------|---------|
| Data | Dashboard, Big Number, KPI Cards, Chart |
| Structure | Pyramid, Comparison, 2x2 Matrix, Flow |
| Narrative | Timeline, Action Plan, Quote, Full-image |
| Content | Two-column, Three-column, Icon Grid, Vertical List |
| Visual | Progress Ring, Horizontal Bar, Stacked Cards |

Each section of your document gets auto-matched to the best layout.

## Troubleshootin

_meta.json

{
  "ownerId": "kn7erzqn0g9x83twznyfq6jvbn81vmsp",
  "slug": "doc2slides",
  "version": "3.8.2",
  "publishedAt": 1775357399260
}

references/design-principles.md

# 设计原则 - 咨询风格幻灯片

## 核心理念

**McKinsey/BCG 咨询风格** - 专业、简洁、数据驱动

## 配色系统

### 主色调:Navy(专业感)
```css
--navy-900: #0f172a;  /* 标题、重点 */
--navy-800: #1e293b;  /* 次级标题 */
--navy-700: #334155;  /* 三级元素 */
```

### 强调色(语义化)
| 颜色 | 色值 | 用途 |
|------|------|------|
| 🔴 Red | #dc2626 | 警示、关键问题 |
| 🟠 Orange | #ea580c | 警告、高优先级 |
| 🟡 Amber | #d97706 | 注意、中优先级 |
| 🟢 Green | #059669 | 成功、正向结果 |
| 🟡 Gold | #ca8a04 | 高亮、优质 |

### 使用规则
- 每张幻灯片只用一种强调色
- Navy 用于所有标题和 UI 元素
- Red/Orange 仅用于需要关注的信息

## 排版层级

### 三级信息架构

```
┌─────────────────────────────┐
│ 1. Eyebrow (小标签)          │  text-sm, uppercase, slate-400
│ 2. Title (主标题)            │  text-3xl/4xl, font-black
│ 3. Body (正文)               │  text-lg, slate-600
└─────────────────────────────┘
```

### 字体规范
- **中文字体**: Noto Sans SC
- **字重**: 300 (轻), 400 (常规), 700 (粗), 900 (黑)
- **大数字**: text-5xl, font-black, tabular-nums

## 网格系统

### 12 列网格

```html
<div class="grid grid-cols-12 gap-6">
  <div class="col-span-5">左侧内容</div>
  <div class="col-span-7">右侧内容</div>
</div>
```

### 常用布局

| 布局 | 适用 |
|------|------|
| 5:7 | Problem(左文右数)|
| 6:6 | Compare(左右对比)|
| 12 | Solution(横向流程)|
| 2x2 | Matrix(四象限)|

## 数据可视化

### 大数字 + 进度条

```html
<div class="flex items-baseline gap-6">
  <div class="w-24 text-right">
    <span class="text-5xl font-black text-red-600">67</span>
    <span class="text-2xl font-bold text-red-600">%</span>
  </div>
  <div class="flex-1">
    <div class="text-xl font-bold mb-1">指标名称</div>
    <div class="h-3 bg-slate-100 rounded-full overflow-hidden">
      <div class="h-full bg-red-500 rounded-full" style="width: 67%"></div>
    </div>
  </div>
</div>
```

**原则**:
- 数字够大(text-5xl)
- 配进度条增强视觉
- 颜色表示语义(红=问题,绿=好)

## 留白原则

### 意图性留白

```html
<!-- 外边距 -->
<div class="px-16 py-12">

<!-- 卡片内边距 -->
<div class="p-5">

<!-- 元素间距 -->
<div class="space-y-6">
<div class="gap-6">
```

**规则**:
- 不堆砌内容
- 留白 = 高级感
- 每页一个焦点

## 模板选择指南

### Problem(数据驱动)
**适用场景**:
- 市场数据呈现
- 痛点分析
- 现状调查

**特征**:
- 左侧:文字说明
- 右侧:大数字 + 进度条

### Solution(解决方案)
**适用场景**:
- 方法论展示
- 实施步骤
- 行动计划

**特征**:
- 横向 5 步流程
- Navy→Green 渐变
- 底部 3 个效果卡片

### Matrix(战略矩阵)
**适用场景**:
- 优先级分析
- 策略选择
- 四象限定位

**特征**:
- 2x2 网格
- 轴标签有意义
- 优先级徽章

### Compare(对比分析)
**适用场景**:
- 优劣势对比
- Before/After
- Do/Don't

**特征**:
- 左右两栏
- ✓/✗ 图标
- 绿/红配色

### Process(流程图)
**适用场景**:
- 业务流程
- 决策树
- 工作流

**特征**:
- 纵向流程
- 决策点菱形
- 分支标注

## 输出规格

- **分辨率**: 1200 x 675 px
- **格式**: HTML → PNG
- **比例**: 16:9

## 禁忌

❌ 多种强调色混用
❌ 大段文字堆砌
❌ 无意义的图标装饰
❌ 复杂的渐变背景
❌ 花哨的动画效果

## 必须遵守

✅ 单页单焦点
✅ 大数字够醒目
✅ 留白充分
✅ 颜色语义化
✅ 标题简洁有力(≤10字)

skill-card.md

## Description:

Converts PDF, Word, and Markdown documents into designer-grade PowerPoint presentations with AI-assisted layout selection, built-in charts, and local-first defaults.

This skill is ready for commercial/non-commercial use.

## Publisher:

[lifei68801](https://clawhub.ai/user/lifei68801)

### License/Terms of Use:

MIT-0

## Use Case:

External users, developers, and document authors use this skill to turn PDFs, Word files, or Markdown into presentation decks for thesis defenses, status reports, technical training, business pitches, and reading notes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Document contents may be sent to configured AI services when optional LLM providers or custom endpoints are used.

Mitigation: Use true offline mode for confidential documents, or confirm the selected provider and endpoint are approved before enabling API keys.

Risk: Generated HTML is rendered for slide previews and may have weak browser isolation.

Mitigation: Render untrusted or sensitive content in a contained environment and review generated previews before sharing outputs.

Risk: Setup installs Python dependencies into the active environment.

Mitigation: Run setup in an isolated virtual environment or disposable workspace rather than a privileged or shared global Python install.

## Reference(s):

- [Design Principles](references/design-principles.md)
- [ClawHub Skill Page](https://clawhub.ai/lifei68801/skills/doc2slides)

## Skill Output:

**Output Type(s):** [Files, Shell commands, Configuration instructions, Guidance]

**Output Format:** [PPTX files with optional PNG previews, plus Markdown and inline shell commands for setup and execution guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Reads local documents, writes local presentation outputs, and can optionally use configured LLM provider API keys for content analysis.]

## Skill Version(s):

3.8.2 (source: frontmatter and server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Doc2slides and adjacent AI workflows.