Token导航 LogoToken导航TokenDH.com
运维执行命令clawhub未标认证来源可访问clear审计提醒

convert-document-to-markdownconvert document TO Markdown 控制

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

3,288

周安装

133

GitHub Stars

公开资料未说明

下载量

1,032
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convert-document-to-markdown(convert document TO Markdown 控制)
来源仓库:https://github.com/kadbbz/convert-document-to-markdown
安装命令:
openclaw skills install convert-document-to-markdown
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install convert-document-to-markdown

简介

用于将本地文件转换为 Markdown 格式。

  • 适合在 OpenClaw 中需要把零散信息整理成结构清晰文档时使用。
  • 必须通过 Docker 运行,依赖预先构建的阿里云镜像。
  • 可结合来源仓库和安装命令继续核验具体用法。convert-document-to-markdown 属于运维类 Skill,可作为该场景下的辅助能力补充。
  • 安装前建议确认权限范围和是否会触发文件读写操作。

SKILL.md

name
convert_document_to_markdown
description
Convert supported local files into Markdown by running this repository's Dockerized file-only CLI. This skill must run through Docker with a prebuilt Aliyun CR image selected by host architecture and fixed version, not through a local Python runtime.
metadata
{"openclaw":{"homepage":"https://clawhub.ai","skillKey":"convert_document_to_markdown","primaryEnv":"VL_API_KEY","requires":{"bins":["docker"]}}}

Convert Document To Markdown

Use this skill when a user wants a supported local file converted into Markdown for later processing.

What this skill does

  • Converts supported local files into Markdown:

.pdf, .docx, .pptx, .xlsx, .jpg, .jpeg, .png, .gif, .bmp, .txt, .json, .xml, .md

  • Image handling modes are file-type dependent:

ocr / vl / none for .docx, .pptx, .xlsx, and image files; ocr / vl / vl-page / none for .pdf

  • Only runs through Docker. Do not use local Python execution as an operational path.
  • Uses a prebuilt Aliyun CR image with fixed version 0.0.1:

convert-document-to-markdown-arm64:0.0.1 on ARM64 hosts, convert-document-to-markdown-x64:0.0.1 on x64 hosts

  • Returns structured JSON by default so later tool calls can consume markdown, logs, and meta.
  • Reads one-time VL configuration from OpenClaw skill config or the repository .env file, then forwards it into the container automatically.
  • Only exposes the file command. URL, health, and version commands are intentionally removed to keep startup lean.
  • Do not use latest, do not build a fallback image at runtime, and do not treat .doc, .ppt, .xls, audio files, or unlisted image formats as supported inputs.

Required workflow

  1. By default the scripts use crpi-4auaoyyj6r36p6lb.cn-hangzhou.personal.cr.aliyuncs.com/huozige_lab.
  2. Let the wrapper script resolve the host architecture and choose convert-document-to-markdown-arm64:0.0.1 or convert-document-to-markdown-x64:0.0.1.
  3. If needed, override with IMAGE_REGISTRY or IMAGE_NAME.
  4. For a local file, run:

scripts/run_docker_cli.sh file <absolute-or-relative-path> --format json

  1. Parse the JSON result.
  2. If success is false, surface error.message and relevant logs.
  3. If success is true, use markdown as the canonical output for downstream work.

One-time VL configuration

This skill is designed so the user does not need to re-enter Vision API settings on each run.

Preferred OpenClaw configuration in ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "convert_document_to_markdown": {
        "enabled": true,
        "apiKey": "sk-xxx",
        "env": {
          "VL_BASE_URL": "https://api.openai.com/v1",
          "VL_MODEL": "gpt-4.1-mini"
        }
      }
    }
  }
}

This works because:

  • skillKey is convert_document_to_markdown
  • primaryEnv is VL_API_KEY, so apiKey maps to VL_API_KEY
  • env can hold VL_BASE_URL and VL_MODEL

Repository-local runtime configuration:

  • copy .env.example to .env
  • fill VL_BASE_URL, VL_API_KEY, and VL_MODEL
  • by default the scripts use crpi-4auaoyyj6r36p6lb.cn-hangzhou.personal.cr.aliyuncs.com/huozige_lab
  • optionally override with IMAGE_REGISTRY or IMAGE_NAME
  • use scripts/run_docker_cli.sh, which loads .env, forwards any host VL_* variables into docker run, and pulls the correct fixed-version image if missing

Command patterns

Local file:

scripts/run_docker_cli.sh file ./notes.pdf --image-process-model ocr --format json

Parameters

  • --image-process-model ocr

Default mode. Use Tesseract OCR for images.

  • --image-process-model vl

Use a Vision API. Only choose this when the environment provides VL_API_KEY and related variables.

  • --image-process-model none

Skip image recognition for speed.

  • --image-process-model vl-page

PDF only. Do not use this mode for Office documents or image files.

  • --format json|markdown

Use json unless the user explicitly wants raw Markdown on stdout.

  • --output <path>

Save the Markdown to a file. Prefer this only when you invoke docker run directly with a writable host mount.

  • --log-file <path>

Save detailed logs to a file. Prefer this only when you invoke docker run directly with a writable host mount.

Operational notes

  • For very large local files, stay with the Docker CLI path; do not wrap the file content into base64 or a temporary HTTP service.
  • The skill is Docker-only. Do not instruct users to run uv, python, or any other local runtime path for production use.
  • The wrapper scripts choose the image by host architecture. Override with IMAGE_ARCH only when you have a concrete reason.
  • Prefer IMAGE_REGISTRY plus the fixed version 0.0.1; only use IMAGE_NAME when you need to pass the full image reference explicitly.
  • When the user asks for VL or VL-page, first check whether VL_BASE_URL, VL_API_KEY, and VL_MODEL are already configured via OpenClaw skill config or .env.
  • If the user only needs extracted Markdown and not the raw JSON wrapper, read the JSON and return the markdown field.
  • If the user provides an unsupported extension such as .doc, .ppt, .xls, .wav, .mp3, .m4a, or .mp4, say the current skill does not reliably support it.

Safety notes

  • Treat file paths as untrusted input. Quote shell arguments correctly.
  • Do not claim success unless the command returns success: true.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.03%
按下载量换算970

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install convert-document-to-markdown 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills