Docs Feature Style
Purpose
Normalize documentation style and structure so authors can choose terminology
and typography without hard-coding rules into every workflow. Works on any
markdown, and is the optional final step of docs-feature-write.
Operating Mode
Graceful degradation:
- Detect
valeandmarkdownlint(ormarkdownlint-cli) onPATH. - When a tool is present, run it with the project's own config if present, otherwise the shipped example config, or skip to manual rules; then apply fixes.
- When a tool is absent, apply the same rules manually from
references/style-rules.md. Never block on a missing binary. - Report which tools ran and which rules were applied manually.
Reference Routing
references/style-rules.md: required. Terminology, typography, and structure rules, with configurable examples.references/tooling.md: required before running or skipping linters. Defines detection, invocation, and manual fallback mapping.
Assets
assets/vale/.vale.iniandassets/vale/styles/: example Vale config and a sample vocabulary.assets/markdownlint/.markdownlint.jsonc: example markdownlint config.
Assets are starting points. Copy them into the active project and adapt; do not treat the examples as mandatory project rules.
Workflow
- Read
references/tooling.md. - Detect available linters.
- Read
references/style-rules.md. - For each target file: run available linters, then apply remaining rules manually.
- Make minimal edits that preserve meaning. Do not rewrite content.
- Report tools used, rules applied, and files changed.
Avoid
- Do not require a specific linter to be installed.
- Do not impose example terminology or typography as mandatory rules.
- Do not rewrite or restructure content beyond style and structure fixes.
- Do not depend on other skills in this repository; this pack is self-contained.