Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

md-review

БесплатноЗапускает вложенные скриптыНе проверен

Pre-publication quality gate for authored Markdown — heading structure, on-disk link resolution, readability, accessibility, terminology. Use when reviewing…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Markdown Review Gate

The quality gate that runs before Markdown becomes HTML. A converter will happily render a document with three H1s, four dead links, an image with no alt text, and a 67-word sentence — the HTML validates and the page is still bad. This skill catches those defects while they are still cheap to fix, and fails the build when they are blocking.

Zero network calls, by design. Relative links and anchors resolve on disk; external URLs are inventoried and reported but never fetched. A gate that fails because someone else's server was slow is a gate engineers learn to ignore.

When to use this skill

  • Before publishing a doc, guide, or article that will be converted to HTML
  • Wiring a docs CI gate that must block a merge on real defects without blocking on style
  • Auditing an inherited Markdown corpus to size the accessibility and link-rot backlog
  • Enforcing house terminology across a docs set (front-end vs frontend, GitHub vs Github)
  • Checking accessibility of source content against the WCAG criteria that survive conversion
  • Calibrating prose to an audience — a runbook read at 3am needs a different band than an API reference

Inputs the skill expects

  • One or more Markdown files (with or without YAML frontmatter)
  • A review config JSON: required frontmatter fields, structure and accessibility thresholds, term map, gate settings
  • The target audience for the prose (drives the readability band — the single most consequential input)
  • The project root, when the corpus uses root-relative (/docs/...) links
  • The blocking policy: which severity fails the build, and the warning budget

Clarify First

Before generating, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Target audience for the prose: why it changes the output: selects the Flesch band and grade ceiling; a general-public band (60-80) and a specialist band (40-60) flag opposite sets of sentences.
  • Required frontmatter fields: why it changes the output: every missing field is an error, so guessing the schema produces either false blockers or a silent gap.
  • Blocking severity and warning budget: why it changes the output: decides whether the run reports or blocks, which determines whether this is an audit or a gate.
  • Whether the corpus is new or inherited: why it changes the output: an inherited corpus needs report-only phase 1, not a gate that fails on day one.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Workflows

Workflow 1 — Gate a document before publication

The default path. Run all three tools; any non-zero exit blocks.

  1. Pick or write a config profile (start from assets/sample_review_config.json).
  2. Run the structure/frontmatter/accessibility gate.
  3. Run the offline link checker.
  4. Run the readability and terminology scorer.
  5. Fix errors; triage warnings against the budget.
cd "$(git rev-parse --show-toplevel)"
CFG=markdown-html/md-review/assets/sample_review_config.json
DOC=markdown-html/md-review/assets/sample_article.md

python3 markdown-html/md-review/scripts/md_review_gate.py --input "$DOC" --config "$CFG" --format text
python3 markdown-html/md-review/scripts/link_checker.py --input "$DOC" --root "$PWD" --format text
python3 markdown-html/md-review/scripts/readability_scorer.py --input "$DOC" --config "$CFG" --format text

The shipped sample_article.md deliberately contains real defects, so this run exits non-zero. Swap in sample_article_clean.md to see all three pass.

Workflow 2 — Audit a corpus without blocking anything

Phase 1 of any rollout. Collect the real finding distribution before deciding what to enforce.

  1. Run every file with --fail-on never so nothing exits non-zero.
  2. Emit JSON, one report file per source file, into a directory you choose (OUT).
  3. Rank rules by frequency; tune thresholds and the term map before switching the gate on.
cd "$(git rev-parse --show-toplevel)"
CFG=markdown-html/md-review/assets/sample_review_config.json

OUT=./md-audit   # where the per-file JSON reports go
mkdir -p "$OUT"

find markdown-html/md-review/assets -name '*.md' -print0 |
  while IFS= read -r -d '' f; do
    python3 markdown-html/md-review/scripts/md_review_gate.py \
      --input "$f" --config "$CFG" --format json --fail-on never > "$OUT/$(basename "$f" .md).json"
  done

python3 - "$OUT" <<'PY'
import collections, json, pathlib, sys
reports = [json.loads(p.read_text()) for p in pathlib.Path(sys.argv[1]).glob("*.json")]
counts = collections.Counter(f["rule"] for r in reports for f in r["findings"])
for rule, n in counts.most_common():
    print(f"{n:4d}  {rule}")
PY

Report files are named after the source file, so give each corpus run its o

Полный SKILL.md на GitHub

Установить md-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/review_report_template.mdassets/sample_article.mdassets/sample_article_clean.mdassets/sample_review_config.jsonreferences/readability-accessibility-and-terminology.mdreferences/review-rulebook-and-severity-model.mdscripts/link_checker.pyscripts/md_review_gate.pyscripts/readability_scorer.py

FAQ

Что делает скилл md-review?

Pre-publication quality gate for authored Markdown — heading structure, on-disk link resolution, readability, accessibility, terminology. Use when reviewing docs before publishing, wiring a docs CI gate, or auditing a Markdown corpus.

Как установить скилл md-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл md-review запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить md-review с