{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ebook-to-md",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ebook-to-md",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "__init__.py",
      "fixtures/README.md",
      "fixtures/create_fixtures.py",
      "fixtures/expected/test_minimal.md",
      "fixtures/expected/test_ocr.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ebook-to-md",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ebook_to_md Skill",
        "body": "将 PDF、图片、MOBI、EPUB 转为 Markdown。仅使用百度 OCR。"
      },
      {
        "title": "输入格式",
        "body": "PDF：扫描版/图像型 PDF\nPNG/JPEG：单张图片\nMOBI/EPUB：需安装 Calibre，先转 PDF 再处理\n\n图片 OCR 输出会自动添加 Markdown 分段：首行若为短标题则转为 ##，对话段落前插入空行。"
      },
      {
        "title": "输出格式",
        "body": "仅输出 Markdown（.md）。"
      },
      {
        "title": "参数",
        "body": "ParameterTypeRequiredDefaultDescriptioninput_pathstringyes-文档路径（pdf/png/jpeg/mobi/epub）或 base64 图片output_pathstringno-输出文件路径ocr_backendstringno\"baidu\"保留参数，仅支持百度inline_imagesboolnotrue图片是否 base64 内联"
      },
      {
        "title": "快速开始",
        "body": "# PDF 转 Markdown（百度 OCR）\npython scripts/ebook_to_md.py --input_path=./scanned.pdf\n# 图片转 Markdown\npython scripts/ebook_to_md.py --input_path=./screenshot.png\n# 指定输出路径\npython scripts/ebook_to_md.py --input_path=./report.pdf --output_path=./report.md"
      },
      {
        "title": "Python",
        "body": "pip install requests"
      },
      {
        "title": "系统",
        "body": "Calibre（mobi/epub）：brew install calibre\n百度 OCR：设置 BAIDU_OCR_API_KEY、BAIDU_OCR_SECRET_KEY"
      },
      {
        "title": "百度 OCR（默认）",
        "body": "from skills.ebook_to_md import main\nmain(input_path='./report.pdf', output_path='./report.md')\nmain(input_path='./image.png')  # 图片识别"
      },
      {
        "title": "MOBI/EPUB（需 Calibre）",
        "body": "main(input_path='./book.epub', output_path='./book.md')\nmain(input_path='./book.mobi', output_path='./book.md')"
      },
      {
        "title": "返回格式",
        "body": "成功：返回字符串，含预览；若指定 output_path 则写入文件。\n失败：返回 \"错误: ...\""
      },
      {
        "title": "相关",
        "body": "pdf_to_markdown：原生文本 PDF 转换（docling）"
      }
    ],
    "body": "ebook_to_md Skill\n\n将 PDF、图片、MOBI、EPUB 转为 Markdown。仅使用百度 OCR。\n\n输入格式\nPDF：扫描版/图像型 PDF\nPNG/JPEG：单张图片\nMOBI/EPUB：需安装 Calibre，先转 PDF 再处理\n\n图片 OCR 输出会自动添加 Markdown 分段：首行若为短标题则转为 ##，对话段落前插入空行。\n\n输出格式\n\n仅输出 Markdown（.md）。\n\n参数\nParameter\tType\tRequired\tDefault\tDescription\ninput_path\tstring\tyes\t-\t文档路径（pdf/png/jpeg/mobi/epub）或 base64 图片\noutput_path\tstring\tno\t-\t输出文件路径\nocr_backend\tstring\tno\t\"baidu\"\t保留参数，仅支持百度\ninline_images\tbool\tno\ttrue\t图片是否 base64 内联\n快速开始\n# PDF 转 Markdown（百度 OCR）\npython scripts/ebook_to_md.py --input_path=./scanned.pdf\n# 图片转 Markdown\npython scripts/ebook_to_md.py --input_path=./screenshot.png\n# 指定输出路径\npython scripts/ebook_to_md.py --input_path=./report.pdf --output_path=./report.md\n\n依赖\nPython\npip install requests\n\n系统\nCalibre（mobi/epub）：brew install calibre\n百度 OCR：设置 BAIDU_OCR_API_KEY、BAIDU_OCR_SECRET_KEY\n使用示例\n百度 OCR（默认）\nfrom skills.ebook_to_md import main\nmain(input_path='./report.pdf', output_path='./report.md')\nmain(input_path='./image.png')  # 图片识别\n\nMOBI/EPUB（需 Calibre）\nmain(input_path='./book.epub', output_path='./book.md')\nmain(input_path='./book.mobi', output_path='./book.md')\n\n返回格式\n\n成功：返回字符串，含预览；若指定 output_path 则写入文件。 失败：返回 \"错误: ...\"\n\n相关\npdf_to_markdown：原生文本 PDF 转换（docling）"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/whille/ebook-to-md",
    "publisherUrl": "https://clawhub.ai/whille/ebook-to-md",
    "owner": "whille",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}