agentleFS
LeahyCCLeahyCC/claude-skills/skills/ascii-art/SKILL.md

ascii-art

Skill3 starsChanged 8 months agoMITView on GitHub

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.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use find-nearby, native-mcp and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • math-incSkill

    find-nearby

    Find nearby places (restaurants, cafes, bars, pharmacies, etc.) using OpenStreetMap. Works with coordinates, addresses, cities, zip codes, or Telegram location pins. No API keys needed.

    Also in 3 projects that use this

  • math-incSkill

    native-mcp

    Built-in MCP (Model Context Protocol) client that connects to external MCP servers, discovers their tools, and registers them as native Gauss Agent tools. Supports stdio and HTTP transports with automatic reconnection, security filtering, and zero-config tool injection.

    Also in 5 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 3 projects that use this

  • MicrosoftSkill

    github-pr-workflow

    Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

    Also in 5 projects that use this

  • +8 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Only two things, or one link between them?

    line 38
  2. Very specific:

    Check before showing: Run check.mjs on every drawing with lines or boxes.

    line 46
  3. Distinctive:

    Every destination and its fix: destinations.md.

    line 63
  4. Distinctive:

    Start from a script or the gallery in pictures.md, then change it.

    line 116
  5. Distinctive:

    Keep it small enough to read at a glance.

    line 119
  6. Distinctive:

    When copying a known piece, keep the artist's initials.

    line 120

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “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

ASCII Art

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

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

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

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

┌─────────┐
│  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

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.