markdown-table-validator

markdown-table-validator is a skill for Claude Code, Codex from terrylica/cc-skills. It costs 117 tokens per session (1,210 once invoked), scanned A, original, MIT.

A Markdown table checker and fixer for GitHub-Flavored Markdown, the table format supported by GitHub and many editors. It finds structural problems such as unescaped pipe characters and mismatched column counts.

In plain words
What is it for?
It is for checking Markdown files, fixing common table-rendering errors, and reviewing generated documentation in bulk.
Why use it?
Broken table structure can make a table appear as ordinary text instead of a table. The tool can detect these cases and can escape a problematic pipe when asked.

Skill for Claude CodeCodex

Part of the doc-tools plugin — 13 skills shipped together , and of cc-skills

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.

agentmods
npx agentmods add skills/terrylica/cc-skills/markdown-table-validator
Any agent
npx skills add terrylica/cc-skills --skill markdown-table-validator
Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills

Made for: Claude Code, Codex.

Or install doc-tools, the plugin that ships this one along with the rest of its 13 skills.

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 markdown-table-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/markdown-table-validator.svg)](https://agentmods.dev/skills/terrylica/cc-skills/markdown-table-validator)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/markdown-table-validator"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/markdown-table-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,210 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00117 $0.01210
Opus 5 $0.00059 $0.00605
Sonnet 5 $0.00023 $0.00242
Haiku 4.5 $0.00012 $0.00121

Measured today against content hash e136f7ee2945, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

markdown-table-validator 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 today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan_markdown_tables.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/doc-tools/skills/markdown-table-validator/SKILL.md · 98 lines

How it starts

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

Markdown Table Validator

Scan Markdown files for the structural problems that silently demote a GFM table to a plain paragraph on GitHub / VS Code preview, and optionally auto-escape the single most common cause (an unescaped | inside a cell).

Self-Evolving Skill: This skill improves through use. If the detector misses a real broken-table case, the --fix heuristic guesses wrong, or a path/flag has drifted — fix this file (and the detector SSoT) immediately, don't defer. Only update for real, reproducible issues.

Why tables break (the one rule that matters)

GFM ignores whitespace between pipes, so alignment is never the cause. What breaks rendering is structure — overwhelmingly an unescaped | inside a cell. GFM's table tokenizer treats a | as a column delimiter even inside a `code span`, so a regex/code cell like `a | b | c` inflates that row's cell count and the whole table collapses. The fix — escaping it as \| — changes meaning, so no formatter does it for you (Prettier actively corrupts such tables: prettier#10164 / #11410). This skill detects it and can apply the escape under review.

Quick start

SCAN="$(cc-plugin-root doc-tools)/skills/markdown-table-validator/scripts/scan_markdown_tables.ts"

# Report problems in one file (exit 1 if any render-breaking error)
bun "$SCAN" path/to/FILE.md

# Audit a whole tree
bun "$SCAN" "docs/**/*.md" "plugins/**/*.md"

# Opt-in auto-fix: escape over-count pipes, then re-align with prettier
bun "$SCAN" --fix path/to/FILE.md
prettier --write path/to/FILE.md

What it detects

Code Severity Meaning
column-overflow error A row has more cells than the header → unescaped | in a cell.
header-mismatch error Header and separator row have different column counts → won't render.
indented-table error Table indented ≥4 spaces → parsed as a code block.
alignment-colon-in-row error An alignment token like :--: sits in a data row (misplaced separator).
short-row info Row has too few cells; GFM pads and markdownlint --fix repairs.
missing-blank-line info No blank line before/after the table; the formatter auto-fixes.

Read the full file on GitHub · 98 lines

Files

What ships with it

2 files 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. today First seen · 98 lines · 117 tokens per session scan A e136f7ee2945

Subscribe to this mod's changes

markdown-table-validator is a skill published in the GitHub repository terrylica/cc-skills (62 stars, last pushed today), licensed MIT. It adds 117 tokens to every session and 1,210 once invoked, about $0.0006 per session on Opus 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-05.