bruce-doc-converter

双向文档转换工具,将 Word (.docx)、Excel (.xlsx)、PowerPoint (.pptx) 和 PDF (.pdf) 转换为 AI 友好的 Markdown,或将 Markdown (.md) 转换为 Word (.docx)。当用户请求文档转换、导出、读取、分析 Office/PDF/Markdown 文件,或上传这些格式并询问内容时使用。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "bruce-doc-converter" with this command: npx skills add bruc3van/bruce-doc-converter

Bruce Doc Converter

Agent-facing document converter CLI.

When to use

Use this skill when the user asks to:

  • Convert .docx, .xlsx, .pptx, .pdf, or .md files.
  • Read, summarize, inspect, or analyze Office/PDF documents.
  • Export Markdown as Word.
  • Process uploaded document files whose content the agent cannot directly read.

Installation

First, check if bdc is already available:

command -v bdc        # macOS / Linux
where bdc             # Windows

If not installed, try the following in order — stop at the first that succeeds:

# 1. pipx (preferred — isolated, bdc lands in PATH)
pipx install bruce-doc-converter

# 2. uv (if available — fast, isolated, bdc lands in PATH)
uv tool install bruce-doc-converter

# 3. pip --user (most universally available, bdc lands in PATH)
pip install --user bruce-doc-converter   # or: python3 -m pip install --user bruce-doc-converter

# 4. venv fallback (works everywhere, but bdc will NOT be in PATH)
python3 -m venv .venv
.venv/bin/pip install bruce-doc-converter
# Windows: .venv\Scripts\pip install bruce-doc-converter

venv note: If you used the venv fallback, replace every bdc command below with .venv/bin/bdc (macOS/Linux) or .venv\Scripts\bdc (Windows).

Windows note: Use python instead of python3 if the former is not recognized.

Command

Run:

bdc convert "<file>"

For batch conversion:

bdc batch "<directory>"

For Markdown to Word, initialize the Node.js dependencies explicitly before first use:

bdc setup-node

The CLI prints JSON to stdout by default. Progress logs may appear on stderr.

Output handling

Parse stdout as JSON.

On success:

  • success is true.
  • output_path points to the generated file.
  • Office/PDF inputs include markdown_content for direct analysis.
  • .md inputs produce a .docx file and may omit markdown_content.

On failure:

  • success is false.
  • Use error_code, retryable, optional next_command, error, and optional suggestion to decide the next step.
  • Do not pre-check Python dependencies. Run the command first and react to JSON failure.
  • If Markdown to Word returns DEPENDENCY_INSTALL_REQUIRED, run next_command when present, otherwise run bdc setup-node, then retry.
  • bdc setup-node is idempotent and may return already_installed: true with install_action: "skipped".

Troubleshooting installation

ErrorCauseFix
SOCKS support / proxy connection errorall_proxy or http_proxy env vars setRun unset all_proxy http_proxy https_proxy (macOS/Linux) or set all_proxy= (Windows CMD), then retry
command not found: pipxpipx not installedTry uv tool install or pip install --user instead
externally-managed-environmentPython 3.11+ system Python forbids global pipUse pipx, uv tool install, or the venv fallback
Permission deniedNo write access to install locationAdd --user flag, or use venv fallback
bdc: command not found after venv installvenv bin not in PATHUse full path: .venv/bin/bdc (macOS/Linux) or .venv\Scripts\bdc (Windows)

Supported formats

InputOutput
.docxMarkdown
.xlsxMarkdown
.pptxMarkdown
.pdfMarkdown
.mdWord .docx

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Save to Spotify

Create polished audio content and save to Spotify. Produces episodes with TTS narration, a rich timeline (chapters plus in-player images, external links, and...

Registry SourceRecently Updated
General

Fa.Pro - 初创企业融资顾问专业版

融资诊断、资本情商指导、进度指引的AI融资顾问。用于评估融资准备度、提升Capital EQ、跟踪进度。当用户说'我要融资''看看准备好了吗'时调用。触发:融资、诊断、资本情商、Capital EQ、进度、TS、条款。

Registry SourceRecently Updated
General

官方美团红包助手

【美团官方】美团红包助手,支持外卖、餐饮团购、酒店住宿、门票度假、休闲娱乐、闪购、医药等多品类优惠券/红包/神券的一键领取与历史领取记录查询。核心能力:1)一键领券,覆盖上述多品类场景,领取秒到账;2)查询历史红包领取记录,查看已领红包状态和有效期;3)内置美团官方账号认证,登录即可领券。重要说明:如存在多个美团...

Registry SourceRecently Updated
General

OpenClaw Growth Engineer

OpenClaw-first growth autopilot for mobile apps. Correlate analytics, crashes, billing, feedback, store signals, and repo context into proposal drafts that c...

Registry SourceRecently Updated