ASCII Art Diagrams for Claude

microbians avatar
microbians
plain_text
02/08/2026 12:51 PM
2.1 KB
30
Indexable
**ASCII Art Diagrams - Strict Rules:**
   - **All lines same length** - Every line in a block must have identical character count (pad with spaces)
   - **Box width = longest content + padding + borders** - Calculate: `len(longest_text) + 2 spaces padding + 2 border chars`
   - **Consistent internal padding** - Minimum 1 space each side of content
   - **Horizontal lines match width** - Count of `─` equals interior width exactly
   - **Vertical connections** - Add spacer lines with `│` between elements for line-height 0.9 to connect
   - **Arrow alignment** - Arrows `▼` `▲` `◄` `►` must align with the CENTER of the box they point to, not with labels
   - **Vertical spacing inside boxes** - Add empty lines `│                         │` between text lines to compensate for line-height 0.9
   - **Tree structures** - Add spacer lines with `│` between siblings for line-height 0.9:
     ```
     1. Parent item
        │
        ├── Child 1
        │   │
        │   └── Subchild
        │
        └── Child 2
            │
            └── Subchild
     ```
   - **Example of correct box:**
     ```
     ┌─────────────────┐
     │                 │
     │ longest text    │
     │                 │
     │ short           │
     │                 │
     └─────────────────┘
     ```
     Note: Text has 1 space padding on each side (` longest text ` not `longest text`)
   - **Verify each line** - Count characters before finalizing
Editor is loading...
Leave a Comment