skills/documentation/uml-documentation/SKILL.md
Document architecture using UML class diagrams with Mermaid. Trigger: When generating or interpreting class diagrams, mapping TypeScript classes to UML, or documenting object relationships.
npx skillsauth add johnnystefan/test-saas-business documentation/uml-documentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill enables the agent to interpret and generate visual documentation using the Unified Modeling Language (UML). It provides standard notation for representing classes, objects, and their relationships to communicate software design clearly.
+ : Public — accessible by any class.- : Private — accessible only within the class.# : Protected — accessible within the class and subclasses.| Relationship | Symbol in UML | Meaning | | :----------------- | :---------------------------- | :----------------------------------- | | Inheritance | Solid line + Hollow Triangle | Subclass "is-a" Superclass. | | Implementation | Dashed line + Hollow Triangle | Class "implements" Interface. | | Association | Solid line + Simple Arrow | Object A "knows" or "uses" Object B. | | Aggregation | Solid line + Hollow Diamond | A "has-a" B (B can exist without A). | | Composition | Solid line + Filled Diamond | A "consists of" B (B dies with A). |
When asked to document code, use the following mapping:
- and public getters with +.extends.implements.class House {
private rooms: Room[] = []; // COMPOSITION
constructor() {
this.rooms.push(new Room());
}
}
classDiagram
class House {
-rooms: Room[]
}
class Room {
}
House *-- Room : consists of
tools
Zustand 5 state management patterns. Trigger: When implementing client-side state with Zustand (stores, selectors, persist middleware, slices).
databases
Zod 4 schema validation patterns. Trigger: When creating or updating Zod v4 schemas for validation/parsing (forms, request payloads, adapters), including v3 -> v4 migration patterns.
development
Vitest unit testing patterns with React Testing Library. Trigger: When writing unit tests for React components, hooks, or utilities.
tools
Vite 8 (Rolldown-powered) build tool configuration, plugin API, SSR, and migration guide. Trigger: When working with vite.config.ts, Vite plugins, building libraries, or SSR apps with Vite.