[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FVT9132XF1Z9ESQC6FT9YF":3,"skill-same:01M6FVT9132XF1Z9ESQC6FT9YF":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":70,"commitSha":71,"skillDirectory":72,"forksCount":73,"repositoryHtmlUrl":74,"repositoryHomepageUrl":6,"ownerHtmlUrl":75,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":76,"install":77,"resources":90},"01M6FVT9132XF1Z9ESQC6FT9YF","md-to-office",null,"Convert Markdown to Word, PowerPoint, and PDF using Pandoc - the universal document converter","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Flijie420461340\u002Fmd-to-office\u002FSKILL.md",[17,22,25],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"md to office","office","Word","opus","sonnet","pandoc","document","conversion","converter","operations","computer","PDF","convert","markdown","execution","file","https","code","powerpoint","github","2026-11-10 10:12:30",false,"---\nname: md-to-office\ndescription: Convert Markdown to Word, PowerPoint, and PDF using Pandoc - the universal document converter\nauthor: claude-office-skills\nversion: \"1.0\"\ntags: [markdown, conversion, pandoc, word, pdf, powerpoint]\nmodels: [claude-sonnet-4, claude-opus-4]\ntools: [computer, code_execution, file_operations]\nlibrary:\n  name: pandoc\n  url: https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc\n  stars: 42k\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",{"name":5,"tags":56,"tools":59,"author":62,"models":63,"library":66,"version":69,"description":7},[44,38,36,57,58,49],"word","pdf",[41,60,61],"code_execution","file_operations","claude-office-skills",[64,65],"claude-sonnet-4","claude-opus-4",{"url":67,"name":36,"stars":68},"https:\u002F\u002Fgithub.com\u002Fjgm\u002Fpandoc","42k","1.0","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Flijie420461340\u002Fmd-to-office",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add kbarbel640-del\u002Fskills --skill md-to-office",{"tool":83,"command":84},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill md-to-office",{"tool":86,"command":87},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill md-to-office","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Flijie420461340\u002Fmd-to-office\u002FSKILL.md",true,[91],{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"_meta.json","REFERENCE","参考文档",284,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Flijie420461340\u002Fmd-to-office\u002F_meta.json",[98,125,152,173,179,199],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":107,"publishedAt":51},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[104],{"categoryNo":105,"categoryName":106,"taxonomyType":28,"taxonomyTypeDesc":29},"01JBSEEDCAT000000000000036","内容创作者",[108,109,110,111,112,113,114,115,40,116,117,118,119,120,121,122,47,123,124],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","instructions","text","tool","system","improve","productivity","marketplace","content","ai agents",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":134,"publishedAt":51},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[131],{"categoryNo":132,"categoryName":133,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[135,110,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,115,151],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":161,"publishedAt":51},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[158],{"categoryNo":159,"categoryName":160,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[162,163,164,165,166,167,168,111,169,149,151,170,110,171,172],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":174,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":178,"publishedAt":51},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[177],{"categoryNo":159,"categoryName":160,"taxonomyType":20,"taxonomyTypeDesc":21},[165,164,163,162,172,167,168,111,166,149,151,169,170,110,171],{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":51},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[186,187,188,189,190,191,192,193,194,195,196,197,198],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":209,"publishedAt":51},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[205,206],{"categoryNo":132,"categoryName":133,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":207,"categoryName":208,"taxonomyType":28,"taxonomyTypeDesc":29},"01JBSEEDCAT000000000000037","律师与法务",[210,211,212,213,111,214,215,70,216,170,217,218,219,220,221,47,222,223,50],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance"]