Community编程与开发github.com

claude-office-skills/office-to-md

快速将Office文档(如Word、Excel、PowerPoint)转换为Markdown格式。

office-to-md 是什么?

该技能是一个专注于Office文档转Markdown的实用工具,支持将常见的Office格式(包括.docx, .xlsx, .pptx等)转换为结构清晰、易于阅读和编辑的Markdown文件。它非常适合需要将办公文档内容提取到知识库、笔记系统或AI Agent工作流中的开发者。该技能基于Python库实现,可集成到Claude Code等AI Agent平台,自动化处理文档转换任务。工作原理包括解析Office文件的二进制格式,提取文本、表格和基本样式,然后按Markdown语法重新组织输出。用户只需提供Office文件路径,即可获得对应的Markdown内容,无需手动复制粘贴。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/office-to-md

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

office-to-md 是做什么的?

快速将 Office 文档(Word、Excel、PowerPoint 等)转换为 Markdown 格式。

简介

claude-office-skills/office-to-md 是一个智能体技能,用于将 Office 文档自动转换为 Markdown。它帮助开发者从常见办公格式中提取内容,便于集成到知识库、笔记系统或 AI 工作流中。

支持的平台

  • Claude Code
  • Cursor
  • Codex
  • 其他支持 Markdown 的 AI Agent 平台

工作原理

  1. 接收 Office 文件路径(如 report.docx、data.xlsx 或 slides.pptx)。
  2. 使用 Python 库(如 python-docx、openpyxl、python-pptx)解析文件内容。
  3. 提取文本、表格、列表和基本样式信息。
  4. 按 Markdown 语法重组输出,包括标题、段落、代码块、表格等。

使用方法

from office_to_md import convert

# 转换 Word 文档
markdown_content = convert("path/to/document.docx")
print(markdown_content)

或通过命令行:

office-to-md path/to/document.docx > output.md

注意事项

  • 仅支持常见 Office 格式:.docx、.xlsx、.pptx。
  • 复杂布局(如嵌套表格、图像、高级格式)可能无法完美转换。
  • 转换结果以纯文本 Markdown 输出,不含原始文件中的多媒体内容。

环境变量

  • OFFICE_TO_MD_OUTPUT_DIR:指定输出目录(可选)。

许可证

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

相关技能