Agent skill
md-table-formatter
Automatically formats Markdown tables with proper column alignment after file edits. Use when working with Markdown files containing tables.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/md-table-formatter
SKILL.md
Markdown Table Formatter
Automatically formats Markdown tables with proper column alignment.
Features
- Auto-formatting - Tables are formatted after Write/Edit operations on .md files
- Alignment support - Left (
:---), center (:---:), and right (---:) - Unicode aware - Handles emoji and CJK characters correctly
- Code preservation - Preserves markdown inside inline code blocks
How It Works
The PostToolUse hook triggers after file edits:
- Detects if the file is Markdown (.md, .mdx)
- Parses all tables in the file
- Calculates column widths (accounting for hidden markdown symbols)
- Pads cells for alignment
- Writes formatted content back
Table Syntax
| Left | Center | Right |
|:-----|:------:|------:|
| A | B | C |
Requirements
For best results with CJK/emoji characters:
pip install wcwidth
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?