跳到正文
TakoAPI
返回技能列表

office-to-md-v2

由 lkyyyy320 提供

Coding Agents & IDEs
814下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Convert office documents (PDF, DOC, DOCX, PPTX) to Markdown format.

描述

该技能的功能

Converts PDF, DOC, DOCX, and PPTX files to Markdown format within OpenClaw. Uses pdf-parse, mammoth, word-extractor, and python-pptx under the hood. Legacy .doc files are supported including Chinese-encoded content.

Handles legacy .doc binary format and Chinese encoding where most converters require .docx or clean UTF-8 input.

何时使用

  • Extract text from a legacy .doc contract for analysis
  • Convert a PDF report to Markdown for LLM processing
  • Batch-convert a folder of mixed office documents
  • Pull slide text from a PPTX presentation
  • Read a DOCX with preserved heading structure

示例工作流

输入

User asks: convert report.doc to Markdown and show a word count

智能体
  1. 1

    Validate the file path exists using read()

  2. 2

    Check the file extension is in the supported list

  3. 3

    Run the skill via exec: node openclaw-skill.js report.doc

  4. 4

    Read the output report.md from disk

  5. 5

    Count words and lines, return a preview of the content

输出

report.md created; word count, line count, and a 200-character preview returned to the user

安装

clawhub install lkyyyy320/office-to-md-v2

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接