Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

markdown-formatter

bởi michael-laffin

PDF & Documents
4.3kLượt tải do clawskills.sh công bố
3Sao
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Format and beautify markdown documents.

Mô tả

Kỹ năng này làm gì

Formats, lints, and beautifies markdown documents using configurable style guides including CommonMark, GitHub Flavored Markdown, and custom rules. Handles heading normalization, list consistency, line wrapping, whitespace cleanup, and link validation. Supports single-file and batch processing.

Handles batch processing and style-guide enforcement in one pass, replacing the need to manually run separate linters and formatters.

Khi nào nên dùng

  • Normalizing heading styles across a project's README files
  • Cleaning up markdown output from LLMs before publishing
  • Batch-formatting docs before a documentation site deployment
  • Linting API spec markdown for consistency before code review
  • Reformatting blog posts to match a house style guide

Quy trình ví dụ

ĐẦU VÀO

User asks: format this markdown file to GitHub style with 80-char line wrap

AGENT
  1. 1

    Receives markdown content or file path from user

  2. 2

    Calls formatMarkdown with style set to 'github' and maxWidth 80

  3. 3

    Checks returned warnings array for any issues

  4. 4

    Returns formattedMarkdown to user along with stats on changes made

ĐẦU RA

Formatted markdown string with normalized headings, consistent list markers, fenced code blocks, and lines wrapped at 80 characters

Cài đặt

clawhub install michael-laffin/markdown-formatter

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết