<< All versions

Skill v1.0.0

currentAutomated scan100/100
leahycc/claude-skills/ascii-art
──Details
PublishedNovember 15, 2026 at 03:47 PM
Content Hashsha256:c13abe109fe96127...
Git SHA9e9380fe436a
──Files
Files (1 file, 6.8 KB)
SKILL.md6.8 KBactive
SKILL.md · 133 lines · 6.8 KB

name: ascii-art description: Use when drawing anything out of text characters, for work or fun. Diagrams (flowcharts, architecture, sequence, state machines, file trees), tables and charts in plain text (bar charts, sparklines, line plots, progress bars), big banner letters, boxes and callouts, ASCII art pictures and pixel sprites, kaomoji and emoticons, game boards, dungeon maps and mazes. Also when a terminal reply, README, code comment or commit message needs a picture instead of prose. Draws on a grid, uses bundled Node scripts for the counting, and checks alignment before showing. Not for rendered images, SVG, or HTML and canvas charts. metadata: version: "1.0.0"


ASCII Art

Pictures made of text: diagrams, charts, tables, banners, art, games. They break in three ways, and this skill fixes each one.

text
Breaks because Fix
columns counted by feel draw on a grid, run check.mjs
big letters and bars freehand a script draws them
pasted where spacing collapses fence it, pick characters for the place

Sources checked: SOURCES.md

Pick the shape

To showDrawHow
Steps with a yes/no branchFlowchart, top to bottomdiagrams.md
Parts of a system and how they talkBoxes in layersdiagrams.md
Who sends what, in orderSequence diagramdiagrams.md
Something that changes stateState machinediagrams.md
A change to a designBefore, then after, stackeddiagrams.md
A folder or a hierarchyTreelayout.mjs tree
Rows of factsTablelayout.mjs table, or markdown where it renders
Compare amountsBar chartchart.mjs bar
A trendSparkline or line plotchart.mjs spark, chart.mjs plot
A title in big lettersBannerbanner.mjs
A note that must stand outBoxlayout.mjs box
A thing, an animal, a scenePicturepictures.md
A feeling in one lineKaomojitext-art.md
A board, map, maze, cardsGridgames.md

Only two things, or one link between them? Write a sentence. A diagram earns its place at three or more things, or a branch.

Rules that do not bend

  1. Fence it. In markdown, art goes in a text code block. Outside one, spaces collapse and \ and _ vanish.
  2. One character, one cell. Count. Plain ASCII is 1 cell everywhere. Box lines, arrows and blocks are 1 cell in most terminals, 2 in CJK-wide ones. CJK text is 2. Emoji are 2 and some fonts draw them wider, so they stay out of anything that must line up.
  3. Spaces, never tabs.
  4. Scripts count, you draw. Banners, bar lengths, sparklines, plots, tables, trees, mazes and mirrored halves come from scripts/. Never freehand them.
  5. Check before showing. Run check.mjs on every drawing with lines or boxes. Fix every error.
  6. One line style per drawing. ASCII + - | or Unicode ┌ ─ │, not both. Heavy or double lines only to pick out one whole box.
  7. Fit the width. 80 for terminals and replies, 72 for commit messages, the project's limit in code. Too wide? Split it, or go top to bottom.
  8. Small. About 15 boxes at most. Pictures up to 20 lines. Bigger: split into an overview and a close-up.
  9. Say what it shows in one line next to it. To a screen reader, art is noise.

Pick the characters for where it goes

DestinationCharactersTrap
Code commentPlain ASCIIIn C and C++, a // line ending in \ swallows the next line of code
Commit messagePlain ASCII, 72 wideLines starting with # vanish when git opens an editor
Terminal or chat replyUnicode box linesMust be fenced, under 80 wide
GitHub READMEUnicode, fenced as textA big graph may read better as Mermaid, which GitHub draws
Slack, Discord, TeamsEither, in a code blockProportional font outside the block
EmailPlain ASCII in an HTML <pre>Many mail apps show plain text in a proportional font

Every destination and its fix: destinations.md. Every character set and its real width: glyphs.md.

Workflow

  1. Plan. What it shows, which shape, where it goes, how wide it may be.
  2. Boxes first. Give each box an odd width, so it has a middle. Write down each box's left column.
  3. Then connectors. A box's middle is at left + (width - 1) / 2. Every ┬, │ and ▼ on that path uses that column.
  4. Check. Fix what the checker reports, run it again, repeat until it says ok.
  5. Show it with its one-line caption.
bash
node scripts/check.mjs - <<'EOF'
┌───────┐
│ draft │
└───────┘
EOF
node scripts/check.mjs README.md --all # every text block in a file

Scripts

Paths are relative to this skill's folder. Node 18 or newer, no packages. Options are listed at the top of each file.

ScriptDoesExample
check.mjsFinds drifted lines, tabs, emoji, wide lines, art outside a fencenode scripts/check.mjs art.txt
banner.mjsBig letters: blocks, ASCII, shadow, half height, boxednode scripts/banner.mjs "SHIP IT" --shadow
chart.mjsBar chart, sparkline, Braille line plotnode scripts/chart.mjs bar Mon=3 Tue=7
layout.mjsTable, tree, box, with CJK text counted rightnode scripts/layout.mjs tree < outline.txt
art.mjsMirror a half drawing, pixel sprites, mazes with a solutionnode scripts/art.mjs maze 12 6 --solve

FAIL and PASS

The drift every model makes: the label row is one cell wider than the border.

text fail
┌─────────┐
│ Input │
└─────────┘

check.mjs says '┐' goes down, but the line below is one column right (col 12).

text
┌─────────┐
│ Input │
└─────────┘

Fun requests

A cat, a birthday banner, a dungeon, a maze: same rules, more play.

  • Start from a script or the gallery in pictures.md, then change it.
  • Symmetric picture? Draw the left half, then art.mjs mirror.
  • Has a formula (heart, circle, wave)? Compute it. Cells are about twice as tall as wide.
  • Keep it small enough to read at a glance.
  • When copying a known piece, keep the artist's initials. Otherwise draw an original.

Checklist

  • [ ] Shape matches the content: table for facts, flowchart for branches, tree for nesting
  • [ ] Fenced in markdown, inside a comment block in code
  • [ ] Characters suit the destination
  • [ ] check.mjs says ok
  • [ ] Banners, bars, sparklines, plots, tables, trees and mazes came from a script
  • [ ] Fits the width limit
  • [ ] One-line caption says what it shows
All versions