agentleFS
rust-worksrust-works/omni-dev/.claude/skills/format-table/SKILL.md

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".

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
  1. Distinctive:

    Add padding (minimum 1 space on each side)

    line 15
  2. Very specific:

    Preserve alignment: - Keep : markers for right/center alignment

    line 102

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Markdown Table Formatting Skill

This skill formats markdown tables with fixed-width columns for consistent alignment and readability.

Table Format Rules

Column Width Calculation

  1. Find the maximum content width in each column (including header)
  2. Add padding (minimum 1 space on each side)
  3. 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 end

Special 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:

  1. Read the table - Identify all rows and columns
  2. Calculate widths - Find max content width per column
  3. Format header - Apply consistent width with padding
  4. Format separator - Match column widths with dashes
  5. Format data rows - Apply same widths to all cells
  6. Preserve alignment - Keep : markers for right/center alignment

Quick Reference

ElementFormat
Cell paddingSingle space each side
Min width3 characters (for ---)
SeparatorDashes matching column width
Pipe spacingNo space adjacent to pipes
Line endingNo trailing whitespace

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.