smithery.ai

diagram-formatting

Ensures ASCII/box-drawing diagrams follow consistent formatting standards.

First seen Apr 23, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 4,760 B
  • docs SUMMARY.md 100 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

When creating or editing ASCII diagrams (architecture diagrams, flowcharts, component layouts), apply these formatting standards.

When to Use This Skill

  • Creating architecture diagrams in markdown documents
  • Editing existing ASCII diagrams
  • Reviewing specifications that contain box-drawing diagrams
  • Any time box-drawing characters (─, │, ┌, ┐, └, ┘, ├, ┤, ┬, ┴, ┼) are used

Formatting Standards

1. Border Alignment

All vertical borders must align consistently. The right edge of nested boxes should have consistent spacing to the outer border.

❌ Incorrect - Inconsistent spacing before right border:

┌─────────────────────────────────────────────┐
│                  Layer 1                    │
│  ┌─────────────┐  ┌─────────────────────┐  │
│  │   Box A     │  │       Box B         │  │
│  └─────────────┘  └─────────────────────┘  │
├─────────────────────────────────────────────┤
│                  Layer 2                    │
│  ┌─────────┐  ┌─────────┐  ┌─────────────┐  │
│  │  Box C  │  │  Box D  │  │    Box E    │  │
│  └─────────┘  └─────────┘  └─────────────┘  │
└─────────────────────────────────────────────┘

Note: Layer 1 has 1 space before │, Layer 2 has 2 spaces before │

✅ Correct - Consistent spacing (2 spaces) before right border:

┌───────────────────────────────────────────┐
│                 Layer 1                   │
│  ┌─────────────┐  ┌─────────────────────┐ │
│  │   Box A     │  │       Box B         │ │
│  └─────────────┘  └─────────────────────┘ │
├───────────────────────────────────────────┤
│                 Layer 2                   │
│  ┌─────────┐ ┌─────────┐ ┌─────────────┐  │
│  │  Box C  │ │  Box D  │ │    Box E    │  │
│  └─────────┘ └─────────┘ └─────────────┘  │
└───────────────────────────────────────────┘

2. Consistent Inner Padding

Use consistent padding (typically 2 spaces) between the outer border and nested content on both left and right sides.

│  ┌─────────┐  ┌─────────┐  │
   ^^                     ^^
   2 spaces on each side

3. Horizontal Divider Alignment

Horizontal dividers (├ and ┤) must span the full width and align with the outer corners.

❌ Incorrect:

┌──────────────────────┐
│       Section 1      │
├─────────────────────┤
│       Section 2      │
└──────────────────────┘

✅ Correct:

┌──────────────────────┐
│       Section 1      │
├──────────────────────┤
│       Section 2      │
└──────────────────────┘

Verification Checklist

When reviewing a diagram, verify:

  • All rows have the same total character width
  • Left padding is consistent (typically 2 spaces after │)
  • Right padding is consistent (typically 2 spaces before │)
  • Horizontal lines (─) connect properly to corners and junctions
  • Nested boxes maintain internal alignment
  • Text is centered or consistently aligned within boxes

Future Standards

Additional diagram formatting rules will be added here.