[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BVYTN3VSJTCN3VADNE4AMM":3,"skill-same:01M7BVYTN3VSJTCN3VADNE4AMM":79},{"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":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M7BVYTN3VSJTCN3VADNE4AMM","md-to-office",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\u002Fmd-to-office\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\n# ═══════════════════════════════════════════════════════════════════════════════\n# CLAUDE OFFICE SKILL - Enhanced Metadata v2.0\n# ═══════════════════════════════════════════════════════════════════════════════\n\n# Basic Information\nname: md-to-office\ndescription: \">\"\nversion: \"1.0\"\nauthor: claude-office-skills\nlicense: MIT\n\n# Categorization\ncategory: conversion\ntags:\n  - markdown\n  - conversion\n  - office\n  - pandoc\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    - md_to_docx\n    - md_to_pptx\n\n# Skill Capabilities\ncapabilities:\n  - markdown_conversion\n  - document_generation\n\n# Language Support\nlanguages:\n  - en\n  - zh\n---\n\n# Markdown to Office Skill\n\n## Overview\n\nThis skill enables conversion from Markdown to various Office formats using **Pandoc** - the universal document converter. Convert your Markdown files to professional Word documents, PowerPoint presentations, PDFs, and more while preserving formatting and structure.\n\n## How to Use\n\n1. Provide the Markdown content or file\n2. Specify the target format (docx, pptx, pdf, etc.)\n3. Optionally provide a reference template for styling\n4. I'll convert using Pandoc with optimal settings\n\n**Example prompts:**\n- \"Convert this README.md to a professional Word document\"\n- \"Turn my markdown notes into a PowerPoint presentation\"\n- \"Generate a PDF from this markdown with custom styling\"\n- \"Create a Word doc from this markdown using company template\"\n\n## Domain Knowledge\n\n### Pandoc Fundamentals\n\n```bash\n# Basic conversion\npandoc input.md -o output.docx\npandoc input.md -o output.pdf\npandoc input.md -o output.pptx\n\n# With template\npandoc input.md --reference-doc=template.docx -o output.docx\n\n# Multiple inputs\npandoc ch1.md ch2.md ch3.md -o book.docx\n```\n\n### Supported Conversions\n\n| From | To | Command |\n|------|-----|---------|\n| Markdown | Word | `pandoc in.md -o out.docx` |\n| Markdown | PDF | `pandoc in.md -o out.pdf` |\n| Markdown | PowerPoint | `pandoc in.md -o out.pptx` |\n| Markdown | HTML | `pandoc in.md -o out.html` |\n| Markdown | LaTeX | `pandoc in.md -o out.tex` |\n| Markdown | EPUB | `pandoc in.md -o out.epub` |\n\n### Markdown to Word (.docx)\n\n#### Basic Conversion\n```bash\npandoc document.md -o document.docx\n```\n\n#### With Template (Reference Doc)\n```bash\n# First create a template by converting sample\npandoc sample.md -o reference.docx\n\n# Edit reference.docx styles in Word, then use it\npandoc input.md --reference-doc=reference.docx -o output.docx\n```\n\n#### With Table of Contents\n```bash\npandoc document.md --toc --toc-depth=3 -o document.docx\n```\n\n#### With Metadata\n```bash\npandoc document.md \\\n  --metadata title=\"My Report\" \\\n  --metadata author=\"John Doe\" \\\n  --metadata date=\"2024-01-15\" \\\n  -o document.docx\n```\n\n### Markdown to PDF\n\n#### Via LaTeX (Best Quality)\n```bash\n# Requires LaTeX installation\npandoc document.md -o document.pdf\n\n# With custom settings\npandoc document.md \\\n  --pdf-engine=xelatex \\\n  -V geometry:margin=1in \\\n  -V fontsize=12pt \\\n  -o document.pdf\n```\n\n#### Via HTML\u002Fwkhtmltopdf\n```bash\npandoc document.md \\\n  --pdf-engine=wkhtmltopdf \\\n  --css=style.css \\\n  -o document.pdf\n```\n\n#### PDF Options\n```bash\npandoc document.md \\\n  -V papersize:a4 \\\n  -V geometry:margin=2cm \\\n  -V fontfamily:libertinus \\\n  -V colorlinks:true \\\n  --toc \\\n  -o document.pdf\n```\n\n### Markdown to PowerPoint (.pptx)\n\n#### Basic Conversion\n```bash\npandoc slides.md -o presentation.pptx\n```\n\n#### Markdown Structure for Slides\n```markdown\n---\ntitle: Presentation Title\nauthor: Author Name\ndate: January 2024\n---\n\n# Section Header (creates section divider)\n\n## Slide Title\n\n- Bullet point 1\n- Bullet point 2\n  - Sub-bullet\n\n## Another Slide\n\nContent here\n\n::: notes\nSpeaker notes go here (not visible in slides)\n:::\n\n## Slide with Image\n\n![Description](image.png){width=80%}\n\n## Two Column Slide\n\n:::::::::::::: {.columns}\n::: {.column width=\"50%\"}\nLeft column content\n:::\n\n::: {.column width=\"50%\"}\nRight column content\n:::\n::::::::::::::\n```\n\n#### With Template\n```bash\n# Use corporate PowerPoint template\npandoc slides.md --reference-doc=template.pptx -o presentation.pptx\n```\n\n### YAML Frontmatter\n\nAdd metadata at the top of your Markdown:\n\n```yaml\n---\ntitle: \"Document Title\"\nauthor: \"Author Name\"\ndate: \"2024-01-15\"\nabstract: \"Brief description\"\ntoc: true\ntoc-depth: 2\nnumbersections: true\ngeometry: margin=1in\nfontsize: 11pt\ndocumentclass: report\n---\n\n# First Chapter\n...\n```\n\n### Python Integration\n\n```python\nimport subprocess\nimport os\n\ndef md_to_docx(input_path, output_path, template=None):\n    \"\"\"Convert Markdown to Word document.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n\ndef md_to_pdf(input_path, output_path, **options):\n    \"\"\"Convert Markdown to PDF with options.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if options.get('toc'):\n        cmd.append('--toc')\n    \n    if options.get('margin'):\n        cmd.extend(['-V', f\"geometry:margin={options['margin']}\"])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n\ndef md_to_pptx(input_path, output_path, template=None):\n    \"\"\"Convert Markdown to PowerPoint.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n```\n\n### pypandoc (Python Wrapper)\n\n```python\nimport pypandoc\n\n# Simple conversion\noutput = pypandoc.convert_file('input.md', 'docx', outputfile='output.docx')\n\n# With options\noutput = pypandoc.convert_file(\n    'input.md', \n    'docx',\n    outputfile='output.docx',\n    extra_args=['--toc', '--reference-doc=template.docx']\n)\n\n# From string\nmd_content = \"# Hello\\n\\nThis is markdown.\"\noutput = pypandoc.convert_text(md_content, 'docx', format='md', outputfile='output.docx')\n```\n\n## Best Practices\n\n1. **Use Templates**: Create a reference document for consistent branding\n2. **Structure Headers**: Use consistent heading levels (## for slides, # for sections)\n3. **Test Incrementally**: Convert small sections first to verify formatting\n4. **Include Metadata**: Use YAML frontmatter for document properties\n5. **Handle Images**: Use relative paths and specify dimensions\n\n## Common Patterns\n\n### Batch Conversion\n```python\nimport subprocess\nfrom pathlib import Path\n\ndef batch_convert(input_dir, output_format, output_dir=None):\n    \"\"\"Convert all markdown files in a directory.\"\"\"\n    input_path = Path(input_dir)\n    output_path = Path(output_dir) if output_dir else input_path\n    \n    for md_file in input_path.glob('*.md'):\n        output_file = output_path \u002F md_file.with_suffix(f'.{output_format}').name\n        subprocess.run([\n            'pandoc', str(md_file), '-o', str(output_file)\n        ], check=True)\n        print(f\"Converted: {md_file.name} -> {output_file.name}\")\n\nbatch_convert('.\u002Fdocs', 'docx', '.\u002Foutput')\n```\n\n### Report Generator\n```python\ndef generate_report(title, sections, output_path, template=None):\n    \"\"\"Generate Word report from structured data.\"\"\"\n    \n    # Build markdown\n    md_content = f\"\"\"---\ntitle: \"{title}\"\ndate: \"{datetime.now().strftime('%B %d, %Y')}\"\n---\n\n\"\"\"\n    for section_title, content in sections.items():\n        md_content += f\"# {section_title}\\n\\n{content}\\n\\n\"\n    \n    # Write temp file\n    with open('temp_report.md', 'w') as f:\n        f.write(md_content)\n    \n    # Convert\n    cmd = ['pandoc', 'temp_report.md', '-o', output_path, '--toc']\n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    os.remove('temp_report.md')\n```\n\n## Examples\n\n### Example 1: Technical Documentation\n```python\nimport subprocess\n\n# Create comprehensive markdown\ndoc = \"\"\"---\ntitle: \"API Documentation\"\nauthor: \"Dev Team\"\ndate: \"2024-01-15\"\ntoc: true\ntoc-depth: 2\n---\n\n# Introduction\n\nThis document describes the REST API for our service.\n\n## Authentication\n\nAll API requests require an API key in the header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n## Endpoints\n\n### GET \u002Fusers\n\nRetrieve all users.\n\n**Response:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| id | integer | User ID |\n| name | string | Full name |\n| email | string | Email address |\n\n### POST \u002Fusers\n\nCreate a new user.\n\n**Request Body:**\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\"\n}\n```\n\n## Error Codes\n\n| Code | Meaning |\n|------|---------|\n| 400 | Bad Request |\n| 401 | Unauthorized |\n| 404 | Not Found |\n| 500 | Server Error |\n\"\"\"\n\n# Save markdown\nwith open('api_docs.md', 'w') as f:\n    f.write(doc)\n\n# Convert to Word\nsubprocess.run([\n    'pandoc', 'api_docs.md',\n    '-o', 'api_documentation.docx',\n    '--toc',\n    '--reference-doc', 'company_template.docx'\n], check=True)\n\n# Convert to PDF\nsubprocess.run([\n    'pandoc', 'api_docs.md',\n    '-o', 'api_documentation.pdf',\n    '--toc',\n    '-V', 'geometry:margin=1in',\n    '-V', 'fontsize=11pt'\n], check=True)\n```\n\n### Example 2: Presentation from Markdown\n```python\nslides_md = \"\"\"---\ntitle: \"Q4 Business Review\"\nauthor: \"Sales Team\"\ndate: \"January 2024\"\n---\n\n# Overview\n\n## Agenda\n\n- Q4 Performance Summary\n- Regional Highlights\n- 2024 Outlook\n- Q&A\n\n# Q4 Performance\n\n## Key Metrics\n\n- Revenue: $12.5M (+15% YoY)\n- New Customers: 250\n- Retention Rate: 94%\n\n## Regional Performance\n\n:::::::::::::: {.columns}\n::: {.column width=\"50%\"}\n**North America**\n\n- Revenue: $6.2M\n- Growth: +18%\n:::\n\n::: {.column width=\"50%\"}\n**Europe**\n\n- Revenue: $4.1M\n- Growth: +12%\n:::\n::::::::::::::\n\n# 2024 Outlook\n\n## Strategic Priorities\n\n1. Expand APAC presence\n2. Launch new product line\n3. Improve customer onboarding\n\n## Revenue Targets\n\n| Quarter | Target |\n|---------|--------|\n| Q1 | $13M |\n| Q2 | $14M |\n| Q3 | $15M |\n| Q4 | $16M |\n\n# Thank You\n\n## Questions?\n\nContact: sales@company.com\n\"\"\"\n\nwith open('presentation.md', 'w') as f:\n    f.write(slides_md)\n\nsubprocess.run([\n    'pandoc', 'presentation.md',\n    '-o', 'q4_review.pptx',\n    '--reference-doc', 'company_slides.pptx'\n], check=True)\n```\n\n## Limitations\n\n- Complex Word formatting may not convert perfectly\n- PDF conversion requires LaTeX or wkhtmltopdf\n- PowerPoint animations not supported\n- Some advanced tables may need manual adjustment\n- Image positioning can be tricky\n\n## Installation\n\n```bash\n# macOS\nbrew install pandoc\n\n# Ubuntu\u002FDebian\nsudo apt-get install pandoc\n\n# Windows\nchoco install pandoc\n\n# Python wrapper\npip install pypandoc\n```\n\n## Resources\n\n- [Pandoc User's Guide](https:\u002F\u002Fpandoc.org\u002FMANUAL.html)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc)\n- [Pandoc Templates](https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc-templates)\n- [pypandoc Documentation](https:\u002F\u002Fgithub.com\u002FJessicaTegworthy\u002Fpypandoc)\n","# Markdown to Office Skill\n\n## Overview\n\nThis skill enables conversion from Markdown to various Office formats using **Pandoc** - the universal document converter. Convert your Markdown files to professional Word documents, PowerPoint presentations, PDFs, and more while preserving formatting and structure.\n\n## How to Use\n\n1. Provide the Markdown content or file\n2. Specify the target format (docx, pptx, pdf, etc.)\n3. Optionally provide a reference template for styling\n4. I'll convert using Pandoc with optimal settings\n\n**Example prompts:**\n- \"Convert this README.md to a professional Word document\"\n- \"Turn my markdown notes into a PowerPoint presentation\"\n- \"Generate a PDF from this markdown with custom styling\"\n- \"Create a Word doc from this markdown using company template\"\n\n## Domain Knowledge\n\n### Pandoc Fundamentals\n\n```bash\n# Basic conversion\npandoc input.md -o output.docx\npandoc input.md -o output.pdf\npandoc input.md -o output.pptx\n\n# With template\npandoc input.md --reference-doc=template.docx -o output.docx\n\n# Multiple inputs\npandoc ch1.md ch2.md ch3.md -o book.docx\n```\n\n### Supported Conversions\n\n| From | To | Command |\n|------|-----|---------|\n| Markdown | Word | `pandoc in.md -o out.docx` |\n| Markdown | PDF | `pandoc in.md -o out.pdf` |\n| Markdown | PowerPoint | `pandoc in.md -o out.pptx` |\n| Markdown | HTML | `pandoc in.md -o out.html` |\n| Markdown | LaTeX | `pandoc in.md -o out.tex` |\n| Markdown | EPUB | `pandoc in.md -o out.epub` |\n\n### Markdown to Word (.docx)\n\n#### Basic Conversion\n```bash\npandoc document.md -o document.docx\n```\n\n#### With Template (Reference Doc)\n```bash\n# First create a template by converting sample\npandoc sample.md -o reference.docx\n\n# Edit reference.docx styles in Word, then use it\npandoc input.md --reference-doc=reference.docx -o output.docx\n```\n\n#### With Table of Contents\n```bash\npandoc document.md --toc --toc-depth=3 -o document.docx\n```\n\n#### With Metadata\n```bash\npandoc document.md \\\n  --metadata title=\"My Report\" \\\n  --metadata author=\"John Doe\" \\\n  --metadata date=\"2024-01-15\" \\\n  -o document.docx\n```\n\n### Markdown to PDF\n\n#### Via LaTeX (Best Quality)\n```bash\n# Requires LaTeX installation\npandoc document.md -o document.pdf\n\n# With custom settings\npandoc document.md \\\n  --pdf-engine=xelatex \\\n  -V geometry:margin=1in \\\n  -V fontsize=12pt \\\n  -o document.pdf\n```\n\n#### Via HTML\u002Fwkhtmltopdf\n```bash\npandoc document.md \\\n  --pdf-engine=wkhtmltopdf \\\n  --css=style.css \\\n  -o document.pdf\n```\n\n#### PDF Options\n```bash\npandoc document.md \\\n  -V papersize:a4 \\\n  -V geometry:margin=2cm \\\n  -V fontfamily:libertinus \\\n  -V colorlinks:true \\\n  --toc \\\n  -o document.pdf\n```\n\n### Markdown to PowerPoint (.pptx)\n\n#### Basic Conversion\n```bash\npandoc slides.md -o presentation.pptx\n```\n\n#### Markdown Structure for Slides\n```markdown\n---\ntitle: Presentation Title\nauthor: Author Name\ndate: January 2024\n---\n\n# Section Header (creates section divider)\n\n## Slide Title\n\n- Bullet point 1\n- Bullet point 2\n  - Sub-bullet\n\n## Another Slide\n\nContent here\n\n::: notes\nSpeaker notes go here (not visible in slides)\n:::\n\n## Slide with Image\n\n![Description](image.png){width=80%}\n\n## Two Column Slide\n\n:::::::::::::: {.columns}\n::: {.column width=\"50%\"}\nLeft column content\n:::\n\n::: {.column width=\"50%\"}\nRight column content\n:::\n::::::::::::::\n```\n\n#### With Template\n```bash\n# Use corporate PowerPoint template\npandoc slides.md --reference-doc=template.pptx -o presentation.pptx\n```\n\n### YAML Frontmatter\n\nAdd metadata at the top of your Markdown:\n\n```yaml\n---\ntitle: \"Document Title\"\nauthor: \"Author Name\"\ndate: \"2024-01-15\"\nabstract: \"Brief description\"\ntoc: true\ntoc-depth: 2\nnumbersections: true\ngeometry: margin=1in\nfontsize: 11pt\ndocumentclass: report\n---\n\n# First Chapter\n...\n```\n\n### Python Integration\n\n```python\nimport subprocess\nimport os\n\ndef md_to_docx(input_path, output_path, template=None):\n    \"\"\"Convert Markdown to Word document.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n\ndef md_to_pdf(input_path, output_path, **options):\n    \"\"\"Convert Markdown to PDF with options.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if options.get('toc'):\n        cmd.append('--toc')\n    \n    if options.get('margin'):\n        cmd.extend(['-V', f\"geometry:margin={options['margin']}\"])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n\ndef md_to_pptx(input_path, output_path, template=None):\n    \"\"\"Convert Markdown to PowerPoint.\"\"\"\n    cmd = ['pandoc', input_path, '-o', output_path]\n    \n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    return output_path\n```\n\n### pypandoc (Python Wrapper)\n\n```python\nimport pypandoc\n\n# Simple conversion\noutput = pypandoc.convert_file('input.md', 'docx', outputfile='output.docx')\n\n# With options\noutput = pypandoc.convert_file(\n    'input.md', \n    'docx',\n    outputfile='output.docx',\n    extra_args=['--toc', '--reference-doc=template.docx']\n)\n\n# From string\nmd_content = \"# Hello\\n\\nThis is markdown.\"\noutput = pypandoc.convert_text(md_content, 'docx', format='md', outputfile='output.docx')\n```\n\n## Best Practices\n\n1. **Use Templates**: Create a reference document for consistent branding\n2. **Structure Headers**: Use consistent heading levels (## for slides, # for sections)\n3. **Test Incrementally**: Convert small sections first to verify formatting\n4. **Include Metadata**: Use YAML frontmatter for document properties\n5. **Handle Images**: Use relative paths and specify dimensions\n\n## Common Patterns\n\n### Batch Conversion\n```python\nimport subprocess\nfrom pathlib import Path\n\ndef batch_convert(input_dir, output_format, output_dir=None):\n    \"\"\"Convert all markdown files in a directory.\"\"\"\n    input_path = Path(input_dir)\n    output_path = Path(output_dir) if output_dir else input_path\n    \n    for md_file in input_path.glob('*.md'):\n        output_file = output_path \u002F md_file.with_suffix(f'.{output_format}').name\n        subprocess.run([\n            'pandoc', str(md_file), '-o', str(output_file)\n        ], check=True)\n        print(f\"Converted: {md_file.name} -> {output_file.name}\")\n\nbatch_convert('.\u002Fdocs', 'docx', '.\u002Foutput')\n```\n\n### Report Generator\n```python\ndef generate_report(title, sections, output_path, template=None):\n    \"\"\"Generate Word report from structured data.\"\"\"\n    \n    # Build markdown\n    md_content = f\"\"\"---\ntitle: \"{title}\"\ndate: \"{datetime.now().strftime('%B %d, %Y')}\"\n---\n\n\"\"\"\n    for section_title, content in sections.items():\n        md_content += f\"# {section_title}\\n\\n{content}\\n\\n\"\n    \n    # Write temp file\n    with open('temp_report.md', 'w') as f:\n        f.write(md_content)\n    \n    # Convert\n    cmd = ['pandoc', 'temp_report.md', '-o', output_path, '--toc']\n    if template:\n        cmd.extend(['--reference-doc', template])\n    \n    subprocess.run(cmd, check=True)\n    os.remove('temp_report.md')\n```\n\n## Examples\n\n### Example 1: Technical Documentation\n```python\nimport subprocess\n\n# Create comprehensive markdown\ndoc = \"\"\"---\ntitle: \"API Documentation\"\nauthor: \"Dev Team\"\ndate: \"2024-01-15\"\ntoc: true\ntoc-depth: 2\n---\n\n# Introduction\n\nThis document describes the REST API for our service.\n\n## Authentication\n\nAll API requests require an API key in the header:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n## Endpoints\n\n### GET \u002Fusers\n\nRetrieve all users.\n\n**Response:**\n\n| Field | Type | Description |\n|-------|------|-------------|\n| id | integer | User ID |\n| name | string | Full name |\n| email | string | Email address |\n\n### POST \u002Fusers\n\nCreate a new user.\n\n**Request Body:**\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\"\n}\n```\n\n## Error Codes\n\n| Code | Meaning |\n|------|---------|\n| 400 | Bad Request |\n| 401 | Unauthorized |\n| 404 | Not Found |\n| 500 | Server Error |\n\"\"\"\n\n# Save markdown\nwith open('api_docs.md', 'w') as f:\n    f.write(doc)\n\n# Convert to Word\nsubprocess.run([\n    'pandoc', 'api_docs.md',\n    '-o', 'api_documentation.docx',\n    '--toc',\n    '--reference-doc', 'company_template.docx'\n], check=True)\n\n# Convert to PDF\nsubprocess.run([\n    'pandoc', 'api_docs.md',\n    '-o', 'api_documentation.pdf',\n    '--toc',\n    '-V', 'geometry:margin=1in',\n    '-V', 'fontsize=11pt'\n], check=True)\n```\n\n### Example 2: Presentation from Markdown\n```python\nslides_md = \"\"\"---\ntitle: \"Q4 Business Review\"\nauthor: \"Sales Team\"\ndate: \"January 2024\"\n---\n\n# Overview\n\n## Agenda\n\n- Q4 Performance Summary\n- Regional Highlights\n- 2024 Outlook\n- Q&A\n\n# Q4 Performance\n\n## Key Metrics\n\n- Revenue: $12.5M (+15% YoY)\n- New Customers: 250\n- Retention Rate: 94%\n\n## Regional Performance\n\n:::::::::::::: {.columns}\n::: {.column width=\"50%\"}\n**North America**\n\n- Revenue: $6.2M\n- Growth: +18%\n:::\n\n::: {.column width=\"50%\"}\n**Europe**\n\n- Revenue: $4.1M\n- Growth: +12%\n:::\n::::::::::::::\n\n# 2024 Outlook\n\n## Strategic Priorities\n\n1. Expand APAC presence\n2. Launch new product line\n3. Improve customer onboarding\n\n## Revenue Targets\n\n| Quarter | Target |\n|---------|--------|\n| Q1 | $13M |\n| Q2 | $14M |\n| Q3 | $15M |\n| Q4 | $16M |\n\n# Thank You\n\n## Questions?\n\nContact: sales@company.com\n\"\"\"\n\nwith open('presentation.md', 'w') as f:\n    f.write(slides_md)\n\nsubprocess.run([\n    'pandoc', 'presentation.md',\n    '-o', 'q4_review.pptx',\n    '--reference-doc', 'company_slides.pptx'\n], check=True)\n```\n\n## Limitations\n\n- Complex Word formatting may not convert perfectly\n- PDF conversion requires LaTeX or wkhtmltopdf\n- PowerPoint animations not supported\n- Some advanced tables may need manual adjustment\n- Image positioning can be tricky\n\n## Installation\n\n```bash\n# macOS\nbrew install pandoc\n\n# Ubuntu\u002FDebian\nsudo apt-get install pandoc\n\n# Windows\nchoco install pandoc\n\n# Python wrapper\npip install pypandoc\n```\n\n## Resources\n\n- [Pandoc User's Guide](https:\u002F\u002Fpandoc.org\u002FMANUAL.html)\n- [GitHub Repository](https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc)\n- [Pandoc Templates](https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc-templates)\n- [pypandoc Documentation](https:\u002F\u002Fgithub.com\u002FJessicaTegworthy\u002Fpypandoc)\n",{"mcp":24,"name":5,"tags":29,"author":34,"models":35,"license":15,"version":43,"category":31,"languages":44,"department":47,"description":7,"capabilities":48},{"tools":25,"server":28},[26,27],"md_to_docx","md_to_pptx","office-mcp",[30,31,32,33],"markdown","conversion","office","pandoc","claude-office-skills",{"compatible":36,"recommended":40},[37,38,39],"claude-3-5-sonnet","gpt-4","gpt-4o",[41,42],"claude-sonnet-4","claude-opus-4","1.0",[45,46],"en","zh","All",[49,50],"markdown_conversion","document_generation","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fclaude-office-skills-skills\u002Fmd-to-office",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":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill md-to-office",{"tool":65,"command":66},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill md-to-office",{"tool":68,"command":69},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill md-to-office","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fclaude-office-skills-skills\u002Fmd-to-office\u002FSkill.md",true,[73],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"metadata.json","REFERENCE","参考文档",468,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fclaude-office-skills-skills\u002Fmd-to-office\u002Fmetadata.json",[80,87,92,99,104,111],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"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":88,"name":82,"nameZh":6,"description":83,"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},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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":100,"name":94,"nameZh":6,"description":95,"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},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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":112,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]