SKILL

markdown-linting

Markdown linting for this workspace: MD029 list numbering, MD040 code block language tags, MD051 anchor links, and the closing-fence mistake that breaks HTML generation. Use when: writing or editing any .md file, running markdownlint-cli2, fixing MD029/MD040/MD051 errors, generating HTML or PDF from markdown. Do NOT use for: the general documentation standard (use the documentation skill) — this is the linter-specific subset.

Target: PDF. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Markdown Linting
  • Table of contents
  • Overview
  • Usage
  • Check all markdown files
  • Automatically fix what can be fixed
  • Configuration
  • Responsibilities

Overview Usage Configuration Responsibilities Common errors and solutions MD029: List numbering MD040: Missing code block language MD051: Broken anchor link Common AI mistake: Closing a code block with a language -- This workspace uses markdownlint-cli2 via npx to catch markdown errors before they are committed. Focus areas: 1. List numbering (MD029) - Numbered lists must restart at 1 after headers 2. Anchor links (MD051) - TOC links must match actual heading anchors 3. Code block language (MD040) - All code blocks must specify language (tsx, typescript, bash, etc.) See .markdownlint-cli2.jsonc for the rules. Run linting on markdown files after writing, editing or moving them Fix all MD029, MD040 and MD051 errors before the task is done Command: npx markdownlint-cli2 or npx markdownlint-cli2 '/.md' Wrong: Solution: Wrong: Solution: Important: Use tsx for React/JSX code, not typescript. Wrong: Solution: Or update the HTML anchor: to: Wrong (not caught by the linter, but breaks HTML generation): Why this happens: AI assistants (Claude, Copilot, etc.) sometimes write text as a closing fence This is NOT valid markdown - code blocks are ALWAYS closed with just Pandoc and other converter

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
ragnarwestad/aide
Source file
core/skills/markdown-linting/SKILL.md
Fixed revision
4accd2a3379f990472d375916c4972aa2a1d0c8b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: ragnarwestad/aide · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T13:00:43.300Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.