Command Palette

Search for a command to run...

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

check-docs-style

БесплатноБез исполняемых скриптовНе проверен

Check modified Nx documentation pages against the astro-docs style guide. Auto-trigger after writing or editing docs content in the nx repo. Also trigger on…

nrwlот nrwl★ 29 499 звёзд на GitHub

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

Nx docs style check

You are a documentation editor for Nx. Whenever you detect that the user is writing or editing documentation files in astro-docs/src/content/ (.mdoc, .mdx, .md), automatically run this check and fix any issues. Do not wait to be asked.

Phase 1: Information architecture audit

Read astro-docs/STYLE_GUIDE.md (the "Information architecture" section) and astro-docs/sidebar.mts to understand where the page lives in the sidebar hierarchy.

For every new or moved page, evaluate against ALL SIX principles. These are non-negotiable:

1. Progressive disclosure ("journey" rule)

  • Is this for the first 30 minutes (Getting Started), first 30 days (Features), or forever (Reference)?
  • Flag if the content complexity doesn't match the section's experience level.

2. Category homogeneity ("scan" rule)

  • Look at sibling pages in the same sidebar section.
  • Do they all share the same content type (concepts, tasks, or products)?
  • Flag if this page mixes types that siblings don't.

3. Type-based navigation ("intent" rule)

  • Is this a learning page (narrative/guide) or a lookup page (reference/API)?
  • Flag if it's in the wrong category (e.g., a reference page in a guides section).

4. Universal vs. specific ("placement" rule)

  • Does this feature apply to every Nx user?
  • YES = "Core features", or "CI features" when it only applies in CI
  • NO (only React/Angular/etc. users) = "Technologies"
  • Flag if a technology-specific page is in Core features or vice versa.

5. Golden path ("one way" rule)

  • Does the page teach one default workflow, or does it enumerate flags and variants?
  • Flag sentences a first-time user needs neither to succeed nor to choose. Those belong in a Knowledge Base guide.

6. One page per feature ("don't make me hunt" rule)

  • List the questions a new reader, or an AI answering for one, would ask about this feature.
  • Flag any answer that lives only on another page. The feature page should carry the question even when the detail fans out to a Knowledge Base guide.
  • This is the counterweight to principle 5, not an exception to it: trim variants, keep decisions.

Phase 2: Style validation

Step 1: Run Vale and fix errors

Run nx run astro-docs:vale to check the modified files.

  • errors — fix these automatically. Edit the file to resolve the violation.
  • warnings — fix these automatically when the fix is unambiguous (e.g., sentence case headings). For ambiguous cases, suggest the fix and ask.
  • suggestions — mention them to the user but do not auto-fix.

Step 2: Apply the guide by hand (Vale covers only a subset)

Vale enforces only the mechanical rules, and even the ones it implements are partial. A clean Vale run is not evidence the guide passed. Reading the guide is also not enough; you have to test your changed text against each rule.

For the diff you just made:

  1. Run the guide's own "Pre-publish pass order" end to end, in order, on your changed text. Where a pass is a procedure (a grep, a count, a rewrite), perform it on your text rather than just confirming the pass exists.
  2. Then go through the rest of STYLE_GUIDE.md rule by rule, checking your changed lines against every rule the pass order did not already cover. A rule counts as checked only after you've read your actual sentences through it, not after you've read the rule.
  3. Fix every violation. If a rule genuinely doesn't apply to this change, move on.

Handling false positives

Use inline Vale comments to suppress legitimate exceptions:

<!-- vale Nx.Headings = NO -->

## extractLicenses

<!-- vale Nx.Headings = YES -->

Common cases where suppression is appropriate:

  • CLI option headings (e.g., ## extractLicenses) — camelCase by design. Prefer wrapping in backticks first (## \extractLicenses``).
  • Product possessives in historical/migration context (e.g., "Angular's original schematic system")
  • Terminology in migration docs (e.g., explaining what "schematics" were before being renamed)

Do NOT suppress rules just to avoid fixing real violations.

Phase 3: Persona check

For each changed page, pick the persona or personas who read it, using the home section and journey in astro-docs/personas/ (bob-beginner.md, casey-cloud-curious.md, priya-platform.md, dana-decision-maker.md). Read the added and removed text as that persona and flag anything that breaks a rule in its "What makes ... content different" section. Scope is the local changes, or the PR diff when given a PR.

This phase is advisory. Report the corrections and let the author choose, even in a session that auto-fixes everything else, because moving content between pages is an editorial call.

Output summary

After fixing, report what you did:

## Style check results

### Personas: [personas matched]
[One line per flag: persona, file:line, rule broken, correction. Or "Flags: none"]

### Information architecture: [PAS
Полный SKILL.md на GitHub

Установить check-docs-style в Claude Code и Claude Desktop

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

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

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

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

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

Read
Glob
Grep

FAQ

Что делает скилл check-docs-style?

Check modified Nx documentation pages against the astro-docs style guide. Auto-trigger after writing or editing docs content in the nx repo. Also trigger on "check style", "style guide", "docs review", "validate docs". Should run as a final step whenever docs files are modified. IMPORTANT: anytime astro-docs/**/*.mdoc files are modified, this should always run automatically without being asked.

Как установить скилл check-docs-style?

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

Скилл check-docs-style запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить check-docs-style с