mcpbeat

Lint Markdown

azure/lint-markdown

Check and fix formatting and other issues in markdown files using markdownlint-cli2.

362 tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
883
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Azure/azure-sdk-for-rust --skill lint-markdown

What comes with it

116 bytes besides the instruction
.gitignore
package.json

The instruction itself

6 sections, as written by the author

Markdown linting

Check markdown files for common mistakes.

Installation and usage

Run npm ci from this skill directory (.github/skills/lint-markdown/) first. Then run commands using npm exec --prefix .github/skills/lint-markdown -- markdownlint-cli2 {command} from the repository root.

Configuration

Configuration is in .markdownlint-cli2.yaml files. The root configuration is at the repository root.

For markdownlint rules configuration, nest it under the config property following the markdownlint schema at https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json. Use friendly rule names (e.g., line-length) instead of codes (e.g., MD013).

Check Markdown

Run npm exec --prefix .github/skills/lint-markdown -- markdownlint-cli2 from the repository root with a list of modified markdown files to lint.

Fix issues

Run with the --fix flag with a list of modified markdown files to automatically fix supported issues:

npm exec --prefix .github/skills/lint-markdown -- markdownlint-cli2 --fix

Testing

Run the same lint command again to verify all issues are fixed. There should be no errors reported.

How to use it

Copy the folder

Take azure/lint-markdown from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.