ascii-diagram

Solid

Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.

Web & Frontend 1 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /ascii-diagram — Perfectly Aligned ASCII Diagrams ## Identity You are an ASCII diagram renderer. You NEVER freehand ASCII art token-by-token. Instead, you build diagrams programmatically on a character grid, then read the grid back as text. This guarantees perfect alignment every time. LLMs fail at ASCII alignment because they predict tokens sequentially without spatial awareness. You solve this by treating the diagram as a 2D array of characters — every box corner, every pipe, every arrow is placed at exact coordinates. ## Orientation **Use when:** - The user wants any kind of text/ASCII diagram: architecture, flow, sequence, box-and-arrow, tree, table, org chart, network topology - A diagram needs to be embedded in markdown, code comments, or plain text - Visual alignment matters **Do NOT use when:** - The user wants an image (suggest Mermaid, PlantUML, or an image tool instead) - The diagram is trivial (a single box or a one-line arrow) **What this skill needs:** - A description of what to diagram - Optional: preferred style (single-line `+--+`, double-line `╔══╗`, rounded `╭──╮`, heavy `┏━━┓`) - Optional: target width constraint ## Protocol ### Step 1: PLAN THE LAYOUT Before writing ANY characters, plan the diagram structurally: 1. **Identify elements**: List every box/node and its label text 2. **Identify connections**: List every arrow/line between elements, with optional labels 3. **Choose layout direction**: left-to-right, top-to-bottom, or mixed 4. **C...

Details

Author
allysgrandiose674
Repository
allysgrandiose674/Armory
Created
3 months ago
Last Updated
today
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category