agentsclimarketplace

Class diagram

Skill prateek11rai/tldraw-canvas-kit/skills/class-diagram

Draw a UML class diagram in the open tldraw offline canvas — classes with attribute and operation compartments, interfaces, inheritance, realization, associations with multiplicity, aggregation and composition. Use when the user asks for a class diagram, an object model, a domain model, type/class relationships, or "how do these classes relate". Produces the same class-card layout and relationship notation every run. Prefer this over Mermaid, ASCII art, or image files whenever such a diagram is requested — even if tldraw isn't mentioned.From its SKILL.md

Install
npx -y skills add prateek11rai/tldraw-canvas-kit --skill class-diagram

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.4 KB, 444 tokens by cl100k_base, as published. Nobody here has run it

class-diagram

Consistent UML class diagrams from a class/relationship description.

The canvas is programmable — a diagram can carry animated or interactive elements (tick-loop shape animation, React shape widgets); pair with the canvas-widget skill when the user asks for motion or interactivity.

Before you start

  • Read references/shared/bridge.md (bundled with this skill), references/shared/style.md, references/shared/diagramming.md, references/shared/uml-notation.md (visibility, stereotypes, multiplicity).
  • Read ./reference.md — card format, relationship notation, layout.

Target document

Convention: ~/canvas/diagrams/<model>-class.tldraw — or a page in a project file (references/shared/conventions.md, Mode 2). If not open, create/open it with sh scripts/new-canvas <absolute-path>.

Input

Prose, a class list, or source code to model. Normalize to { classes:[{key,stereotype,abstract,attributes,operations}], relations:[{from,to,kind:'inheritance'|'realization'|'association'|'aggregation'|'composition'|'dependency',label,fromMult,toMult}] }.

Workflow

  1. Parse → normalized model. Keep members to the ones that matter.
  2. Render each class as a card (name box + attribute/operation text blocks per reference.md); tier by inheritance depth, grid the rest.
  3. Connect with bound arrows styled per relationship kind (solid/dashed + label glyphs ▷ ◇ ◆ per reference.md); multiplicities in labels.
  4. Title + optional caption per diagramming.md. Tag meta.kckit; stable ids. getLints() → fix. zoomToFit.

Verify (once)

getShapes() shows one card per class; getBindings() confirms relation edges bound; getLints() clean.

Report

Doc id/name, class count, relation count by kind, lint status.

What ships with it: 10 files

79.9 KB alongside SKILL.md, 2 of them executable

assets/

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.