Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

class

/class

Pisze poprawny kod diagramu klas dla uml-mcp (diagram_type=class), pokazujący klasy, atrybuty, metody i relacje, a potem waliduje i generuje diagram.

Repozytorium
uml-mcp ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pisze poprawny kod diagramu klas dla uml-mcp (diagram_type=class), pokazujący klasy, atrybuty, metody i relacje, a potem waliduje i generuje diagram.

Oryginalny opis (EN)

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.

Jak działa

  1. Notation tips
  2. Themes
  3. Starter template
  4. Example
  5. Render with uml-mcp
Sekcje z nagłówków SKILL.md, w oryginale · 89 linii, 330 słów
Podgląd SKILL.md
---
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.

Wersje

W bazie nie ma innych skilli o nazwie class.

Migawka bazy z 13.11.2026 · wersja paczki a01fdd7736dc (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100state
    Pisze poprawny kod diagramu stanów dla uml-mcp, a następnie sprawdza go i generuje z niego obraz.
  • 100component
    Pisze poprawne źródło diagramu komponentów dla uml-mcp, pokazując komponenty i zależności, oraz waliduje je i generuje diagram.
  • 91uml-diagram-design
    Projektuje i rysuje diagramy UML: architektury systemu, klas, sekwencji i przypadków użycia.
  • 100class-diagram
    Generuje diagram klas Mermaid pokazujący typy, dziedziczenie i kompozycję, przy wizualizacji hierarchii klas lub dokumentowaniu publicznego API modułu.
  • 100033-architecture-diagrams
    Tworzy diagramy UML, C4 i ER dla projektu Java w modułowym, krokowym procesie dopasowanym do potrzeb.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.