Communityコーディング&開発github.com

claude-office-skills/office-to-md

Office文書(.docx, .xlsx, .pptx)をMarkdown形式に変換して、Claude CodeやAIエージェントが処理しやすくします。

office-to-md とは?

このスキルは、Microsoft Officeファイル(Word、Excel、PowerPoint)をMarkdownに変換することで、Claude CodeやCursor、CodexなどのAIエージェントが簡単に読み取り、操作できるようにします。元のOffice形式はバイナリや複雑なXMLを含むため、AIエージェントが直接処理するのが困難ですが、このスキルは構造化されたクリーンなMarkdownを生成することで、テキスト解析、要約、コード抽出などのワークフローを可能にします。Pythonベースで動作し、`python-docx`、`openpyxl`、`python-pptx`ライブラリを活用するため、追加のOfficeライセンスは不要です。これにより、ドキュメントレビュー、データパイプライン、自動レポート生成などを効率的に行えます。

対応✓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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

office-to-md は何をしますか?

Office文書(.docx, .xlsx, .pptx)をMarkdown形式に変換するAIエージェントスキル

このスキルを使用すると、Claude Codeや他のAIエージェントが一般的なOfficeファイルを直接読み取り、理解できるようになります。変換により、テーブル、リスト、画像参照、コードブロックなどが構造化されたMarkdownとして保持されます。

特徴

  • Word文書(.docx) → Markdown
  • Excelスプレッドシート(.xlsx) → Markdownテーブル
  • PowerPointプレゼンテーション(.pptx) → Markdown(スライドごとに分割)
  • 画像抽出:埋め込み画像は外部ファイルとして保存し、Markdown内で参照
  • ファイル一括処理:ディレクトリ内の複数Officeファイルを一括変換

動作要件

  • Python 3.8+
  • 必要なPythonライブラリ:
    • python-docx
    • openpyxl
    • python-pptx
    • markdown(オプション)

インストール方法

pip install python-docx openpyxl python-pptx

基本的な使い方

from office_to_md import convert

# 単一ファイルの変換
convert('report.docx', 'report.md')
convert('data.xlsx', 'data.md')
convert('slides.pptx', 'slides.md')

# ディレクトリ内の全Officeファイルを変換
convert('./documents/', './output/')

CLIからの使用例

python office_to_md.py input.docx -o output.md
python office_to_md.py input.xlsx --tables
python office_to_md.py input.pptx --slides --extract-images

変換オプション

オプション説明デフォルト値
--tablesExcelテーブルを保持True
--extract-images埋め込み画像を抽出True
--slidesスライドごとに分割False
--encoding出力エンコーディングutf-8

注意事項

  • 数式:Excelの数式は結果値のみ変換されます。
  • 画像:抽出した画像は出力ディレクトリ内のimages/フォルダに保存されます。
  • 書式:フォントサイズや色などの詳細な書式情報は失われます。Markdownでは対応できないためです。

ライセンス

MIT

関連スキル

  • claude-office-skills/pdf-to-md
  • claude-office-skills/csv-to-md
  • claude-office-skills/html-to-md

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.

関連スキル