# Send ebook-to-md to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ebook-to-md",
    "name": "ebook-to-md",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/whille/ebook-to-md",
    "canonicalUrl": "https://clawhub.ai/whille/ebook-to-md",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/ebook-to-md",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ebook-to-md",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "__init__.py",
      "fixtures/README.md",
      "fixtures/create_fixtures.py",
      "fixtures/expected/test_minimal.md",
      "fixtures/expected/test_ocr.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ebook-to-md"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ebook-to-md",
    "downloadUrl": "https://openagent3.xyz/downloads/ebook-to-md",
    "agentUrl": "https://openagent3.xyz/skills/ebook-to-md/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ebook-to-md/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ebook-to-md/agent.md"
  }
}
```
## Documentation

### ebook_to_md Skill

将 PDF、图片、MOBI、EPUB 转为 Markdown。仅使用百度 OCR。

### 输入格式

PDF：扫描版/图像型 PDF
PNG/JPEG：单张图片
MOBI/EPUB：需安装 Calibre，先转 PDF 再处理

图片 OCR 输出会自动添加 Markdown 分段：首行若为短标题则转为 ##，对话段落前插入空行。

### 输出格式

仅输出 Markdown（.md）。

### 参数

ParameterTypeRequiredDefaultDescriptioninput_pathstringyes-文档路径（pdf/png/jpeg/mobi/epub）或 base64 图片output_pathstringno-输出文件路径ocr_backendstringno"baidu"保留参数，仅支持百度inline_imagesboolnotrue图片是否 base64 内联

### 快速开始

# PDF 转 Markdown（百度 OCR）
python scripts/ebook_to_md.py --input_path=./scanned.pdf
# 图片转 Markdown
python scripts/ebook_to_md.py --input_path=./screenshot.png
# 指定输出路径
python scripts/ebook_to_md.py --input_path=./report.pdf --output_path=./report.md

### Python

pip install requests

### 系统

Calibre（mobi/epub）：brew install calibre
百度 OCR：设置 BAIDU_OCR_API_KEY、BAIDU_OCR_SECRET_KEY

### 百度 OCR（默认）

from skills.ebook_to_md import main
main(input_path='./report.pdf', output_path='./report.md')
main(input_path='./image.png')  # 图片识别

### MOBI/EPUB（需 Calibre）

main(input_path='./book.epub', output_path='./book.md')
main(input_path='./book.mobi', output_path='./book.md')

### 返回格式

成功：返回字符串，含预览；若指定 output_path 则写入文件。
失败：返回 "错误: ..."

### 相关

pdf_to_markdown：原生文本 PDF 转换（docling）
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: whille
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/ebook-to-md)
- [Send to Agent page](https://openagent3.xyz/skills/ebook-to-md/agent)
- [JSON manifest](https://openagent3.xyz/skills/ebook-to-md/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/ebook-to-md/agent.md)
- [Download page](https://openagent3.xyz/downloads/ebook-to-md)