Markdown Docs Optimizer skill for Claude and Codex
Rewrites an existing Markdown file so it reads faster: consistent headings, correct code fences, working internal links, and the sections your readers need…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when an existing Markdown doc is hard to read and needs its headings, code fences, internal links, and section order cleaned up with the content preserved. Do not use for producing a lint report without fixing anything, or formatting raw notes that were never a document. Related topics: coding, markdown.
What it will ask you for
- Document (longer free text)
- Document purpose (choose one: API guide, User manual, Internal wiki, Tutorial, Release notes)
- Primary audience (choose one: Junior developers, Senior developers, QA engineers, Product managers, Non-technical stakeholders)
- Sections to prioritize (choose any: Introduction, Installation, Usage examples, Configuration, FAQ, Troubleshooting)
- Desired tone (choose one: Formal, Conversational, Concise, Detailed)
- Maximum file size (KB) (number from 10 to 500)
- Include code block styling (choose one: Yes, No)
How it works
- List the file's structural faults: skipped heading levels, untagged fences, mixed bullet markers, dead internal anchors, and buried procedures.
- Fix the structure first, so every heading level is consecutive and every fence carries a language tag.
- Reorder the prioritized sections to the top in the given order and keep all other sections in their original sequence.
- Rewrite sentences for the audience and tone while keeping every fact, command, and code line intact.
- Add a table of contents when there are four or more H2 sections, trim repetition to fit the size limit, and return the markdown fence.
What you get
Only the optimized document inside a single fenced block tagged markdown, with a table of contents when there are four or more H2 sections and every code fence tagged.
What it watches out for
- Renaming headings for style and breaking every anchor link that pointed at them.
- Cutting content to hit the size limit when trimming repeated explanations would have been enough.
- Reordering unprioritized sections too, which scrambles cross-references and the reader's mental map.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.