markdown-mastery

Rewrites documents into standards-compliant Markdown with optional linting and formatting.

364|53|Updated May 9, 2026
One-click install
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill markdown-mastery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markdown-mastery
Source: https://github.com/cosmicstack-labs/mercury-agent-skills/tree/main/categories/development/markdown-mastery
Command: npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill markdown-mastery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Markdown content becomes hard to read, inconsistent, and difficult to maintain when headings, formatting, and diagram conventions are applied inconsistently, especially across complex technical documents.

Core Features & Use Cases

  • Markdown formatting mastery: Enforces readable structure using semantic headings, lists, tables, and consistent style rules.
  • Advanced syntax support: Covers GitHub-Flavored Markdown features like task lists, footnotes, alerts, collapsible sections, and diff blocks.
  • Diagram-first documentation: Improves clarity by embedding Mermaid diagram types (flowcharts, sequence diagrams, ERDs, Gantt, state diagrams, and more) alongside the text they explain.
  • Tooling and quality loops: Recommends linting and auto-formatting approaches (markdownlint, Prettier) and a CI-style quality pipeline to keep documents correct over time.

Quick Start

Ask the AI to rewrite your documentation in GitHub-Flavored Markdown using consistent heading hierarchy, add Mermaid diagrams where appropriate, and lint/format it for publication-quality results.

Frequently Asked Questions about markdown-mastery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Mermaid diagrams to Markdown documentation?

To add Mermaid diagrams to Markdown documentation, you embed diagram syntax for flowcharts, sequence diagrams, and ERDs directly alongside the text. This approach keeps complex technical specs readable and visually clear for developer workflows.

What is the best way to format GitHub-Flavored Markdown for README files?

The best way to format GitHub-Flavored Markdown for README files is to enforce semantic heading hierarchy, use advanced syntax like task lists and collapsible sections, and apply consistent style rules for production-ready documentation.

How do I set up Markdown linting with markdownlint and Prettier?

To set up Markdown linting with markdownlint and Prettier, you integrate them into a CI-style quality pipeline. This auto-formats documents, checks syntax consistency, and ensures maintainable technical docs over time.

Does GitHub-Flavored Markdown support footnotes and alert blocks?

Yes, GitHub-Flavored Markdown supports footnotes, alert blocks, diff blocks, and task lists. Using these extended features correctly ensures your technical documents remain structured and readable across developer platforms.

How do I fix inconsistent heading hierarchy and formatting in technical specs?

To fix inconsistent heading hierarchy and formatting in technical specs, you rewrite the content using standardized Markdown conventions with semantic headings, lists, and tables. Applying linting rules ensures the structure stays correct.