Agent skill
md-tables
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/documents/md-tables
SKILL.md
Markdown Table Formatting
Overview
This skill provides a Python script (fix-md-tables.py) to fix markdown table alignment and spacing issues. It normalizes column widths, ensures consistent cell padding, and handles separator row alignment markers.
Features
- Aligns columns to consistent widths
- Normalizes cell spacing with single-space padding
- Preserves alignment markers (
:---,:---:,---:) - Handles tables with varying column counts
- Adds blank lines around tables when needed
Usage
Run the script located in this skill's directory:
# Preview fixed output
python fix-md-tables.py document.md
# Fix tables in-place
python fix-md-tables.py document.md --in-place
python fix-md-tables.py document.md -i
Example
Before
|Name|Age|City|
|---|---|---|
|Alice|30|New York|
|Bob|25|Los Angeles|
After
| Name | Age | City |
| ----- | --- | ----------- |
| Alice | 30 | New York |
| Bob | 25 | Los Angeles |
Alignment Markers
The script preserves alignment markers in separator rows:
| Syntax | Alignment |
|---|---|
--- |
Left (default) |
:--- |
Left |
---: |
Right |
:---: |
Center |
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?