[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BW0H9AN85PFXPJ9XJ05XMZ":3,"skill-same:01M7BW0H9AN85PFXPJ9XJ05XMZ":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M7BW0H9AN85PFXPJ9XJ05XMZ","office-to-md",null,">","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fclaude-office-skills-skills\u002Foffice-to-md\u002Foffice-to-md\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\n# ═══════════════════════════════════════════════════════════════════════════════\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# ═══════════════════════════════════════════════════════════════════════════════\n\n# Basic Information\nname: office-to-md\ndescription: \">\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: conversion\ntags:\n  - office\n  - markdown\n  - conversion\n  - markitdown\ndepartment: All\n\n# AI Model Compatibility\nmodels:\n  recommended:\n    - claude-sonnet-4\n    - claude-opus-4\n  compatible:\n    - claude-3-5-sonnet\n    - gpt-4\n    - gpt-4o\n\n# MCP Tools Integration\nmcp:\n  server: office-mcp\n  tools:\n    - docx_to_md\n\n# Skill Capabilities\ncapabilities:\n  - office_conversion\n  - markdown_export\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# Office to Markdown Skill\n\n## Overview\n\nThis skill enables conversion from various Office formats to Markdown using **markitdown** - Microsoft's open-source tool for converting documents to Markdown. Perfect for making Office content searchable, version-controllable, and AI-friendly.\n\n## How to Use\n\n1. Provide the Office file (Word, Excel, PowerPoint, PDF, etc.)\n2. Optionally specify conversion options\n3. I'll convert it to clean Markdown\n\n**Example prompts:**\n- \"Convert this Word document to Markdown\"\n- \"Turn this PowerPoint into Markdown notes\"\n- \"Extract content from this PDF as Markdown\"\n- \"Convert this Excel file to Markdown tables\"\n\n## Domain Knowledge\n\n### markitdown Fundamentals\n\n```python\nfrom markitdown import MarkItDown\n\n# Initialize converter\nmd = MarkItDown()\n\n# Convert file\nresult = md.convert(\"document.docx\")\nprint(result.text_content)\n\n# Save to file\nwith open(\"output.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### Supported Formats\n\n| Format | Extension | Notes |\n|--------|-----------|-------|\n| Word | .docx | Full text, tables, basic formatting |\n| Excel | .xlsx | Converts to Markdown tables |\n| PowerPoint | .pptx | Slides as sections |\n| PDF | .pdf | Text extraction |\n| HTML | .html | Clean markdown |\n| Images | .jpg, .png | OCR with vision model |\n| Audio | .mp3, .wav | Transcription |\n| ZIP | .zip | Processes contained files |\n\n### Basic Usage\n\n#### Python API\n```python\nfrom markitdown import MarkItDown\n\n# Simple conversion\nmd = MarkItDown()\nresult = md.convert(\"document.docx\")\n\n# Access content\nmarkdown_text = result.text_content\n\n# With options\nmd = MarkItDown(\n    llm_client=None,      # Optional LLM for enhanced processing\n    llm_model=None        # Model name if using LLM\n)\n```\n\n#### Command Line\n```bash\n# Install\npip install markitdown\n\n# Convert file\nmarkitdown document.docx > output.md\n\n# Or with output file\nmarkitdown document.docx -o output.md\n```\n\n### Word Document Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert Word document\nresult = md.convert(\"report.docx\")\n\n# Output preserves:\n# - Headings (as # headers)\n# - Bold\u002Fitalic formatting\n# - Lists (bulleted and numbered)\n# - Tables (as markdown tables)\n# - Hyperlinks\n\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n# Annual Report 2024\n\n## Executive Summary\n\nThis report summarizes the key achievements and challenges...\n\n### Key Metrics\n\n| Metric | 2023 | 2024 | Change |\n|--------|------|------|--------|\n| Revenue | $10M | $12M | +20% |\n| Users | 50K | 75K | +50% |\n\n## Detailed Analysis\n\nThe following sections provide...\n```\n\n### Excel Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"data.xlsx\")\n\n# Each sheet becomes a section\n# Data becomes markdown tables\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n## Sheet1\n\n| Name | Department | Salary |\n|------|------------|--------|\n| John | Engineering | $80,000 |\n| Jane | Marketing | $75,000 |\n\n## Sheet2\n\n| Product | Q1 | Q2 | Q3 | Q4 |\n|---------|----|----|----|----|\n| Widget A | 100 | 120 | 150 | 180 |\n```\n\n### PowerPoint Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"presentation.pptx\")\n\n# Each slide becomes a section\n# Speaker notes included if present\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n# Slide 1: Company Overview\n\nOur mission is to...\n\n## Key Points\n- Innovation first\n- Customer focused\n- Global reach\n\n---\n\n# Slide 2: Market Analysis\n\nThe market opportunity is significant...\n\n**Notes:** Mention the competitor analysis here\n```\n\n### PDF Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\n\n# Extracts text content\n# Tables converted where detected\nprint(result.text_content)\n```\n\n### Image Conversion (with Vision Model)\n\n```python\nfrom markitdown import MarkItDown\nimport anthropic\n\n# Use Claude for image description\nclient = anthropic.Anthropic()\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"claude-sonnet-4-20250514\"\n)\n\nresult = md.convert(\"diagram.png\")\nprint(result.text_content)\n\n# Output: Description of the image content\n```\n\n### Batch Conversion\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\ndef batch_convert(input_dir, output_dir):\n    \"\"\"Convert all Office files to Markdown.\"\"\"\n    md = MarkItDown()\n    input_path = Path(input_dir)\n    output_path = Path(output_dir)\n    output_path.mkdir(exist_ok=True)\n    \n    extensions = ['.docx', '.xlsx', '.pptx', '.pdf']\n    \n    for ext in extensions:\n        for file in input_path.glob(f'*{ext}'):\n            try:\n                result = md.convert(str(file))\n                output_file = output_path \u002F f\"{file.stem}.md\"\n                \n                with open(output_file, 'w') as f:\n                    f.write(result.text_content)\n                \n                print(f\"Converted: {file.name}\")\n            except Exception as e:\n                print(f\"Error converting {file.name}: {e}\")\n\nbatch_convert('.\u002Fdocuments', '.\u002Fmarkdown')\n```\n\n## Best Practices\n\n1. **Check Output Quality**: Review converted Markdown for accuracy\n2. **Handle Tables**: Complex tables may need manual adjustment\n3. **Preserve Structure**: Use consistent heading levels in source docs\n4. **Image Handling**: Consider using vision models for important images\n5. **Version Control**: Store converted Markdown in Git for tracking\n\n## Common Patterns\n\n### Document Archive\n```python\nimport os\nfrom datetime import datetime\nfrom markitdown import MarkItDown\n\ndef archive_document(doc_path, archive_dir):\n    \"\"\"Convert and archive Office document to Markdown.\"\"\"\n    md = MarkItDown()\n    result = md.convert(doc_path)\n    \n    # Create archive structure\n    date_str = datetime.now().strftime('%Y-%m-%d')\n    filename = os.path.basename(doc_path)\n    base_name = os.path.splitext(filename)[0]\n    \n    # Save with metadata\n    output_content = f\"\"\"---\nsource: {filename}\nconverted: {date_str}\n---\n\n{result.text_content}\n\"\"\"\n    \n    output_path = os.path.join(archive_dir, f\"{base_name}.md\")\n    with open(output_path, 'w') as f:\n        f.write(output_content)\n    \n    return output_path\n```\n\n### AI-Ready Corpus\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\nimport json\n\ndef create_ai_corpus(doc_folder, output_file):\n    \"\"\"Convert documents to JSON corpus for AI training\u002FRAG.\"\"\"\n    md = MarkItDown()\n    corpus = []\n    \n    for doc in Path(doc_folder).glob('**\u002F*'):\n        if doc.suffix in ['.docx', '.pdf', '.pptx', '.xlsx']:\n            try:\n                result = md.convert(str(doc))\n                corpus.append({\n                    'source': str(doc),\n                    'filename': doc.name,\n                    'content': result.text_content,\n                    'type': doc.suffix[1:]\n                })\n            except Exception as e:\n                print(f\"Skipped {doc.name}: {e}\")\n    \n    with open(output_file, 'w') as f:\n        json.dump(corpus, f, indent=2)\n    \n    print(f\"Created corpus with {len(corpus)} documents\")\n    return corpus\n```\n\n## Examples\n\n### Example 1: Convert Documentation Suite\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\ndef convert_docs_to_wiki(docs_folder, wiki_folder):\n    \"\"\"Convert all Office docs to markdown wiki structure.\"\"\"\n    md = MarkItDown()\n    docs_path = Path(docs_folder)\n    wiki_path = Path(wiki_folder)\n    \n    # Create wiki structure\n    wiki_path.mkdir(exist_ok=True)\n    \n    # Create index\n    index_content = \"# Documentation Index\\n\\n\"\n    \n    for doc in sorted(docs_path.glob('**\u002F*.docx')):\n        try:\n            result = md.convert(str(doc))\n            \n            # Create relative path in wiki\n            rel_path = doc.relative_to(docs_path)\n            output_file = wiki_path \u002F rel_path.with_suffix('.md')\n            output_file.parent.mkdir(parents=True, exist_ok=True)\n            \n            # Write markdown\n            with open(output_file, 'w') as f:\n                f.write(result.text_content)\n            \n            # Add to index\n            link = str(rel_path.with_suffix('.md')).replace('\\\\', '\u002F')\n            index_content += f\"- [{doc.stem}]({link})\\n\"\n            \n            print(f\"Converted: {doc.name}\")\n            \n        except Exception as e:\n            print(f\"Error: {doc.name} - {e}\")\n    \n    # Write index\n    with open(wiki_path \u002F 'index.md', 'w') as f:\n        f.write(index_content)\n\nconvert_docs_to_wiki('.\u002Fcompany_docs', '.\u002Fwiki')\n```\n\n### Example 2: Meeting Notes Processor\n```python\nfrom markitdown import MarkItDown\nimport re\nfrom datetime import datetime\n\ndef process_meeting_notes(pptx_path):\n    \"\"\"Extract and structure meeting notes from PowerPoint.\"\"\"\n    md = MarkItDown()\n    result = md.convert(pptx_path)\n    \n    # Parse the markdown\n    content = result.text_content\n    \n    # Extract sections\n    sections = {\n        'attendees': [],\n        'agenda': [],\n        'decisions': [],\n        'action_items': []\n    }\n    \n    current_section = None\n    \n    for line in content.split('\\n'):\n        line_lower = line.lower()\n        \n        if 'attendee' in line_lower or 'participant' in line_lower:\n            current_section = 'attendees'\n        elif 'agenda' in line_lower:\n            current_section = 'agenda'\n        elif 'decision' in line_lower:\n            current_section = 'decisions'\n        elif 'action' in line_lower:\n            current_section = 'action_items'\n        elif line.strip().startswith(('-', '*', '•')) and current_section:\n            sections[current_section].append(line.strip()[1:].strip())\n    \n    # Generate structured output\n    output = f\"\"\"# Meeting Notes\n\n**Date:** {datetime.now().strftime('%Y-%m-%d')}\n**Source:** {pptx_path}\n\n## Attendees\n{chr(10).join('- ' + a for a in sections['attendees'])}\n\n## Agenda\n{chr(10).join('- ' + a for a in sections['agenda'])}\n\n## Decisions Made\n{chr(10).join('- ' + d for d in sections['decisions'])}\n\n## Action Items\n{chr(10).join('- [ ] ' + a for a in sections['action_items'])}\n\"\"\"\n    \n    return output\n\nnotes = process_meeting_notes('team_meeting.pptx')\nprint(notes)\n```\n\n### Example 3: Excel to Documentation\n```python\nfrom markitdown import MarkItDown\n\ndef excel_to_data_dictionary(xlsx_path):\n    \"\"\"Convert Excel data model to data dictionary documentation.\"\"\"\n    md = MarkItDown()\n    result = md.convert(xlsx_path)\n    \n    # Add documentation structure\n    doc = f\"\"\"# Data Dictionary\n\nGenerated from: `{xlsx_path}`\n\n{result.text_content}\n\n## Usage Notes\n\n- All tables are derived from the source Excel file\n- Review data types and constraints before use\n- Contact data team for clarifications\n\n## Change Log\n\n| Date | Change | Author |\n|------|--------|--------|\n| {datetime.now().strftime('%Y-%m-%d')} | Initial generation | Auto |\n\"\"\"\n    \n    return doc\n\ndocumentation = excel_to_data_dictionary('data_model.xlsx')\nwith open('data_dictionary.md', 'w') as f:\n    f.write(documentation)\n```\n\n## Limitations\n\n- Complex formatting may be simplified\n- Images are not embedded (use vision model for descriptions)\n- Some table structures may not convert perfectly\n- Track changes in Word are not preserved\n- Comments may not be extracted\n\n## Installation\n\n```bash\npip install markitdown\n\n# For image\u002Faudio processing\npip install markitdown[all]\n\n# For specific features\npip install markitdown[images]  # Image OCR\npip install markitdown[audio]   # Audio transcription\n```\n\n## Resources\n\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown)\n- [PyPI Package](https:\u002F\u002Fpypi.org\u002Fproject\u002Fmarkitdown\u002F)\n- [Supported Formats](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown#supported-formats)\n","# Office to Markdown Skill\n\n## Overview\n\nThis skill enables conversion from various Office formats to Markdown using **markitdown** - Microsoft's open-source tool for converting documents to Markdown. Perfect for making Office content searchable, version-controllable, and AI-friendly.\n\n## How to Use\n\n1. Provide the Office file (Word, Excel, PowerPoint, PDF, etc.)\n2. Optionally specify conversion options\n3. I'll convert it to clean Markdown\n\n**Example prompts:**\n- \"Convert this Word document to Markdown\"\n- \"Turn this PowerPoint into Markdown notes\"\n- \"Extract content from this PDF as Markdown\"\n- \"Convert this Excel file to Markdown tables\"\n\n## Domain Knowledge\n\n### markitdown Fundamentals\n\n```python\nfrom markitdown import MarkItDown\n\n# Initialize converter\nmd = MarkItDown()\n\n# Convert file\nresult = md.convert(\"document.docx\")\nprint(result.text_content)\n\n# Save to file\nwith open(\"output.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### Supported Formats\n\n| Format | Extension | Notes |\n|--------|-----------|-------|\n| Word | .docx | Full text, tables, basic formatting |\n| Excel | .xlsx | Converts to Markdown tables |\n| PowerPoint | .pptx | Slides as sections |\n| PDF | .pdf | Text extraction |\n| HTML | .html | Clean markdown |\n| Images | .jpg, .png | OCR with vision model |\n| Audio | .mp3, .wav | Transcription |\n| ZIP | .zip | Processes contained files |\n\n### Basic Usage\n\n#### Python API\n```python\nfrom markitdown import MarkItDown\n\n# Simple conversion\nmd = MarkItDown()\nresult = md.convert(\"document.docx\")\n\n# Access content\nmarkdown_text = result.text_content\n\n# With options\nmd = MarkItDown(\n    llm_client=None,      # Optional LLM for enhanced processing\n    llm_model=None        # Model name if using LLM\n)\n```\n\n#### Command Line\n```bash\n# Install\npip install markitdown\n\n# Convert file\nmarkitdown document.docx > output.md\n\n# Or with output file\nmarkitdown document.docx -o output.md\n```\n\n### Word Document Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert Word document\nresult = md.convert(\"report.docx\")\n\n# Output preserves:\n# - Headings (as # headers)\n# - Bold\u002Fitalic formatting\n# - Lists (bulleted and numbered)\n# - Tables (as markdown tables)\n# - Hyperlinks\n\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n# Annual Report 2024\n\n## Executive Summary\n\nThis report summarizes the key achievements and challenges...\n\n### Key Metrics\n\n| Metric | 2023 | 2024 | Change |\n|--------|------|------|--------|\n| Revenue | $10M | $12M | +20% |\n| Users | 50K | 75K | +50% |\n\n## Detailed Analysis\n\nThe following sections provide...\n```\n\n### Excel Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"data.xlsx\")\n\n# Each sheet becomes a section\n# Data becomes markdown tables\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n## Sheet1\n\n| Name | Department | Salary |\n|------|------------|--------|\n| John | Engineering | $80,000 |\n| Jane | Marketing | $75,000 |\n\n## Sheet2\n\n| Product | Q1 | Q2 | Q3 | Q4 |\n|---------|----|----|----|----|\n| Widget A | 100 | 120 | 150 | 180 |\n```\n\n### PowerPoint Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"presentation.pptx\")\n\n# Each slide becomes a section\n# Speaker notes included if present\nprint(result.text_content)\n```\n\n**Example Output:**\n```markdown\n# Slide 1: Company Overview\n\nOur mission is to...\n\n## Key Points\n- Innovation first\n- Customer focused\n- Global reach\n\n---\n\n# Slide 2: Market Analysis\n\nThe market opportunity is significant...\n\n**Notes:** Mention the competitor analysis here\n```\n\n### PDF Conversion\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\n\n# Extracts text content\n# Tables converted where detected\nprint(result.text_content)\n```\n\n### Image Conversion (with Vision Model)\n\n```python\nfrom markitdown import MarkItDown\nimport anthropic\n\n# Use Claude for image description\nclient = anthropic.Anthropic()\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"claude-sonnet-4-20250514\"\n)\n\nresult = md.convert(\"diagram.png\")\nprint(result.text_content)\n\n# Output: Description of the image content\n```\n\n### Batch Conversion\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\ndef batch_convert(input_dir, output_dir):\n    \"\"\"Convert all Office files to Markdown.\"\"\"\n    md = MarkItDown()\n    input_path = Path(input_dir)\n    output_path = Path(output_dir)\n    output_path.mkdir(exist_ok=True)\n    \n    extensions = ['.docx', '.xlsx', '.pptx', '.pdf']\n    \n    for ext in extensions:\n        for file in input_path.glob(f'*{ext}'):\n            try:\n                result = md.convert(str(file))\n                output_file = output_path \u002F f\"{file.stem}.md\"\n                \n                with open(output_file, 'w') as f:\n                    f.write(result.text_content)\n                \n                print(f\"Converted: {file.name}\")\n            except Exception as e:\n                print(f\"Error converting {file.name}: {e}\")\n\nbatch_convert('.\u002Fdocuments', '.\u002Fmarkdown')\n```\n\n## Best Practices\n\n1. **Check Output Quality**: Review converted Markdown for accuracy\n2. **Handle Tables**: Complex tables may need manual adjustment\n3. **Preserve Structure**: Use consistent heading levels in source docs\n4. **Image Handling**: Consider using vision models for important images\n5. **Version Control**: Store converted Markdown in Git for tracking\n\n## Common Patterns\n\n### Document Archive\n```python\nimport os\nfrom datetime import datetime\nfrom markitdown import MarkItDown\n\ndef archive_document(doc_path, archive_dir):\n    \"\"\"Convert and archive Office document to Markdown.\"\"\"\n    md = MarkItDown()\n    result = md.convert(doc_path)\n    \n    # Create archive structure\n    date_str = datetime.now().strftime('%Y-%m-%d')\n    filename = os.path.basename(doc_path)\n    base_name = os.path.splitext(filename)[0]\n    \n    # Save with metadata\n    output_content = f\"\"\"---\nsource: {filename}\nconverted: {date_str}\n---\n\n{result.text_content}\n\"\"\"\n    \n    output_path = os.path.join(archive_dir, f\"{base_name}.md\")\n    with open(output_path, 'w') as f:\n        f.write(output_content)\n    \n    return output_path\n```\n\n### AI-Ready Corpus\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\nimport json\n\ndef create_ai_corpus(doc_folder, output_file):\n    \"\"\"Convert documents to JSON corpus for AI training\u002FRAG.\"\"\"\n    md = MarkItDown()\n    corpus = []\n    \n    for doc in Path(doc_folder).glob('**\u002F*'):\n        if doc.suffix in ['.docx', '.pdf', '.pptx', '.xlsx']:\n            try:\n                result = md.convert(str(doc))\n                corpus.append({\n                    'source': str(doc),\n                    'filename': doc.name,\n                    'content': result.text_content,\n                    'type': doc.suffix[1:]\n                })\n            except Exception as e:\n                print(f\"Skipped {doc.name}: {e}\")\n    \n    with open(output_file, 'w') as f:\n        json.dump(corpus, f, indent=2)\n    \n    print(f\"Created corpus with {len(corpus)} documents\")\n    return corpus\n```\n\n## Examples\n\n### Example 1: Convert Documentation Suite\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\ndef convert_docs_to_wiki(docs_folder, wiki_folder):\n    \"\"\"Convert all Office docs to markdown wiki structure.\"\"\"\n    md = MarkItDown()\n    docs_path = Path(docs_folder)\n    wiki_path = Path(wiki_folder)\n    \n    # Create wiki structure\n    wiki_path.mkdir(exist_ok=True)\n    \n    # Create index\n    index_content = \"# Documentation Index\\n\\n\"\n    \n    for doc in sorted(docs_path.glob('**\u002F*.docx')):\n        try:\n            result = md.convert(str(doc))\n            \n            # Create relative path in wiki\n            rel_path = doc.relative_to(docs_path)\n            output_file = wiki_path \u002F rel_path.with_suffix('.md')\n            output_file.parent.mkdir(parents=True, exist_ok=True)\n            \n            # Write markdown\n            with open(output_file, 'w') as f:\n                f.write(result.text_content)\n            \n            # Add to index\n            link = str(rel_path.with_suffix('.md')).replace('\\\\', '\u002F')\n            index_content += f\"- [{doc.stem}]({link})\\n\"\n            \n            print(f\"Converted: {doc.name}\")\n            \n        except Exception as e:\n            print(f\"Error: {doc.name} - {e}\")\n    \n    # Write index\n    with open(wiki_path \u002F 'index.md', 'w') as f:\n        f.write(index_content)\n\nconvert_docs_to_wiki('.\u002Fcompany_docs', '.\u002Fwiki')\n```\n\n### Example 2: Meeting Notes Processor\n```python\nfrom markitdown import MarkItDown\nimport re\nfrom datetime import datetime\n\ndef process_meeting_notes(pptx_path):\n    \"\"\"Extract and structure meeting notes from PowerPoint.\"\"\"\n    md = MarkItDown()\n    result = md.convert(pptx_path)\n    \n    # Parse the markdown\n    content = result.text_content\n    \n    # Extract sections\n    sections = {\n        'attendees': [],\n        'agenda': [],\n        'decisions': [],\n        'action_items': []\n    }\n    \n    current_section = None\n    \n    for line in content.split('\\n'):\n        line_lower = line.lower()\n        \n        if 'attendee' in line_lower or 'participant' in line_lower:\n            current_section = 'attendees'\n        elif 'agenda' in line_lower:\n            current_section = 'agenda'\n        elif 'decision' in line_lower:\n            current_section = 'decisions'\n        elif 'action' in line_lower:\n            current_section = 'action_items'\n        elif line.strip().startswith(('-', '*', '•')) and current_section:\n            sections[current_section].append(line.strip()[1:].strip())\n    \n    # Generate structured output\n    output = f\"\"\"# Meeting Notes\n\n**Date:** {datetime.now().strftime('%Y-%m-%d')}\n**Source:** {pptx_path}\n\n## Attendees\n{chr(10).join('- ' + a for a in sections['attendees'])}\n\n## Agenda\n{chr(10).join('- ' + a for a in sections['agenda'])}\n\n## Decisions Made\n{chr(10).join('- ' + d for d in sections['decisions'])}\n\n## Action Items\n{chr(10).join('- [ ] ' + a for a in sections['action_items'])}\n\"\"\"\n    \n    return output\n\nnotes = process_meeting_notes('team_meeting.pptx')\nprint(notes)\n```\n\n### Example 3: Excel to Documentation\n```python\nfrom markitdown import MarkItDown\n\ndef excel_to_data_dictionary(xlsx_path):\n    \"\"\"Convert Excel data model to data dictionary documentation.\"\"\"\n    md = MarkItDown()\n    result = md.convert(xlsx_path)\n    \n    # Add documentation structure\n    doc = f\"\"\"# Data Dictionary\n\nGenerated from: `{xlsx_path}`\n\n{result.text_content}\n\n## Usage Notes\n\n- All tables are derived from the source Excel file\n- Review data types and constraints before use\n- Contact data team for clarifications\n\n## Change Log\n\n| Date | Change | Author |\n|------|--------|--------|\n| {datetime.now().strftime('%Y-%m-%d')} | Initial generation | Auto |\n\"\"\"\n    \n    return doc\n\ndocumentation = excel_to_data_dictionary('data_model.xlsx')\nwith open('data_dictionary.md', 'w') as f:\n    f.write(documentation)\n```\n\n## Limitations\n\n- Complex formatting may be simplified\n- Images are not embedded (use vision model for descriptions)\n- Some table structures may not convert perfectly\n- Track changes in Word are not preserved\n- Comments may not be extracted\n\n## Installation\n\n```bash\npip install markitdown\n\n# For image\u002Faudio processing\npip install markitdown[all]\n\n# For specific features\npip install markitdown[images]  # Image OCR\npip install markitdown[audio]   # Audio transcription\n```\n\n## Resources\n\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown)\n- [PyPI Package](https:\u002F\u002Fpypi.org\u002Fproject\u002Fmarkitdown\u002F)\n- [Supported Formats](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown#supported-formats)\n",{"mcp":24,"name":5,"tags":28,"author":33,"models":34,"license":15,"version":42,"category":31,"languages":43,"department":46,"description":7,"capabilities":47},{"tools":25,"server":27},[26],"docx_to_md","office-mcp",[29,30,31,32],"office","markdown","conversion","markitdown","claude-office-skills",{"compatible":35,"recommended":39},[36,37,38],"claude-3-5-sonnet","gpt-4","gpt-4o",[40,41],"claude-sonnet-4","claude-opus-4","1.0",[44,45],"en","zh","All",[48,49],"office_conversion","markdown_export","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fclaude-office-skills-skills\u002Foffice-to-md\u002Foffice-to-md",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill office-to-md",{"tool":64,"command":65},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill office-to-md",{"tool":67,"command":68},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill office-to-md","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fclaude-office-skills-skills\u002Foffice-to-md\u002Foffice-to-md\u002FSKILL.md",true,[],[73,80,85,92,97,104],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":81,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":93,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":105,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]