nmor/the-claude-council/markdown-style
Claude Code and agent skill by nmor/the-claude-council
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Markdown style — CommonMark + GFM compliant, yamllint-clean YAML frontmatter, markdownlint rules enforced (MD004 dashes for ul, MD022 blanks around headings, MD031 blanks around fenced code, MD032 blanks around lists, MD040 fenced code language tag, MD025 single H1, MD034 no bare URLs, MD047 single trailing newline). Line length capped at 100 chars (longer tolerated only on unbreakable table rows or URLs). One H1 per document; heading hierarchy never skips levels. Select explicitly when this guidance applies.
Install
npx vskill@latest install nmor/the-claude-council/markdown-styleSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nmor/the-claude-council/markdown-style.
markdown-style
Migrated 2026-06-02 from~/.claude/rules-library/markdown/as part of the lazy-rules-loadingplan. Phase H will delete the source files.Size budget: 17 KB —token-budget.mjs --check.
<!-- ============================================================ Section: markdown/coding-style.md ============================================================ -->
Markdown Coding Style
Auto-fires on every*.md,*.mdc,*.markdownfile.Standards: CommonMark 0.31.2 (specification, Jan 2024),GFM (GitHub Flavored Markdown) Spec, **markdownlint ruleset MD001–MD059, CommonMark Reference Implementation(cmark)**.
Core Principle
Markdown is a content surface, not a presentation surface. Every committed `*.md` file is portable across CommonMark renderers, has predictable rendering, passes `markdownlint` with zero warnings, uses semantic structure (headings, lists, tables, code blocks) for meaning rather than visual styling, and stays under the project's line-length cap so it remains diff-friendly.
A markdown file that renders fine in one viewer but breaks in another is a portability bug. A markdown file with 500-char lines is a review-hostile bug. A markdown file that renders visually but fails markdownlint is technical debt.
Running the lint (Council corpus)
The gate is ~/.claude/skills/council-maintenance/tests/md-lint.sh (green since 2026-11-15: 957 files, 0 errors — keep it that way). Config: ~/.claude/.markdownlint-cli2.jsonc. Three conventions:
- Vendored content is ignored, never reformatted (upstream skill
packs, council seats, tests/**, backups/**) — rewrapping it breaks update diffs. New imports get an ignores entry.
- The config's globs APPEND to CLI args — `markdownlint-cli2
one-file.md still lints the whole corpus; --fix` fixes it all.
- `rules-library/` carries a nested config (MD041/MD028 off):
its files open with the owner-policy banner blockquote by design.
When wrapping long lines, never let a tool break inside code spans or frontmatter (break_on_hyphens must be off): a hyphen-split ` file-name.md ` corrupts the reference it names.
Mandatory markdownlint rules
Every *.md file MUST pass these rules. They are the floor; projects may tighten further but never relax.
Headings + structure
| Rule | What it enforces | |
|---|---|---|
| MD001 | Heading levels increment by one — no jumping from ## to #### | |
| MD003 | Heading style is consistent — ATX (# heading) preferred over Setext underline | |
| MD018 | No missing space after hash — # heading, NOT #heading | |
| MD019 | No multiple spaces after hash — # heading, NOT # heading | |
| MD022 | Blank line above AND below every heading | |
| MD023 | Heading at the start of its line (no leading indent) | |
| MD024 | Each heading text is unique (or unique within siblings, per config) | |
| MD025 | One top-level # heading per document | |
| MD026 | No trailing punctuation in headings (no # Title.) | |
| MD036 | No emphasis-as-heading — **Header** on its own line is a heading; use ### Header |
Lists
| Rule | What it enforces | |
|---|---|---|
| MD004 | Unordered lists use - everywhere — never * or + | |
| MD005 | Consistent indentation within a list | |
| MD007 | Unordered-list indent is 2 spaces per level | |
| MD029 | Ordered lists use 1. / 2. / 3. (or all-ones — configured per project) | |
| MD030 | One space between list marker and content — - item, NOT - item | |
| MD032 | Blank line above AND below every list |
Code blocks
| Rule | What it enforces | |
|---|---|---|
| MD031 | Blank line above AND below every fenced code block | |
| MD040 | Fenced code blocks specify a language — `typescript, NOT bare ``` | |
| MD046 | Code block style consistent — fenced ( ` ) preferred over indented | |
| MD048 | Code fence character is backtick — never tilde |
Whitespace + line length
| Rule | What it enforces | |
|---|---|---|
| MD009 | No trailing whitespace at line ends | |
| MD010 | No hard tabs — spaces only | |
| MD012 | No multiple consecutive blank lines | |
| MD013 | Line length cap (100 chars project default; longer tolerated only on unbreakable rows like long table rows or long inline URLs) | |
| MD047 | File ends with exactly one trailing newline |
Links + references
| Rule | What it enforces | |
|---|---|---|
| MD034 | No bare URLs — wrap in <https://...> or [text](https://...) | |
| MD039 | No spaces inside link text brackets [text] | |
| MD042 | No empty link text [](url) | |
| MD051 | Link fragments (#section) resolve to existing headings | |
| MD052 | Reference-style links ([text][ref]) resolve to a definition | |
| MD053 | Reference link definitions are used |
Tables
| Rule | What it enforces | |
|---|---|---|
| MD055 | Table pipe style consistent — leading + trailing pipes | |
| MD056 | Each row has the same number of cells as the header | |
| MD058 | Blank line above AND below every table |
HTML
| Rule | What it enforces | |
|---|---|---|
| MD033 | No inline HTML (configure exceptions per project: <br>, <details> are common allowed elements) | |
| MD041 | First line of file is a top-level heading (#) — no preceding text |
Hard rules
1. Language tag on every fenced code block
Every triple-backtick fence carries a language identifier:
The text / console / output tags exist for blocks that aren't code (sample console output, plain text). Use them explicitly rather than dropping the language.
2. Use dashes for unordered lists (MD004)
The dash is the markdownlint default; consistency across the codebase matters more than the choice itself.
3. Blank line above and below headings, lists, code
tables (MD022 + MD031 + MD032 + MD058)
Squashed structure (no blank lines) confuses many renderers and breaks tooling that walks the AST.
4. One top-level heading per file (MD025)
The # heading is the document title. Sub-sections use ##, ###, and so on. NEVER two # headings in one file — split the document or demote one.
5. Heading hierarchy increments by one (MD001)
Skipping levels breaks screen-readers + outline-style navigation in IDEs.
6. Tables have a header row + a separator row
The separator row (--- per column) is mandatory. Without it, the table renders as a paragraph of pipes in some renderers.
For alignment:
7. Line length is project-capped (MD013, default 100)
Wrap prose at ~100 chars. Exceptions are tolerated ONLY for:
- A table row with an unbreakable URL or long identifier
- A code-block line that can't be split (e.g., a long command)
- A reference-style link definition with a long URL
Inline-code that pushes a paragraph over the cap should be moved to a fenced block.
8. Reference-style links for long URLs
Inline [text](https://...) works too — but for repeated references or long URLs, the reference-style keeps prose readable.
9. Code spans use single backticks; code blocks use triple
- Inline code: `
variableName→variableName` - Block code: triple-backtick fence with a language tag
- Code containing backticks: use double backticks for the
inline span — ` code withbackticksinside `
10. Frontmatter is YAML, fenced with ---
Markdown files with frontmatter (e.g., agent / skill files):
The frontmatter block is the FIRST thing in the file — before the H1. Empty line after the closing ---.
Required tooling
CLI lint (mandatory in every repo)
Pre-commit hook
Per ~/.claude/rules-library/common/hooks.md:
CI workflow
Project config (.markdownlint.jsonc)
The canonical strict baseline:
MD033 (no inline HTML) is often disabled at project level when <details> / <br> are needed. MD041 (first line H1) is often disabled for files with frontmatter.
Anti-patterns
Anti-pattern 1: Mixing list markers
Pick - and stick with it.
Anti-pattern 2: Bare URLs in prose
Always wrap: See <https://example.com> or See [this site](https://example.com).
Anti-pattern 3: Tab characters for indentation
Use spaces (4 spaces for code-block indentation in raw markdown; rare — fenced blocks are preferred).
Anti-pattern 4: Emphasis as heading
Use a real heading:
Anti-pattern 5: Skipping heading levels
Always increment by one.
Anti-pattern 6: Trailing whitespace + hidden line-break
spaces
A line ending in two-or-more spaces forces a <br> in many renderers. This is a feature in some content, a bug in most. MD009 catches both — configure the project to allow two-space line breaks only where intentional.
Anti-pattern 7: HTML for visual styling
Markdown is content; styling belongs in CSS / the renderer. Use semantic structure: **Important** for bold, > Important for blockquote, !!! warning (in MkDocs / similar) for callouts.
Cross-references
~/.claude/rules-library/common/extreme-lint-policy.md— strict
thresholds (MD013 line length, MD040 fenced code language, MD031/MD032/MD022 surround rules)
~/.claude/rules-library/common/coding-style.md— comment rules
apply across every language including markdown
~/.claude/rules-library/common/docs-sync-with-code.md— markdown
files are part of the docs surface that ships with code
~/.claude/rules-library/common/documentation-requirements.md—
Diátaxis four-quadrant model; markdown is the format
Standards cited
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/markdown-style/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nmor/the-claude-council/markdown-style)