ascii-boxes
3
总安装量
3
周安装量
#59920
全站排名
安装命令
npx skills add https://github.com/tpsdev-ai/skills --skill ascii-boxes
Agent 安装分布
opencode
3
github-copilot
3
codex
3
kimi-cli
3
gemini-cli
3
cursor
3
Skill 文档
ASCII Boxes
Two tools: generate perfect boxes, validate existing ones.
Generate a diagram
Write a simple text file describing the box:
Docker Container
[lead] agent-lead | UID 1001 | nono Landlock
[coder] agent-coder | UID 1002 | nono Landlock
supervisor (PID 1)
- Creates users
- Drops privileges
Format rules:
- First line = outer box title
[tag] col1 | col2 | col3= inner box (each tag is a separate box, columns are rows)- text= bullet item (rendered as· text)- Blank line = spacing row
Run:
python3 SKILL_DIR/scripts/draw-box.py input.txt
Pipe output into your file or copy-paste into markdown.
Validate an existing diagram
python3 SKILL_DIR/scripts/check-box-align.py <file>
Finds blocks with box-drawing corners (â/â), checks all lines have the same display width. Reports mismatches with line numbers.
Why this exists
LLMs cannot count display columns reliably. Box-drawing characters are 3 bytes UTF-8 but 1 display column. Always validate after writing or editing box art.
Workflow
- Generate with
draw-box.pyOR hand-write the diagram - Validate with
check-box-align.py - If misaligned, pad short lines with spaces before closing
â - Re-validate until clean