nmor/the-claude-council/markdown-style

Claude Code and agent skill by nmor/the-claude-council

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

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-style

Semi-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-loading
plan. 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, *.markdown file.
Standards: CommonMark 0.31.2 (specification, Jan 2024),
GFM (GitHub Flavored Markdown) Spec, **markdownlint rule
set 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
RuleWhat it enforces
MD001Heading levels increment by one — no jumping from ## to ####
MD003Heading style is consistent — ATX (# heading) preferred over Setext underline
MD018No missing space after hash — # heading, NOT #heading
MD019No multiple spaces after hash — # heading, NOT # heading
MD022Blank line above AND below every heading
MD023Heading at the start of its line (no leading indent)
MD024Each heading text is unique (or unique within siblings, per config)
MD025One top-level # heading per document
MD026No trailing punctuation in headings (no # Title.)
MD036No emphasis-as-heading — **Header** on its own line is a heading; use ### Header
Lists
RuleWhat it enforces
MD004Unordered lists use - everywhere — never * or +
MD005Consistent indentation within a list
MD007Unordered-list indent is 2 spaces per level
MD029Ordered lists use 1. / 2. / 3. (or all-ones — configured per project)
MD030One space between list marker and content — - item, NOT - item
MD032Blank line above AND below every list
Code blocks
RuleWhat it enforces
MD031Blank line above AND below every fenced code block
MD040Fenced code blocks specify a language — ​`typescript, NOT bare ​```
MD046Code block style consistent — fenced ( ` ) preferred over indented
MD048Code fence character is backtick — never tilde
Whitespace + line length
RuleWhat it enforces
MD009No trailing whitespace at line ends
MD010No hard tabs — spaces only
MD012No multiple consecutive blank lines
MD013Line length cap (100 chars project default; longer tolerated only on unbreakable rows like long table rows or long inline URLs)
MD047File ends with exactly one trailing newline
Links + references
RuleWhat it enforces
MD034No bare URLs — wrap in <https://...> or [text](https://...)
MD039No spaces inside link text brackets [text]
MD042No empty link text [](url)
MD051Link fragments (#section) resolve to existing headings
MD052Reference-style links ([text][ref]) resolve to a definition
MD053Reference link definitions are used
Tables
RuleWhat it enforces
MD055Table pipe style consistent — leading + trailing pipes
MD056Each row has the same number of cells as the header
MD058Blank line above AND below every table
HTML
RuleWhat it enforces
MD033No inline HTML (configure exceptions per project: <br>, <details> are common allowed elements)
MD041First 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:

markdown
​```typescript ← yes
​```bash ← yes
​```text ← yes (for unstructured output)
​``` ← NEVER — bare fence loses syntax highlighting

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)
markdown
-First item ← yes
-Second item
-Third item
*First item ← NEVER
+First item ← NEVER

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)

markdown
Previous paragraph.
## Heading
First item.
-list item
-list item
Next paragraph.
​```bash
command
​```
Following paragraph.

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)
markdown
# Title
## Section
### Subsection ← yes
#### Detail ← yes
## Next section
#### Skipped level ← NEVER (skipped ###)

Skipping levels breaks screen-readers + outline-style navigation in IDEs.

6. Tables have a header row + a separator row
markdown
| Column A | Column B |
| --- | --- |
| Cell 1 | Cell 2 |

The separator row (--- per column) is mandatory. Without it, the table renders as a paragraph of pipes in some renderers.

For alignment:

markdown
| Left | Center | Right |
| :--- | :---: | ---: |
| a | b | c |
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
markdown
See the [OWASP Top 10][owasp] for the canonical category list.
[owasp]: https://owasp.org/www-project-top-ten/

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):

markdown
---
name: agent-name
description: One-line summary
tools: [Read, Edit, Bash]
model: opus
---
# Agent Name
Body content starts here.

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)
bash
# markdownlint-cli2 — the canonical implementation
npx markdownlint-cli2 "**/*.md" "#node_modules"
# Or with a project config:
npx markdownlint-cli2 --config .markdownlint.jsonc "**/*.md"
Pre-commit hook

Per ~/.claude/rules-library/common/hooks.md:

bash
#!/usr/bin/env bash
# .githooks/pre-commit
set -euo pipefail
staged_md=$(git diff --cached --name-only --diff-filter=ACMR \
| grep -E '\.md$' || true)
if [ -n "$staged_md" ]; then
npx markdownlint-cli2 $staged_md
fi
CI workflow
yaml
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@<sha>
with:
globs: '**/*.md'
Project config (.markdownlint.jsonc)

The canonical strict baseline:

jsonc
{
"default": true,
"MD013": {
"line_length": 100,
"code_blocks": false,
"tables": false,
"headings": true
},
"MD024": { "siblings_only": true },
"MD025": { "front_matter_title": "" },
"MD033": false,
"MD041": false
}

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
markdown
-One
*Two ← inconsistent (MD004)
+Three

Pick - and stick with it.

Anti-pattern 2: Bare URLs in prose
markdown
See https://example.com for more. ← MD034 violation

Always wrap: See <https://example.com> or See [this site](https://example.com).

Anti-pattern 3: Tab characters for indentation
markdown
indented with tabs ← MD010 violation

Use spaces (4 spaces for code-block indentation in raw markdown; rare — fenced blocks are preferred).

Anti-pattern 4: Emphasis as heading
markdown
**Section Title** ← MD036 violation
Content.

Use a real heading:

markdown
### Section Title
Content.
Anti-pattern 5: Skipping heading levels
markdown
# Title
#### Sub-detail ← MD001 violation (skipped ## and ###)

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
<div style="color: red;">Important</div> ← bad

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nmor/the-claude-council/markdown-style/badge)](https://verified-skill.com/skills/nmor/the-claude-council/markdown-style)

Something wrong with this skill or its page? Tell us.