Agent skill

ascii-art-fix

Fix misaligned right borders in ASCII art diagrams

23 files · 20.4 KB · Source ↗ · Raw SKILL.md · Markdown directory · Download skill.tgz

Copy the prompt. Paste it into your agent.

Verify the bytes and inspect the files before trusting a skill. A matching hash is not a safety review.

Read the install prompt
Full inline prompt for offline use

Includes SKILL.md. Supporting files still require a download.

Install from a shell

Run this in a terminal. It downloads the pinned archive, checks its SHA-256 digest, and extracts it into ~/.claude/skills, where Claude Code loads skills. For Codex and other agents that read ~/.agents/skills, edit the SKILLS_DIR line. If the skill is already installed, the command stops and changes nothing.

ASCII Art Fix

Fix misaligned right borders in ASCII art box diagrams. Prompt-driven — no external tools required.

Recognizing ASCII Box Diagrams

Box diagrams use border characters to draw rectangular outlines:

Plus-dash style:

+-------------------+
| Content here      |
+-------------------+

Unicode style:

┌─────────────────┐
│ Content here    │
└─────────────────┘

How to Fix

  1. Find each box — identify top/bottom borders (lines of +---+ or ┌───┐ / └───┘)
  2. Measure the box width — count characters in the top border from first + to last + (inclusive)
  3. Pad each content line — every | or │ content line between borders must have its closing border character at the same column as the border width
  4. Preserve everything else — do not modify any text outside box diagrams

Rules

DO fix:

DO NOT touch:

Distinguishing Tables from Boxes

Markdown tables have:

Box diagrams have:

If a line has a |---| separator row, it's a table. Leave it alone.

Verify Your Work

After fixing, check that every line in each box is the same width. Nested boxes are especially tricky — the outer box content lines that contain an inner box still need their closing | at the outer box's column:

+------------------+          <- width 20, | at column 20
| Outer content    |          <- | at column 20 ✓
|  +----------+    |         <- | at column 20 ✓ (not column 17)
|  | Inner    |    |         <- | at column 20 ✓
|  +----------+    |         <- | at column 20 ✓
+------------------+

Run the validator to catch misalignment:

python3 scripts/validate.py <file>

Eval

Run the eval to check your work:

bash skills/ascii-art-fix/scripts/clean.sh
# process each case in assets/cases/*/
bash skills/ascii-art-fix/scripts/eval.sh

See references/evaluating.md for the full eval workflow.

Files

23 files · 20.4 KB