Перейти к содержимому
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 — любой кодинг-агент, которым пользуетесь.

Ссылки