跳到正文
TakoAPI
返回技能列表

markdown-formatter

由 michael-laffin 提供

PDF & Documents
4.3k下载量由 clawskills.sh 提供
3星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Format and beautify markdown documents.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install michael-laffin/markdown-formatter

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接