mcpField
P
plantuml

plantuml

github.com/full-stack-skillsDevelopment281 installsUpdated 4w ago
Repository

About plantuml

A skill for creating structurally valid PlantUML diagrams with clear semantics and readable layouts. It helps users choose a diagram type, produce source, and check its structure.

Key features

  1. 01Selects UML, C4, architecture, and workflow diagram types
  2. 02Generates complete PlantUML source blocks
  3. 03Organizes diagrams with aliases and boundaries
  4. 04Checks syntax structure and references
  5. 05Avoids unsupported components and relationships

Use cases

  1. 01Modeling runtime interactions or static types
  2. 02Documenting logical architecture or deployment topology
  3. 03Creating lifecycle, workflow, or use-case diagrams

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/full-stack-skills/document-skills --skill plantuml

After installing, type/plantumlin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.txt
agents/
openai.yaml
examples/
activity.md
archimate.md
c4.md
chronology.md
class.md
component.md
deployment.md
ditaa.md
ebnf.md
er-chen.md
er.md
gantt.md
ie.md
json-yaml.md
math.md
mindmap.md
network.md
object.md
regex.md
salt.md
sdl.md
sequence.md
state.md
timing.md
use-case.md
wbs.md

Details

From the project README

PlantUML Diagrams

Produce structurally valid PlantUML with explicit semantics and readable layout.

Routing

  • Choose PlantUML for UML, C4, enterprise architecture, or .puml output.
  • Choose the mermaid skill for lightweight diagrams embedded directly in Markdown. Install with: npx skills add full-stack-skills/document-skills --skill mermaid.
  • Choose the processon-diagram-generator skill when hosted editing or ProcessOn output is explicitly required. Install with: npx skills add full-stack-skills/document-skills --skill processon-diagram-generator.
  • Do not ask the user to choose a renderer when the requested notation or target format already determines it.

Workflow

  1. Extract actors, components, types, states, messages, or deployment nodes from the request and source.
  2. Select the diagram family and intended abstraction level.
  3. Generate a complete source block with matching start/end directives.
  4. Use aliases for long names and packages/boundaries for meaningful grouping.
  5. Validate with a local PlantUML renderer when available; otherwise perform structural checks.
  6. Save a .puml file only when requested or when integrating into an existing documentation tree.

Diagram selection

NeedPrimary syntax
Runtime interactionsequence, participant, actor
Static type modelclass, interface, relationships
Logical architecturecomponent, package, interface
Runtime topologynode, cloud, database, artifact
Lifecyclestate, [*]
Workflowstart, if, while, fork, stop
User goalsactor, usecase
C4 modelC4 include plus Person, System, Container, Component

Load only the matching file under examples/ when syntax details are needed.

Authoring rules

  • Wrap standard UML diagrams in @startuml and @enduml.
  • Define aliases once and reuse them consistently.
  • Label relationships with purpose or protocol when it improves understanding.
  • Separate logical architecture from deployment topology when one diagram becomes crowded.
  • Keep C4 levels distinct; do not mix context, container, and component detail without an explicit reason.
  • Avoid remote !include dependencies unless the user accepts network-dependent rendering.
  • Do not invent components, protocols, multiplicities, or calls that are unsupported by evidence.

Output

Inline delivery:

```plantuml
@startuml
actor User
participant API
database DB
User -> API: Submit request
API -> DB: Persist data
DB --> API: Result
API --> User: Response
@enduml
```

File delivery: prefer docs/diagrams/<descriptive-name>.puml unless the repository defines another convention. Never overwrite silently.

Validation checklist

  • Start/end directives match.
  • Aliases and referenced elements are defined.
  • Relationship direction and multiplicity are intentional.
  • C4 includes are available in the target rendering environment.
  • No secrets or machine-specific paths appear in source.
  • Local rendering succeeds when a renderer is available.

Comments

Markdown supported