lint-docs
Audit pages and include fragments under docs/ against the Vultron documentation style guide. Applies deterministic substitutions (spelling via codespell…
от CERTCC★ 22 звезды на GitHub
Установить lint-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Skill: Lint Docs
Semantic linter for hand-written docs/ prose. Complements format-markdown
(mechanical markdown) and build-docs (link and nav validity) — this skill
checks what neither can see.
Rules and IDs: ../shared/docs-style-guide.md.
Normative anchor: specs/diataxis-requirements.yaml DF-09-001.
Interface
| Invocation | Targets |
|---|---|
| no argument | Pages changed on this branch: git diff origin/main...HEAD --name-only -- docs/ |
| explicit paths | Named files or directories, e.g. lint-docs docs/howto/ |
--quadrant <name> |
The tree for one quadrant: tutorial, howto, reference, explanation |
Returns: the list of fixes applied and the findings reported.
Auto-fix guard: edit kind, not file count
What may be applied without confirmation depends on the kind of edit, never on how many files are in the target set (ADR-0092):
| Edit kind | Rules | At any scale |
|---|---|---|
| Deterministic substitution — one token maps to one replacement | SG-08 (register an acronym), SG-35 (graph → flowchart), SG-37 (American spelling) |
Apply |
| Prose rewrite — a model rewords a sentence | SG-02 (alias replacement), SG-24 (filler), SG-17 through SG-19 (voice) | Propose: quote the sentence and the replacement text, and apply only on confirmation |
markdownlint --fix and ruff format run tree-wide with no threshold because their
edits are substitutions. A prose rewrite carries per-edit risk that does not
shrink with volume, so it is proposed with its replacement rather than applied
silently — at one file or at four hundred. SG-17 through SG-19 already self-cap
on isolated occurrences; pervasive drift is a Phase 4 finding (SG-20).
Phase 1 — Resolve targets
Expand the invocation to a file list, then drop the exempt paths:
docs/adr/**— MADR template, own conventionsdocs/reference/code/**— mkdocstrings-generateddocs/reference/case_states/**— generated state pagesdocs/reference/codebase/**— regenerated byacquire-codebase-knowledgedocs/_acronyms/**,docs/ns/**— the acronym snippet and namespace files- generated content classes:
*diagram*.md,*table*.md,reference/user_stories/story_*.md
The exemption list is a list of content classes, not a nav mechanism.
not_in_nav in mkdocs.yml decides which files get a nav entry; it says
nothing about whether a file is prose. Its list holds _*.md include
fragments, which are prose and are in scope (DF-09-007), and it also holds
developer/** and agents/*.md, which the style guide's scope table puts
explicitly in scope. Pointing lint scope at not_in_nav is what left the
35 fragments of the Protocol Specification unlinted (ADR-0092). Do not
reintroduce it: name the content class you mean.
An empty target set is a failure, not a clean result (DF-09-009). If the
list is empty after exemptions, stop and report
lint-docs: no lintable targets resolved for <invocation> — do not proceed to
Phase 2 and do not report success. A caller using this skill as a gate treats
that message as the gate not being satisfied.
Report the target count.
Fragments and assembly units
A file that other pages pull in with {% include-markdown %} is a
fragment; a page that pulls fragments in is an assembly unit. Both are
prose and both are targets. They differ in which rules can be evaluated
against them (DF-09-007, DF-09-011, ADR-0092):
- Sentence- and block-scoped rules apply to the fragment, with the fragment's own line numbers: spelling (SG-37), filler (SG-24), sentence and paragraph shape (SG-13 through SG-16), list and table discipline (SG-28 through SG-31), Mermaid title and type (SG-34, SG-35), voice (SG-17 through SG-20), banned aliases (SG-02), uncited normative claims (SG-25). A finding located in the assembled page is one a maintainer cannot act on, so findings always cite the fragment.
- Page-scoped rules are never evaluated against a fragment: SG-07, SG-09,
SG-10, SG-11, SG-12, SG-21, SG-32, SG-33, SG-39, SG-41, SG-44, SG-48, SG-50.
Applied to a fragment
they yield artifacts of the split, not prose defects — twelve expansions of
"VFD" on one rendered specification page, or a missing H1 that
heading-offsetdemotes on purpose..markdownlint-cli2.yamlset the precedent by disabling MD041 for the same reason. - Page-scoped rules are evaluated against every assembly unit. Each is
already in the target set, because no page is
_-prefixed. The Protocol Specification has several — its part, annex and Open Questions pages and the all-in-onefull.md, which is out of nav but published; the list and each page's fragments are innotes/rfc-spec-authoring.md§ "Page Map". Read each page's{% include-markdown %}directives in order and assess the page as the reader sees it: one first use per acronym, one concept order, one H1. A fragment rendered by several pages is assessed
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lint-docs?
Audit pages and include fragments under docs/ against the Vultron documentation style guide. Applies deterministic substitutions (spelling via codespell, acronym registration, legacy mermaid syntax), proposes prose rewrites (filler, aliases, isolated voice slips) with their replacement text, and reports judgment findings (concept order, list discipline, quadrant misclassification) with a recommendation. Fails on an empty target set. Use after writing docs, as check-docs-sync's gate, or to audit an existing tree.
Как установить скилл lint-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lint-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…