OpenParable
Skip to content
← Back to skills

Markdown Quality

Documents
markdown-quality

Markdown Quality is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when creating or editing any markdown file (.md) - ensures consistent formatting and zero linting violations through mandatory validation

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/development/markdown-quality-bostonaholic-dotfiles/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/markdown-quality, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Markdown Quality

Overview

Every markdown file edit requires markdownlint validation. No exceptions for "simple" changes.

The Iron Law

ALWAYS run markdownlint after editing ANY markdown file
ALWAYS iterate until ALL errors are fixed

Workflow

digraph markdown_quality {
    "Edit markdown file" [shape=box];
    "Run markdownlint" [shape=box];
    "Any errors?" [shape=diamond];
    "Fix ALL errors" [shape=box];
    "Done" [shape=doublecircle];

    "Edit markdown file" -> "Run markdownlint";
    "Run markdownlint" -> "Any errors?";
    "Any errors?" -> "Done" [label="no"];
    "Any errors?" -> "Fix ALL errors" [label="yes"];
    "Fix ALL errors" -> "Run markdownlint";
}

After EVERY markdown edit:

  1. Run markdownlint <file>
  2. If errors exist, fix ALL of them (including pre-existing)
  3. Run markdownlint again
  4. Repeat until zero errors

Red Flags - STOP and Run Markdownlint

These thoughts mean you're rationalizing:

  • "Just a quick typo fix"
  • "No structural changes"
  • "Too simple to need validation"
  • "File already passed linting before"
  • "Running linter is overkill"
  • "Only changed one line"
  • "Overhead would be disproportionate"

All of these mean: Run markdownlint anyway. No exceptions.

Common Rationalizations

ExcuseReality
"Simple typo fix"Can introduce spaces, length issues. Takes 2 seconds.
"No structural changes"Linting checks length, whitespace, blank lines.
"Trust existing state"Files regress. Verify current state.
"Overhead"Takes 1-2 seconds. Debugging takes minutes.
"Only for structural"Validation is for ALL changes. No exceptions.
"Valid reasons"Markdownlint defines standards. Fix or configure.

When NOT to Use

  • Reading markdown files (no edits)
  • Non-markdown file formats

Common Mistakes

Mistake: Running markdownlint only on new files, not edits Fix: Run after EVERY edit, no matter how small

Mistake: Fixing only new errors, leaving pre-existing ones Fix: Fix ALL errors reported by markdownlint

Mistake: Announcing intent to run markdownlint but not doing it Fix: Always execute the command and share results