class
/class
Writes valid class diagram source for uml-mcp (diagram_type=class). Shows classes, attributes, methods and relationships between classes Use when the user asks for class or that notation; then call validate_uml / generate_uml / generate_uml_image.
- Author
- antoinebou12 ↗
- Repository
- uml-mcp ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Writes valid class diagram source for uml-mcp (diagram_type=class). Shows classes, attributes, methods and relationships between classes Use when the user asks for class or that notation; then call validate_uml / generate_uml / generate_uml_image.
Original author description
Writes valid class diagram source for uml-mcp (diagram_type=class). Shows classes, attributes, methods and relationships between classes Use when the user asks for class or that notation; then call validate_uml / generate_uml / generate_uml_image.
How it works
- Notation tips
- Themes
- Starter template
- Example
- Render with uml-mcp
SKILL.md preview
---
name: class
description: >-
Writes valid class diagram source for uml-mcp (diagram_type=class). Shows classes, attributes, methods and relationships between classes Use when the user asks for class or that notation; then call validate_uml / generate_uml / generate_uml_image.
---
# class diagram (uml-mcp)
**`diagram_type`:** `class`
**Backend:** `plantuml`
**Output formats:** png, svg, pdf, txt, base64
Shows classes, attributes, methods and relationships between classes
Load the workflow skill [uml-mcp-diagrams](../uml-mcp-diagrams/SKILL.md) for URL-first replies, progressive discovery, and which MCP tool to call. This file is notation only; it does not add an MCP tool.
## Notation tips
- Visibility: `+` public, `-` private, `#` protected.
- Inheritance: empty triangle; composition filled diamond; aggregation empty diamond; multiplicities on associations.
- Prefer `skinparam linetype ortho` and `left to right direction` when the graph is dense.
## Themes
Pass **`theme`** to `generate_uml` / `generate_uml_image` (PlantUML built-in name).
The server injects `!theme <name>` after `@startuml` when the source has no `!theme` yet.
Recommended: `cerulean`, `materia`, `sketchy`, `cyborg`, `plain`, `aws-orange`, `blueprint`, `sandstone`.
Match the **page background** (also see MCP prompt **`diagram_theme`**):
- light / white: `cerulean`, `materia`, `plain`, `sketchy`, `sandstone`
- dark / black: `blueprint`, `cyborg`, `black-knight`, `carbon-gray`, `crt-green`
- B&W / print: `plain`, `sketchy`, `sketchy-outline`, `mimeograph`, `lightgray`
Or embed in source:
```plantuml
@startuml
!theme cerulean
' … diagram …
@enduml
```
## Starter template
```plantuml
@startuml
class Car {
- brand: string
- speed: int
+ drive(): void
}
class Engine {
- horsepower: int
+ start(): void
}
Car --> Engine
@enduml
```
## Example
```plantuml
@startuml
class Account {
- balance: decimal
- accountNumber: string
+ deposit(amount: decimal): void
+ withdraw(amount: decimal): boolean
}
class Customer {
- name: string
- id: string
+ getAccounts(): List<Account>
}
class Transaction {
- amount: decimal
- date: DateTime
}
Customer "1" --> "*" Account : owns
Account "1" --> "*" Transaction : contains
@enduml
```
## Render with uml-mcp
1. Set `diagram_type` to `class` exactly.
2. Call **`validate_uml`** when the source is untrusted (prefer `strict: true` for Mermaid sequence).
3. Call **`generate_uml`**, **`generate_uml_image`** (chat PNG), or **`generate_uml_batch`**.
4. Pass **`theme`** when this skill's Themes section lists supported values.
5. Surface the returned `url` / `playground` (see the workflow skill).
Confirm formats with `uml://formats` or `list_diagram_types` when unsure.
Versions
The database has no other skills named class.
Database snapshot: 13.11.2026 · package version a01fdd7736dc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100state
Writes valid state diagram source for uml-mcp (diagram_type=state). Shows states of an object during its lifecycle Use when the user asks for state or that notation; then call validate_uml / generate_uml / generate_uml_image. - 100component
Writes valid component diagram source for uml-mcp (diagram_type=component). Shows components and dependencies Use when the user asks for component or that notation; then call validate_uml / generate_uml / generate_uml_image. - 91uml-diagram-design
UML 图表设计和绘制。当用户需要创建系统架构图、类图、时序图、用例图或其他 UML 图表时使用此技能。 - 100class-diagram
Generates a Mermaid class diagram showing types, inheritance, and composition. Use when visualizing class hierarchies or documenting a module public API. - 100033-architecture-diagrams
Use when you need to generate Java project diagrams — including UML sequence diagrams, UML class diagrams, C4 model diagrams, UML state machine diagrams, UML Deployment Diagrams, ER (Entity Relationship) diagrams, and bounded-context diagrams — through a modular, step-based…