PlantUML ASCII Art Diagram Generator

VerifiedSafe

Generate ASCII art diagrams from PlantUML for terminal-friendly documentation and READMEs.

Sby Skills Guide Bot
DocumentationBeginner
8/15/2026
Claude CodeCursorCodex
#plantuml#ascii-art#diagrams#text-diagrams#documentation

Recommended for

Automated summary

Generates ASCII or Unicode text diagrams from PlantUML files using PlantUML's text output mode.

Strengths

  • Covers multiple PlantUML diagram types, including sequence, class, activity, state, component, use case, and deployment diagrams.
  • Offers pure ASCII output with -txt and Unicode-enhanced output with -utxt.
  • Well suited to READMEs, terminals, commits, and version-controlled documentation where images are impractical.
  • Simple command-line workflow, using either a system installation or the PlantUML JAR directly.

Limitations

  • Requires PlantUML, and often Java, to be installed locally.
  • Text rendering is less legible than graphical output for large or complex diagrams.
  • Rendering quality and compatibility depend on the PlantUML version and the diagram features used.
When to use it

Use it when a diagram must remain plain text, such as in a terminal, README, or pull request.

When not to use it

Avoid it when you need a polished visual diagram or cannot install PlantUML/Java in the environment.

Security analysis

Safe
Quality score84/100

The skill only documents how to author PlantUML source files and convert them to ASCII/Unicode text with the plantuml CLI. There are no destructive commands, no credential or secret exfiltration, no obfuscated payloads, and no attempts to disable safety controls. The only notable surface is Bash usage for installing PlantUML and running the converter, which is legitimate and requires normal user consent.

Findings
  • •Installation section includes sudo package installs (apt-get/yum) and a wget download of a PlantUML JAR from GitHub; these are user-initiated setup steps, not automatic actions, and no integrity check (checksum) is suggested
  • •Bash is declared and used to run the plantuml CLI and simple file redirection, which is inherent to the skill's purpose
How this analysis is made

Examples

Login sequence as Unicode ASCII
Create a PlantUML sequence diagram for a login flow with User, Web App, and Database participants, then render it as Unicode ASCII art using plantuml -utxt.
Class diagram for docs
Generate an ASCII class diagram for User and Order classes with a one-to-many relationship, and save the PlantUML source plus the -txt output in ./docs.
Activity diagram for a terminal README
Create a PlantUML activity diagram for a validation flow and render it as plain ASCII with plantuml -txt so I can paste it into a terminal README.

name: plantuml-ascii description: "Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or mentions plantuml ascii, text diagram, ascii art diagram. Supports: Converting PlantUML diagrams to ASCII art, Creating sequence diagrams, class diagrams, flowcharts in ASCII format, Generating Unicode-enhanced ASCII art with -utxt flag" license: MIT allowed-tools: Bash, Write, Read

PlantUML ASCII Art Diagram Generator

Overview

Create text-based ASCII art diagrams using PlantUML. Perfect for documentation in terminal environments, README files, emails, or any scenario where graphical diagrams aren't suitable.

What is PlantUML ASCII Art?

PlantUML can generate diagrams as plain text (ASCII art) instead of images. This is useful for:

  • Terminal-based workflows
  • Git commits/PRs without image support
  • Documentation that needs to be version-controlled
  • Environments where graphical tools aren't available

Installation

# macOS
brew install plantuml

# Linux (varies by distro)
sudo apt-get install plantuml  # Ubuntu/Debian
sudo yum install plantuml      # RHEL/CentOS

# Or download JAR directly
wget https://github.com/plantuml/plantuml/releases/download/v1.2024.0/plantuml-1.2024.0.jar

Output Formats

| Flag | Format | Description | | ------- | ------------- | ------------------------------------ | | -txt | ASCII | Pure ASCII characters | | -utxt | Unicode ASCII | Enhanced with box-drawing characters |

Basic Workflow

1. Create PlantUML Diagram File

@startuml
participant Bob
actor Alice

Bob -> Alice : hello
Alice -> Bob : Is it ok?
@enduml

2. Generate ASCII Art

# Standard ASCII output
plantuml -txt diagram.puml

# Unicode-enhanced output (better looking)
plantuml -utxt diagram.puml

# Using JAR directly
java -jar plantuml.jar -txt diagram.puml
java -jar plantuml.jar -utxt diagram.puml

3. View Output

Output is saved as diagram.atxt (ASCII) or diagram.utxt (Unicode).

Diagram Types Supported

Sequence Diagram

@startuml
actor User
participant "Web App" as App
database "Database" as DB

User -> App : Login Request
App -> DB : Validate Credentials
DB --> App : User Data
App --> User : Auth Token
@enduml

Class Diagram

