← 返回 Skills 市场
bruc3van

bruce-doc-converter-skill

作者 Bruce Van · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
35
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bruce-doc-converter
功能描述
双向文档转换工具,将 Word (.docx)、Excel (.xlsx)、PowerPoint (.pptx) 和 PDF (.pdf) 转换为 AI 友好的 Markdown,或将 Markdown (.md) 转换为 Word (.docx)。当用户请求文档转换、导出、读取、分析 Office/PDF/Ma...
使用说明 (SKILL.md)

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 "\x3Cfile>"

For batch conversion:

bdc batch "\x3Cdirectory>"

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

Error Cause Fix
SOCKS support / proxy connection error all_proxy or http_proxy env vars set Run unset all_proxy http_proxy https_proxy (macOS/Linux) or set all_proxy= (Windows CMD), then retry
command not found: pipx pipx not installed Try uv tool install or pip install --user instead
externally-managed-environment Python 3.11+ system Python forbids global pip Use pipx, uv tool install, or the venv fallback
Permission denied No write access to install location Add --user flag, or use venv fallback
bdc: command not found after venv install venv bin not in PATH Use full path: .venv/bin/bdc (macOS/Linux) or .venv\Scripts\bdc (Windows)

Supported formats

Input Output
.docx Markdown
.xlsx Markdown
.pptx Markdown
.pdf Markdown
.md Word .docx
安全使用建议
Review before installing. The converter behavior itself matches the stated purpose, but you should trust the external `bruce-doc-converter` package before allowing installation. Ask the agent to confirm before running any follow-up `next_command`, and only process files or directories you intentionally want converted.
功能分析
Type: OpenClaw Skill Name: bruce-doc-converter Version: 1.0.0 The bruce-doc-converter skill is a utility designed to convert between Office documents (Word, Excel, PowerPoint), PDFs, and Markdown. The SKILL.md file provides clear, task-aligned instructions for the agent to install the 'bruce-doc-converter' package using standard Python tools (pip, pipx, uv) and execute conversion commands. While it involves shell execution and network access for installation, these are necessary for its stated purpose, and the documentation includes helpful troubleshooting for common environment issues without any evidence of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
The advertised purpose is document conversion and analysis, and the documented commands are aligned with converting Office/PDF/Markdown files.
Instruction Scope
The error-handling instructions tell the agent to run a dynamic next_command returned by the CLI without restricting what command is allowed or requiring user confirmation.
Install Mechanism
The skill has no bundled code or install spec, but instructs runtime installation of an external package via pipx/uv/pip and Node dependency setup; this is purpose-aligned but not fully reviewable from the provided artifacts.
Credentials
Local command execution and local file conversion are expected for this converter, including batch directory conversion, but users should keep file and directory scope narrow.
Persistence & Privilege
The artifacts do not show credentials, background persistence, privilege escalation, or autonomous activity beyond installation and conversion commands.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bruce-doc-converter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bruce-doc-converter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of bruce-doc-converter. - Converts Word (.docx), Excel (.xlsx), PowerPoint (.pptx), and PDF (.pdf) files to AI-friendly Markdown. - Converts Markdown (.md) to Word (.docx). - Supports batch processing and direct analysis of Office/PDF document content. - Includes installation, usage, output handling, and troubleshooting instructions.
元数据
Slug bruce-doc-converter
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

bruce-doc-converter-skill 是什么?

双向文档转换工具,将 Word (.docx)、Excel (.xlsx)、PowerPoint (.pptx) 和 PDF (.pdf) 转换为 AI 友好的 Markdown,或将 Markdown (.md) 转换为 Word (.docx)。当用户请求文档转换、导出、读取、分析 Office/PDF/Ma... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。

如何安装 bruce-doc-converter-skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bruce-doc-converter」即可一键安装,无需额外配置。

bruce-doc-converter-skill 是免费的吗?

是的,bruce-doc-converter-skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

bruce-doc-converter-skill 支持哪些平台?

bruce-doc-converter-skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 bruce-doc-converter-skill?

由 Bruce Van(@bruc3van)开发并维护,当前版本 v1.0.0。

💬 留言讨论