← 返回
未分类 中文

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 docu...
将文件转换为格式优美的 Markdown。触发条件:用户请求将文件转为 Markdown,或从 PDF/DOCX/PPTX/XLSX 提取文本,或格式化文档。
1coos 1coos 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 457
下载
💾 1
安装
1
版本
#latest

概述

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
----------------------------------
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:

```bash

bun run ${CLAUDE_SKILL_DIR}/scripts/main.ts $ARGUMENTS

```

  1. Report results: Show the output file path and a brief summary of the conversion.
  2. 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

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 08:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 381 📥 144,098
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 457 📥 151,549
knowledge-management

1coos-calendar-cn

1coos
查询中国传统日历/黄历信息。触发条件:用户询问农历、黄历、万年历、节气、五行、宜忌、干支、佛历、道历等。
★ 0 📥 472