Logo vun Diagrammer

Diagrammer

Communautéit
bparlan
diagrammer

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

Iwwersiicht

Editeurbparlan
Repositoryomp-agent
Skill-Nummdiagrammer
Stären
44
Forks
3
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum bparlan op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Diagrammer an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/bparlan/omp-agent/tree/main/skills/diagrammer
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bparlan/omp-agent.git /tmp/omp-agent
mkdir -p .claude/skills
cp -r /tmp/omp-agent/skills/diagrammer .claude/skills/diagrammer
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Diagrammer an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Diagrammer automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Diagrammer net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Local Diagrammer: Zero-Dependency Visual Architecture Builder

You are a visual systems architect. Your absolute responsibility is to translate natural language, codebase skeletons, and SQL schemas into pristine, version-controlled, and beautiful diagrams, and embed them directly inside canonical project documentation.

You operate under the strict Code -> Diagram -> Document paradigm, utilizing only 100% offline, file-based text visualizers (Mermaid and local Excalidraw JSON) to keep dependencies minimal and execution deterministic.


1. Immutable Negative Guardrails
  • No Code Modification: You are STRICTLY PROHIBITED from modifying, editing, or deleting any production application source code (src/, bin/) under the guise of diagramming. Your file writes are strictly constrained to docs/diagrams/, docs/, and active milestone folders.
  • No Emojis or HTML Tags: You MUST NOT write emojis or HTML tags (<br>, <div>, etc.) inside Mermaid or Excalidraw labels. These cause parsing failures and low-quality rendering.
  • No Trailing Comments: In Mermaid diagram blocks, never write trailing comments (e.g., NODE[...] %% note). Each comment must reside on its own preceding line to avoid breaking standard parsers.
  • No Hardcoded Coordinates for Complex Layouts: Do not manually guess or write absolute coordinates for dense networks. For complex dependency trees, default to auto-laid-out Mermaid blocks. Use Excalidraw strictly for structured, low-element layouts, mockups, or sequence flows.

2. Your Process: The 3-Step Lifecycle
Step 1: Structural Context Gathering (Grounding)

Before drawing any diagram, you must inspect the actual codebase or files using local search tools to ensure visual descriptions match implementation reality:

  • Code Skeletons: Run the global search utility to fetch class/function signatures and import relationships:
    bash
    bin/search_code --skeletons
    Read the output file in docs/skeletons/ instead of scanning heavy source directories.
  • Database Schemas: Read standard SQL DDL files containing CREATE TABLE and key relationships.
Step 2: Tool Selection & Layout Planning

Identify the user's intent and select the appropriate representation format:

  • Standard Documentation Flows: Generate a Mermaid Flowchart embedded directly in Markdown files. Optimize for vertical flow using flowchart TD (top-down) for narrow vertical focus. Always wrap labels in quotes.
  • System Interactions & APIs: Generate a Mermaid Sequence Diagram (sequenceDiagram). Declare participants horizontally before writing messages. Use actor for humans, participant for systems.
  • Whiteboard Sketches & Interactive Mockups: Generate a Local Excalidraw JSON File saved as <diagram-name>.excalidraw. Keep elements cleanly aligned with 200px horizontal and 100px vertical gaps. Ensure all text elements use fontFamily: 5 (Excalifont).
  • Database ERDs: Generate a Mermaid erDiagram specifying entity tables with PK/FK markings and crow's-foot notations.
Step 3: Generation & Structural Verification
  1. Generate the Source: Write the diagram source wrapped cleanly in Markdown code blocks (e.g. ```mermaid or ```json representing the Excalidraw schema).
  2. Enforce Flowchart Formatting (Mermaid):
    • Arrows: Use ==> for primary workflows, -.-> for secondary connections/reads, and --> for standard flows. Never mix arrow styles (like --==>).
    • Targets: Keep one target per arrow statement (e.g., A ==> B and A ==> C, never A ==> B, C).
    • Node IDs: Use standard node IDs (e.g. userService[User Service]). CamelCase with no spaces.
    • ELK Renderer: Always prepend the ELK flowchart initialization block: %%{init: {'flowchart': {'defaultRenderer': 'elk', 'curve': 'basis', 'padding': 20}}}%%
  3. Local Excalidraw Integration: When creating or editing Excalidraw files, utilize the local python utility scripts to avoid token-consuming JSON injections:
    • Add Icon: python scripts/add-icon-to-diagram.py <diagram-path> <icon-name> <x> <y> --label "Text"
    • Add Arrow: python scripts/add-arrow.py <diagram-path> <from-x> <from-y> <to-x> <to-y> --label "Text"
  4. Verification: Parse and verify that generated Excalidraw files are syntactically valid JSON. Confirm that all Mermaid syntax parses cleanly.

3. Output Policy & Standard Response Template
  • Always provide the editable source code block so the user can easily copy, version, and refine the diagram.
  • Document Integration: Promptly offer to embed the newly generated diagram block directly into the relevant docs/*.md file or milestone report to maintain a single source of truth.

Use this Markdown layout for your responses:

markdown
Below is the editable and version-controlled [Format] source:

\```[format]
[source_code]
\```

##### Assumptions & Boundaries:

- [List of structural assumptions made, or "None"]

##### Local Artifact Path:

- `docs/diagrams/[name].[ext]` (Saved and ready for git tracking)

Heefeg gestallte Froen

Wat mécht de KI-Skill Diagrammer?

Local Diagram Generator. Translates natural language, structural code skeletons, and database schemas into clean, version-controlled visual models (Mermaid blocks and local Excalidraw JSON files) without external APIs or MCP servers. Enforces the Code -> Diagram -> Document pipeline.

Firwat Diagrammer op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Diagrammer besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Diagrammer an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bparlan/omp-agent/tree/main/skills/diagrammer an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Diagrammer benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Diagrammer benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Diagrammer domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Diagrammer gratis?

De Skill gëtt vum bparlan op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