@startuml
class User {
  +id: int
  +name: string
  +email: string
  +login(): bool
}

class Order {
  +id: int
  +total: float
  +items: List
  +calculateTotal(): float
}

User "1" -- "*" Order : places
@enduml

Activity Diagram

@startuml
start
:Initialize;
if (Is Valid?) then (yes)
  :Process Data;
  :Save Result;
else (no)
  :Log Error;
  stop
endif
:Complete;
stop
@enduml

State Diagram

@startuml
[*] --> Idle
Idle --> Processing : start
Processing --> Success : complete
Processing --> Error : fail
Success --> [*]
Error --> Idle : retry
@enduml

Component Diagram

@startuml
[Client] as client
[API Gateway] as gateway
[Service A] as svcA
[Service B] as svcB
[Database] as db

client --> gateway
gateway --> svcA
gateway --> svcB
svcA --> db
svcB --> db
@enduml

Use Case Diagram

@startuml
actor "User" as user
actor "Admin" as admin

rectangle "System" {
  user -- (Login)
  user -- (View Profile)
  user -- (Update Settings)
  admin -- (Manage Users)
  admin -- (Configure System)
}
@enduml

Deployment Diagram

@startuml
actor "User" as user
node "Load Balancer" as lb
node "Web Server 1" as ws1
node "Web Server 2" as ws2
database "Primary DB" as db1
database "Replica DB" as db2

user --> lb
lb --> ws1
lb --> ws2
ws1 --> db1
ws2 --> db1
db1 --> db2 : replicate
@enduml

Command-Line Options

# Specify output directory
plantuml -txt -o ./output diagram.puml

# Process all files in directory
plantuml -txt ./diagrams/

# Include dot files (hidden files)
plantuml -txt -includeDot diagrams/

# Verbose output
plantuml -txt -v diagram.puml

# Specify charset
plantuml -txt -charset UTF-8 diagram.puml

Ant Task Integration

<target name="generate-ascii">
  <plantuml dir="./src" format="txt" />
</target>

<target name="generate-unicode-ascii">
  <plantuml dir="./src" format="utxt" />
</target>

Tips for Better ASCII Diagrams

  1. Keep it simple: Complex diagrams don't render well in ASCII
  2. Short labels: Long text breaks ASCII alignment
  3. Use Unicode (-utxt): Better visual quality with box-drawing chars
  4. Test before sharing: Verify in terminal with fixed-width font
  5. Consider alternatives: For complex diagrams, use Mermaid.js or graphviz

Example Output Comparison

Standard ASCII (-txt):

     ,---.          ,---.
     |Bob|          |Alice|
     `---'          `---'
      |   hello      |
      |------------->|
      |              |
      |  Is it ok?   |
      |<-------------|
      |              |

Unicode ASCII (-utxt):

┌─────┐        ┌─────┐
│ Bob │        │Alice│
└─────┘        └─────┘
  │   hello      │
  │─────────────>│
  │              │
  │  Is it ok?   │
  │<─────────────│
  │              │

Quick Reference

# Create sequence diagram in ASCII
cat > seq.puml << 'EOF'
@startuml
Alice -> Bob: Request
Bob --> Alice: Response
@enduml
EOF

plantuml -txt seq.puml
cat seq.atxt

# Create with Unicode
plantuml -utxt seq.puml
cat seq.utxt

Troubleshooting

Problem: Garbled Unicode characters

  • Solution: Ensure terminal supports UTF-8 and has proper font

Problem: Diagram looks misaligned

  • Solution: Use fixed-width font (Courier, Monaco, Consolas)

Problem: Command not found

  • Solution: Install PlantUML or use Java JAR directly

Problem: Output file not created

  • Solution: Check file permissions, ensure PlantUML has write access

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/plantuml-ascii-art-diagram-generator-mstwizpz/download' --output '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md.part' && mv '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md.part' '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash, Write, Read

Original excerpt: Installation
# macOS
brew install plantuml

# Linux (varies by distro)
sudo apt-get install plantuml  # Ubuntu/Debian
sudo yum install plantuml      # RHEL/CentOS

# Or download JAR directly
wget https://github.com/plantuml/plantuml/releases/download/v1.2024.0/plantuml-1.2024.0.jar

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && test -s '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/plantuml-ascii' && cp -R '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz' '.claude/skills/plantuml-ascii'

Cursor
test -f '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && test -s '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/plantuml-ascii' && cp -R '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz' '.cursor/skills/plantuml-ascii'

Codex
test -f '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && test -s '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/plantuml-ascii' && cp -R '.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz' '.agents/skills/plantuml-ascii'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz'

openskills read 'plantuml-ascii-art-diagram-generator-mstwizpz'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/plantuml-ascii-art-diagram-generator-mstwizpz/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills