Ascii diagram

From paulpas/agent-skill-router · View interactive version

Ascii diagram is an AI agent skill from the GitHub repository paulpas/agent-skill-router. Generates clear, readable ASCII diagrams in Excalidraw-style for flowcharts, sequence diagrams, and state diagrams to visualize processes, interactions, and system states.

How to use this skill

Skill file

ASCII Diagram Generator (Excalidraw Style)

Creates clean, readable ASCII diagrams that mimic the visual style of Excalidraw for technical documentation, architecture visualization, and process explanation.

When to Use

Use this skill when:

Core Workflow

  1. Identify Diagram Type — Determine if you need a flowchart, sequence diagram, or state diagram based on what you're visualizing
  2. Define Elements — List all components, actors, states, or steps that need to be included
  3. Establish Relationships — Map out how elements connect, interact, or transition between each other
  4. Apply Styling Conventions — Use consistent box styles, arrow types, and spacing for clarity
  5. Review for Readability — Ensure the diagram is understandable at a glance with proper alignment and labeling

Implementation Patterns

Pattern 1: Flowchart Diagrams

Use rounded boxes for processes, diamonds for decisions, and parallelograms for input/output.

+------------------+     +------------------+     +------------------+
|  Start Process   |     |  Validate Input  |     |  Process Data    |
|   (Rounded)      |---->|   (Rounded)      |---->|   (Rounded)      |
+------------------+     +------------------+     +------------------+
                                   |                   |
                                   | Invalid           | Valid
                                   v                   v
                             +------------------+  +------------------+
                             | Show Error       |  | Save to Database |
                             |   (Rounded)      |  |   (Rounded)      |
                             +------------------+  +------------------+
                                           |                   |
                                           +--------+----------+
                                                    |
                                                +------------------+
                                                |   End Process    |
                                                |   (Rounded)      |
                                                +------------------+

Key Conventions:

Pattern 2: Sequence Diagrams

Show interactions between actors/objects over time with vertical lifelines and horizontal messages.

Actor A          Actor B          System
     |               |               |
     |---Request---->|               |
     |               |               |
     |               |---Process---->|
     |               |               |
     |               |<---Response---|
     |               |               |
     |<---Result-----|               |
     |               |               |

Key Conventions:

Pattern 3: State Diagrams

Illustrate states and transitions in a state machine with rounded boxes for states and labeled arrows for transitions.

+------------------+
|   Idle State     |
|   (Rounded)      |
+------------------+
        |
        | trigger_event()
        v
+------------------+
| Processing State |
|   (Rounded)      |
+------------------+
        |
        | timeout()
        v
+------------------+
|   Error State    |
|   (Rounded)      |
+------------------+
        |
        | reset()
        v
+------------------+
|   Idle State     |
|   (Rounded)      |
+------------------+

Key Conventions:

Pattern 4: Container/Component Diagrams

Show system components and their relationships with clear boundaries.

+--------------------------------------------------+
|                                                  |
|           +------------------+                   |
|           |  Web Frontend    |                   |
|           |   (Rounded)      |                   |
|           +--------+---------+                   |
|                    |                            |
|                    | HTTP/REST                  |
|                    v                            |
|           +------------------+                   |
|           |   API Gateway    |                   |
|           |   (Rounded)      |                   |
|           +--------+---------+                   |
|                    |                            |
|                    | gRPC                       |
|                    v                            |
|           +------------------+                   |
|           |  Business Logic  |                   |
|           |   (Rounded)      |                   |
|           +--------+---------+                   |
|                    |                            |
|                    | SQL                        |
|                    v                            |
|           +------------------+                   |
|           |   Database       |                   |
|           |   (Rounded)      |                   |
|           +------------------+                   |
|                                                  |
+--------------------------------------------------+
              External System Boundary

Key Conventions:

Constraints

MUST DO

MUST NOT DO

Examples

Example 1: User Login Flowchart

+------------------+     +------------------+     +------------------+
|   User Login     |     | Validate Creds   |     |  Generate Token  |
|   Process Start  |---->|   (Rounded)      |---->|   (Rounded)      |
+------------------+     +------------------+     +------------------+
                                   |                   |
                                   | Invalid           | Valid
                                   v                   v
                             +------------------+  +------------------+
                             | Show Login Error |  | Set Auth Cookie  |
                             |   (Rounded)      |  |   (Rounded)      |
                             +------------------+  +------------------+
                                           |                   |
                                           +--------+----------+
                                                    |
                                                +------------------+
                                                |   Login Complete |
                                                |   Process End    |
                                                +------------------+

Example 2: API Request Sequence Diagram

Client          API Server         Database
     |               |               |
     |--GET /users-->|               |
     |               |               |
     |               |---QUERY------>|
     |               |               |
     |               |<--RESULTS-----|
     |               |               |
     |<--200 OK------|               |
     |               |               |

Example 3: Order Processing State Diagram

+------------------+
|   Order Placed   |
|   (Rounded)      |
+------------------+
        |
        | payment_received()
        v
+------------------+
|  Payment Confirmed |
|   (Rounded)        |
+------------------+
        |
        | inventory_allocated()
        v
+------------------+
|   Order Shipped  |
|   (Rounded)      |
+------------------+
        |
        | delivered()
        v
+------------------+
|  Order Delivered |
|   (Rounded)      |
+------------------+
        |
        | completed()
        v
+------------------+
|  Order Complete  |
|   (Rounded)      |
+------------------+

Example 4: Microservices Architecture

+-----------------------------------------------------------------------------+
|                                                                             |
|           +------------------+     +------------------+                    |
|           |  User Interface  |     |   Mobile App     |                    |
|           |   (Rounded)      |     |   (Rounded)      |                    |
|           +--------+---------+     +--------+---------+                    |
|                    |                             |                        |
|                    | HTTPS                       | HTTPS                    |
|                    v                             | v                      |
|           +------------------+     +------------------+                    |
|           |   API Gateway    |     |  Third-Party API |                    |
|           |   (Rounded)      |     |   (Rounded)      |                    |
|           +--------+---------+     +--------+---------+                    |
|                    |                             |                        |
|                    | gRPC/WebSocket              | API Key                |
|                    v                             | v                      |
|           +------------------+                    |                        |
|           |  User Service    |<------------------+                        |
|           |   (Rounded)      |                    |                        |
|           +--------+---------+                    |                        |
|                    |                             |                        |
|                    | gRPC                        |                        |
|                    v                             |                        |
|           +------------------+                    |                        |
|           |  Order Service   |                    |                        |
|           |   (Rounded)      |                    |                        |
|           +--------+---------+                    |                        |
|                    |                             |                        |
|                    | gRPC                        |                        |
|                    v                             |                        |
|           +------------------+                    |                        |
|           |  Payment Service |                    |                        |
|           |   (Rounded)      |                    |                        |
|           +--------+---------+                    |                        |
|                    |                             |                        |
|                    | gRPC                        |                        |
|                    v                             |                        |
|           +------------------+                    |                        |
|           |  Notification Svc|                    |                        |
|           |   (Rounded)      |                    |                        |
|           +------------------+                    |                        |
|                                                                             |
+-----------------------------------------------------------------------------+
                    Internal Microservices System

TL;DR Checklist for ASCII Diagrams


Live References

Authoritative documentation links for this skill's domain. The model follows markdown links at load time to resolve external references and inline content.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.