md-format-fixer

md-format-fixer is a skill for Claude Code, Codex from Azzygoatcoder/agent-useful-skills. It costs 97 tokens per session (1,025 once invoked), scanned A, original, MIT.

A checker and fixer for Markdown files, which are plain-text documents that use symbols for headings, tables, links, and code blocks. It checks files after they are written or edited and fixes common rendering problems when possible.

In plain words
What is it for?
Use it after editing Markdown to check tables, code fences, headers, and other formatting hazards, and to flag problems that need manual review.
Why use it?
It helps prevent Markdown from displaying incorrectly because of missing blank lines, broken tables, or unfinished code blocks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after editing Markdown to check tables, code fences, headers, and other formatting hazards, and to flag problems that need manual review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azzygoatcoder/agent-useful-skills/md-format-fixer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Azzygoatcoder/agent-useful-skills --skill md-format-fixer
Clone the repo
git clone --depth 1 https://github.com/Azzygoatcoder/agent-useful-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for md-format-fixer

README.md
[![agentmods](https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/md-format-fixer/github.svg)](https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/md-format-fixer)
Your own site
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/md-format-fixer"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/md-format-fixer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for md-format-fixer

Your own site · 80×15
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/md-format-fixer"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/md-format-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,025 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.01025
Opus 5.5 $0.00039 $0.00410
Sonnet 5.5 $0.00019 $0.00205
Haiku 4.5 $0.00010 $0.00103

Measured 24d ago against content hash f0a075dc80a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

md-format-fixer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/md-format-fixer/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markdown Format Fixer

After every Write or Edit to a .md file, run through the checks below on the file you just touched. Fix issues in place unless flagged for manual review.

Check 1: Tables — blank lines

Problem: A markdown table immediately after a text line (without a blank line between) can be misparsed by some renderers (Obsidian, GitHub, strict CommonMark).

Detection: Any line matching ^|.*|$ that is preceded by a non-empty, non-table, non-blank line.

Fix: Insert a blank line before the table header row.

Check 2: Code blocks — closing fence

Problem: Content that should be outside a code block is trapped inside because the closing ``` is missing or placed after that content.

Detection: Looking for lines of plain text between the last content line and the closing ``` of a fenced code block.

Fix: Move the closing ``` to before the escaped content, so the content renders as normal markdown.

Manual flag: If no closing ``` exists at all, add one at the end — but warn the user to verify the intended scope.

Check 3: Table column counts

Problem: A data row has fewer or more |-separated cells than the header row or separator row, causing rendering breakage.

Detection: Count the number of | in the header row, separator row, and each data row. Any mismatch is an error.

Fix:

  • Missing cell: Insert an empty cell at the position.
  • Extra cell: Merge or remove — flag for manual review if ambiguous.

Check 4: Code blocks — empty fences

Problem: ``` on a line by itself with no matching close creates an unterminated code block that swallows all subsequent content.

Detection: Any ``` that opens a code block but has no matching close before EOF or before another code block opens.

Fix: Add a closing ``` at the end of the intended block. If the intended scope is unclear, flag for manual review.

Check 5: Ambiguous table headers

Problem: Column headers that don't convey what the column represents (e.g., just "差距" without specifying "A − B 差距", or single-word labels that are meaningless without context).

Read the full file on GitHub · 109 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago First seen · 109 lines · 97 tokens per session scan A f0a075dc80a5

Subscribe to this mod's changes

md-format-fixer is a skill published in the GitHub repository Azzygoatcoder/agent-useful-skills (9 stars, last pushed 22d ago), licensed MIT. It adds 97 tokens to every session and 1,025 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-22.

Related

Other skills, from other repositories

workdsh-expert-manager

A workflow for creating and delivering reusable expert roles or teams from a user's goals and source material. It saves their instructions, documents, resources, and team structure as a draft that can be checked and published.

techflag/workdsh · 43 tokens

workdsh-ppt-design

A workflow guide for creating and editing PowerPoint presentations in the WorkDSH editor. It covers slide-by-slide storytelling, visual design, supported content tools, importing existing PPTX files, and exporting presentations.

techflag/workdsh · 71 tokens

workdsh-web-design

A workflow guide for designing and building websites, landing pages, and web applications. It covers content structure, visual styles, responsive layouts, bilingual content, interactions, previews, and delivery within the supported WorkDSH tools.

techflag/workdsh · 55 tokens

workdsh-excel-design

A workflow guide for designing, analyzing, and reviewing Excel workbooks. It covers field definitions, data sources, formulas, workbook structure, usability checks, and supported spreadsheet operations.

techflag/workdsh · 54 tokens

workdsh-word-design

A workflow guide for creating and formatting Word reports, proposals, meeting notes, and similar documents. It covers document structure, headings, tables, layout, review, and delivery as DOCX files within the supported tools.

techflag/workdsh · 49 tokens

dsh-plugin-dev

An authoritative development guide for DeepSeek Harness plugins. DeepSeek Harness is a system where models, tools, services, events, and adapters are built as plugins.

zimodzh/dsh-plugin-dev-skills · 156 tokens