diagrams

tspader 的头像作者 tspader

在使用ASCII和Unicode字符生成任何图表时使用。

📖 中文导读:在使用ASCII和Unicode字符生成任何图表时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: diagrams description: Use when generating any diagrams using ASCII and Unicode characters.

Diagrams

Quick Reference

Box drawing (single):

┌───┬───┐
│   │   │
├───┼───┤
│   │   │
└───┴───┘

Box drawing (double):

╔═══╦═══╗
║   ║   ║
╠═══╬═══╣
║   ║   ║
╚═══╩═══╝

Tree characters: ├── └── │

Arrows: → ← ↑ ↓ ↔ ↕ ⟶ ⟵

Blocks: █ ▀ ▄ ▌ ▐ ░ ▒ ▓

Diagram Types

Type Use Case Reference
Memory layouts Struct fields, memory regions, pointers memory-layouts.md
Bit layouts Register bits, flags, binary formats bit-layouts.md
Boxes/frames/tables Bordered text, headers, data tables boxes-frames.md
Banners Large text logos, titles banners.md
Flowcharts Process flows, decisions flowcharts.md
Trees Directory structure, hierarchies trees.md
Sequences Message flows, timelines sequences.md

Full character reference: characters.md

Guidelines

  • Width: Keep under 80 chars for code comments, 120 for documentation
  • Alignment: All box characters assume monospace font
  • ASCII fallback: Use +, -, | when Unicode unavailable
  • Consistency: Pick single or double line style, don't mix within a diagram