format-table
Skill2 starsChanged 39 days agoBSD-3-ClauseView on GitHub
Formats markdown tables with fixed-width columns for consistent alignment. Use when creating tables, reformatting existing tables, or ensuring table readability. Triggers on terms like "format table", "align table", "fix table", "table columns".
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- changelogSkill
- commit-twiddleSkill
- releaseSkill
- update-adr-inventorySkill
- update-snapshotsSkill
- version-bumpSkill
- changelogSkill
- commit-twiddleSkill
- format-tableSkill
- releaseSkill
- update-adr-inventorySkill
- update-snapshotsSkill
- version-bumpSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Add padding (minimum 1 space on each side)
- Very specific: line 102
Preserve alignment: - Keep : markers for right/center alignment
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Markdown Table Formatting Skill
This skill formats markdown tables with fixed-width columns for consistent alignment and readability.
Table Format Rules
Column Width Calculation
- Find the maximum content width in each column (including header)
- Add padding (minimum 1 space on each side)
- Apply consistent width to all cells in that column
Alignment
- Left-aligned (default):
| content |with space padding on right - Right-aligned:
:---becomes---:in separator - Center-aligned:
:---:in separator
Separator Row
The separator row uses dashes matching the column width:
- Left-aligned:
|----------| - Right-aligned:
|---------:| - Center-aligned:
|:--------:|
Example Transformation
Before (inconsistent widths)
| Option | Description | Example |
|--------|-------------|---------|
| `--use-context` | Enable contextual intelligence | `--use-context` |
| `--batch-size N` | Set batch size for large ranges | `--batch-size 3` |
| `--auto-apply` | Apply without confirmation | `--auto-apply` |After (fixed-width columns)
| Option | Description | Example |
|------------------|---------------------------------|------------------|
| `--use-context` | Enable contextual intelligence | `--use-context` |
| `--batch-size N` | Set batch size for large ranges | `--batch-size 3` |
| `--auto-apply` | Apply without confirmation | `--auto-apply` |Formatting Algorithm
For each column:
1. width = max(len(cell) for cell in column)
2. width = max(width, 3) # Minimum 3 chars for separator
For each row:
1. For each cell:
- Pad content to column width
- Add single space before and after content
2. Join cells with '|' delimiter
3. Add '|' at start and endSpecial Cases
Code in Cells
Preserve backticks when calculating width:
`--flag`counts as 8 characters (including backticks)
Empty Cells
Empty cells get full padding:
| Column A | Column B |
|----------|----------|
| value | |Multi-word Headers
Headers determine minimum column width:
| Long Header Name | Short |
|------------------|-------|
| value | x |Instructions
When formatting tables:
- Read the table - Identify all rows and columns
- Calculate widths - Find max content width per column
- Format header - Apply consistent width with padding
- Format separator - Match column widths with dashes
- Format data rows - Apply same widths to all cells
- Preserve alignment - Keep
:markers for right/center alignment
Quick Reference
| Element | Format |
| Cell padding | Single space each side |
| Min width | 3 characters (for ---) |
| Separator | Dashes matching column width |
| Pipe spacing | No space adjacent to pipes |
| Line ending | No trailing whitespace |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

