1coos-markdown-converter

Convert files to beautifully formatted Markdown. TRIGGER when user asks to convert a file to Markdown, extract text from PDF/DOCX/PPTX/XLSX, or format a document as Markdown.

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

Copy this and send it to your AI assistant to learn

Install skill "1coos-markdown-converter" with this command: npx skills add 1coos/1coos-markdown-converter

Markdown Converter

Convert files to beautifully formatted Markdown in two steps: convert with uvx markitdown[all], then beautify with configurable style formatting.

Usage

/1coos-markdown-converter <file-path> [--style github|commonmark|clean|obsidian] [--output-dir path] [--convert-only]

Parameters

ParameterRequiredDescription
<file-path>YesPath to the file to convert
--styleNoFormatting style: github (default), commonmark, clean, obsidian
--output-dirNoOutput directory (default: skills/1coos-markdown-converter/output)
--convert-onlyNoOnly convert, skip formatting step
--configNoPath to config.json (default: skill directory config.json)

Supported Formats

  • Documents: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls)
  • Web/Data: HTML, CSV, JSON, XML
  • Media: Images (EXIF + OCR), Audio (EXIF + transcription)
  • Other: ZIP (iterates contents), YouTube URLs, EPub

Formatting Styles

github (default)

GitHub Flavored Markdown — table column alignment, fenced code blocks, task lists.

commonmark

Strict CommonMark — enforces sequential heading levels (no skipping h1 to h3).

clean

Minimal style — removes excessive formatting, simplifies redundant links.

obsidian

Obsidian Flavored Markdown — converts internal links to [[wikilinks]], normalizes callout syntax (> [!type]), formats properties/frontmatter, normalizes ==highlight== syntax, and aligns tables. Ideal for notes destined for Obsidian vaults.

Configuration

Core parameters are configurable via config.json in the skill directory:

{
  "style": "github",
  "outputDir": null,
  "convertOnly": false,
  "formatting": {
    "maxWidth": 80,
    "listMarker": "-",
    "emphasisMarker": "*",
    "strongMarker": "**",
    "codeBlockStyle": "fenced"
  },
  "converter": {
    "timeout": 60000,
    "charset": "UTF-8"
  }
}

CLI arguments always override config.json values.

Execution Instructions

When the user invokes this skill:

  1. Check prerequisites: Verify uvx is available. If not, instruct the user to install uv: curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Run conversion: Execute the script:
    bun run ${CLAUDE_SKILL_DIR}/scripts/main.ts $ARGUMENTS
    
  3. Report results: Show the output file path and a brief summary of the conversion.
  4. Handle errors:
    • Exit code 2: argument error — show the specific error message
    • Exit code 3: missing dependency — guide user to install uv
    • Exit code 4: conversion failure — suggest checking file format support

Examples

# Convert a PDF with default github style
/1coos-markdown-converter report.pdf

# Convert Word document with clean style
/1coos-markdown-converter document.docx --style clean

# Convert Excel to markdown without formatting
/1coos-markdown-converter data.xlsx --convert-only

# Specify output directory
/1coos-markdown-converter slides.pptx --output-dir ~/notes

Notes

  • First run caches markitdown[all] dependencies; subsequent runs are faster
  • Uses markitdown[all] to ensure full format support (PDF, OCR, audio transcription)
  • Output preserves document structure: headings, tables, lists, links
  • For complex PDFs with poor extraction, consider using Azure Document Intelligence

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

A2a Match

# A2A Match - 智能供需匹配平台

Archived SourceRecently Updated
General

novel-writer

小说写作助手。触发词:写小说/创作小说/生成小说/帮我写个小说/小说大纲/网文创作。工作流:需求收集(类型/风格/字数)→ AI生成大纲(世界观/人物/剧情/章节规划)→ 用户确认 → 自动逐章生成 → 一章一个文件保存。支持玄幻、仙侠、都市、科幻、历史、武侠、网游、灵异、军事、竞技等主流网文类型,面向新手作者。

Archived SourceRecently Updated
General

1688-distribution-user-guide

1688分销一件代发新手引导助手。当用户询问分销开店、绑店授权、选品策略、铺货操作、采购管理、售后处理、店铺成长等问题时使用。适用场景包括:用户说"怎么开店"、"怎么绑店"、"授权失败"、"如何选品"、"铺货失败怎么办"、"价格怎么设置"、"售后怎么处理"、"什么平台适合我"、"一件代发怎么做"等分销新人常见问题。

Archived SourceRecently Updated
General

ai-news-brief

自动抓取 AI/算力/大模型/GPU 相关最新资讯简报,使用 Chrome 浏览器自动化绕过反爬,支持多个科技媒体来源,支持PDF生成和邮件推送

Archived SourceRecently Updated