Back to list
neilpeterson

diagram-formatting

by neilpeterson

0🍴 0📅 Jan 17, 2026

SKILL.md


name: diagram-formatting description: Ensures ASCII/box-drawing diagrams follow consistent formatting standards.

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.

Score

Total Score

35/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon