Community程式設計與開發github.com

claude-office-skills/office-to-md

將 Office 文件(Word、Excel、PowerPoint)轉換為 Markdown 格式,以便 AI 代理和開發者工作流程順暢使用。

office-to-md 是什麼?

此技能讓 AI 代理(如 Claude Code、Cursor 和 Codex)能夠將 Microsoft Office 檔案(Word、Excel、PowerPoint)轉換為 Markdown 格式。它藉由提取文字、表格及基本格式,同時保留結構化資料(例如標題與清單),簡化了開發者工作流程。使用者可輸出單一 Markdown 檔案或拆分為檔案。這對於支援知識管理、文件自動化及將 Office 內容整合至以文字為基礎的管線相當實用。此技能透過指令列工具進行操作,可處理 .docx、.xlsx 及 .pptx 檔案,並能處理如追蹤修訂或內嵌圖片等進階功能。

相容平台✓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 是做什麼的?

將 Microsoft Office 文件轉換為 Markdown 格式,以便順暢與 AI 代理及開發者工具整合。

概述

此技能會讀取 Office 檔案(.docx、.xlsx、.pptx),並將其結構化內容(文字、表格、投影片等)輸出為 Markdown。常見使用案例包括:

  • 將舊版 Office 文件轉換為 AI 代理可讀取的格式。
  • 從試算表或簡報中萃取結構化資料。
  • 將 Office 內容自動化整合至知識庫或開發者工作流程。

支援的平台

此技能相容於:

  • Claude Code(Anthropic)
  • Cursor(AI 驅動的編輯器)
  • Codex(AI 終端機)

使用方式

您可透過提供 Office 檔案的路徑來呼叫此技能。例如,轉換 Word 文件:

office-to-md document.docx

轉換 Excel 試算表:

office-to-md spreadsheet.xlsx

轉換 PowerPoint 簡報:

office-to-md presentation.pptx

輸出選項

  • 單一 Markdown 檔案:預設會將整個文件輸出為單一 .md 檔案。
  • 拆分輸出:針對大型文件或投影片組,可選擇拆分為多個 Markdown 檔案(例如每張投疊一個檔案)。使用 --split 旗標:
office-to-md presentation.pptx --split

功能

  • 從 Word 文件中擷取文字與基本格式(標題、粗體、清單)。
  • 從 Excel 文件中萃取表格與儲存格資料。
  • 從 PowerPoint 文件中提取投影片內容與備忘稿。
  • 處理內嵌圖片(會以 base64 編碼或替代文字形式包含在 Markdown 中)。
  • 處理追蹤修訂(於 Word 中),並嘗試簡化輸出。

限制

  • 無法完美保留複雜的 Office 版面配置(例如文字框、精確定位)。
  • 巨集或動態內容無法擷取。
  • 須在環境中安裝 Pandoc 或等效工具(請參閱安裝說明)。

安裝

請確認已安裝 Python 3.8 以上版本及 Pandoc。然後執行:

pip install office-to-md

或者,如果您偏好使用 Docker:

docker pull office-to-md:latest

範例

將 Word 文件轉換為 Markdown:

office-to-md report.docx > report.md

將 Excel 試算表轉換為 Markdown 表格:

office-to-md data.xlsx --format table > data.md

將 PowerPoint 簡報轉換為個別投影片檔案:

office-to-md slides.pptx --split --output-dir ./slides/

疑難排解

  • 「找不到 Pandoc」錯誤:請安裝 Pandoc(https://pandoc.org/installing.html)。
  • 圖片未出現:檢查是否提供 --images 旗標(如有)。
  • 表格格式錯亂:使用 --table-mode 選項進行實驗。

授權

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.

相關技能