Logo: Anthropic Style Diagram

Anthropic Style Diagram

Communautéit
rookie-ricardo
anthropic-style-diagram

Draw architecture, flow and structural diagrams in the Anthropic/Claude visual language as SVG, then render and save them as PNG. Trigger ONLY when the user names that visual language — 'Anthropic 风格架构图', 'Claude 风格流程图', 'Anthropic style diagram', 'Claude style flowchart', 'Anthropic 配色的图' — or asks for another diagram in the same style after this skill has already produced one in the conversation. Also use to re-render or export an SVG that already uses this skill's class system (th/ts/box/arr/c-blue…). Do NOT use for a plain 画图/画流程图/draw a diagram request with no style named, for data charts, UI mockups, illustrations, TikZ or mermaid output, or database ERDs.

Iwwersiicht

Editeurrookie-ricardo
Repositoryerduo-skills
Skill-Nummanthropic-style-diagram
Stären
936
Forks
88
Matgeliwwert Dateien
7
LizenzMIT
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.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    rookie-ricardo huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Anthropic Style Diagram an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/rookie-ricardo/erduo-skills/tree/main/skills/anthropic-style-diagram
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rookie-ricardo/erduo-skills.git /tmp/erduo-skills
mkdir -p .claude/skills
cp -r /tmp/erduo-skills/skills/anthropic-style-diagram .claude/skills/anthropic-style-diagram
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Anthropic Style Diagram 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 Anthropic Style Diagram automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Anthropic Style Diagram 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-Schlësselen.

  • 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.

Anthropic Style Diagram

Author a semantic SVG, let the browser do the rest. scripts/render.mjs supplies the design system, resolves the theme, audits the layout, crops the viewBox to the real ink bounds, bakes every computed style into literal attributes, and writes the PNG.

You draw geometry and meaning. The script owns colour, theme, viewBox and export. Never hardcode a hex value, never write a <style> block, never compute the final viewBox height by hand.

Workflow

  1. Plan before drawing. Count the nodes and group them by kind — one colour ramp per kind, never one per row. Decide the diagram type (see below). If the user named 6+ components, split into an overview plus one diagram per sub-flow rather than cramming one canvas.
  2. Write the SVG to a working path (scratchpad or /tmp), not the delivery path. Follow the authoring contract below; references/example-structural.svg and references/example-cycle.svg are the canonical shapes to imitate.
  3. Render: node scripts/render.mjs <working.svg> -o <target.png>.
  4. Clear the audit. Layout warnings print on stdout. Fix every one and re-render until the run is clean. A clean run only means nothing collides — that is the floor, not the bar.
  5. Review the render yourself against the checklist below. Any failure sends you back to step 2. This step is not optional: the audit measures geometry, and almost everything that makes a diagram wrong lives outside geometry.
  6. Report the saved path, and say what the review turned up.

The review checklist

Read the rendered image, not your source. The source is what you meant; the image is what the reader gets, and only one of those can be wrong.

  1. Read it cold. Set aside what you set out to draw and say what the picture actually claims. If that differs from the request, the diagram is wrong — not the reader.
  2. Trace every arrow. Each must start and end on the shape it means, and its direction must assert something true. An arrow down the page claims the lower node is used by the upper one; say that claim out loud and check it. Placing a component below another is an assertion, not a layout convenience.
  3. Find the loop. If the subject has feedback — an agent, a control system, a retry path, a training cycle — locate the return edge in the image. If you cannot see it, it is not there, and a one-way drawing of a loop is simply false.
  4. Read every label. Accurate, ≤5 words, sentence case, unclipped, and not claiming more than the system does.
  5. Check the colour. Same colour must mean same category. If two nodes share a ramp only because they were next in the list, re-assign.
  6. Scan the whitespace. Crowded regions and dead regions are both defects, and a uniform grid of same-sized boxes means the layout is carrying no information.

Rendering

bash
node scripts/render.mjs diagram.svg -o ~/Downloads/architecture.png
OptionDefaultNotes
-o, --out <path>./<name>.pngParent directories are created
--theme <t>lightlight, dark, or both (writes <name>-dark.png too)
--scale <n>2Pixel density. 3–4 for print or large social images
--bg <v>autoTheme paper colour; or transparent, or any #rrggbb
--padding <n>32Margin around content after cropping
--no-fit—Keep the authored viewBox instead of cropping to ink bounds
--svg—Also write a portable flattened .svg (no CSS, opens anywhere)
--check—Audit only, write nothing; exits non-zero when problems exist
--json—Machine-readable report

The audit catches the three mechanical failure modes: text spilling out of its shape, nodes overlapping, and connectors slicing through unrelated nodes. Round nodes are measured as ellipses rather than as their bounding box, so ring layouts are checked as strictly as grids. A clean run prints only the output paths. It says nothing about whether the diagram is well composed or even correct — see "Composition" below, and never treat a clean audit as approval.

First run needs Playwright. It is picked up from the skill, the project, or the global npm root; if missing, npm install in this directory.

Authoring contract

svg
<svg viewBox="0 0 680 H" role="img">
  <title>Short name</title>
  <desc>One sentence describing what the diagram shows.</desc>
  <defs>
    <marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
      <path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
    </marker>
  </defs>
  ...
</svg>
  • role="img" with <title> and <desc> as the first two children. Always.
  • Canvas width 680 by default — the text-width table below is calibrated to it. Widen to at most ~1000 when the content genuinely needs more columns; never shrink to hug narrow content, centre it instead.
  • Height is a rough guess. The renderer crops to the true bounds, so overestimate rather than clip.
  • No <script>, no onclick, no sendPrompt, no <a href>, no gradients, no filters, no drop shadows, no emoji, no rotated text, no <!-- comments -->.
  • <defs> holds the arrow marker and nothing else (plus a <clipPath> or one <linearGradient> in illustrative diagrams).

Classes — the only styling you write

ClassApplies toEffect
th<text>14px medium — node titles
t<text>14px regular — primary labels
ts<text>12px regular — subtitles, callouts
box<g> or shapeNeutral surface fill with a hairline border
node<g>Marks a node group; pair with box or a c-* ramp
arr<line>/<path>Connector stroke; add marker-end="url(#arrow)"
leader<path>Thin dashed callout/feedback line
c-purple c-teal c-coral c-pink c-gray c-blue c-green c-amber c-red<g> or shapeColour ramp — fill, border and text tones, both themes

Put c-* on the group that directly holds the shape and text. It uses direct-child selectors: an extra nested <g> breaks the fill.

Every <text> needs t, ts or th — an unclassed one renders as raw black.

Colour the nodes, not just the containers

Every node carries a ramp by default. Nodes of the same kind share one; a diagram where the boxes are all neutral and only the containers are tinted looks drained and flat — that is the single most common way these diagrams go ugly.

class="box" is neutral on purpose, and it has exactly one job: homogeneous sub-parts inside one coloured container, where the container already carries the category and tinting the children would invent distinctions that do not exist. Do not generalise that pattern to a whole diagram.

One ramp per category, not per row — colour must never track sequence. A six-category diagram legitimately uses six ramps; a three-step flow uses one or two. c-gray for neutral, structural or external nodes. Prefer purple, teal, coral and pink for generic categories; reserve blue, green, amber and red for genuinely informational, successful, warning or error concepts.

Composition — decide these before you draw

The four judgements the audit will never make for you. Get them right here, then confirm them against the rendered image with the review checklist above:

  • Uniform grids are a failure mode. If every tier holds the same number of identically sized boxes, the layout carries no information and reads as a spreadsheet. Vary box widths to match their content and vary the count per tier. Convergence, branching and a full-width emphasis row are what make a diagram look like a structure rather than a table.
  • Find the feedback edges. Anything with a loop in it — an agent, a control system, a retry path, a training cycle — drawn as a one-way stack is not simplified, it is wrong. Route the return edge as a leader path around the outside, or lay the stages in a ring when the cycle has no natural entry point; references/diagram-types.md carries the polar geometry for that.
  • Not everything is a stack. Before placing a box below another, say the dependency out loud: "the lower one is used by the upper one." A component the core talks to bidirectionally belongs beside it with a two-headed arrow (marker-start and marker-end), not underneath it.
  • Find the one thing the diagram is about and give it more weight — a container, a wider box, the only saturated colour in a neutral field. A diagram where everything is equally prominent has no subject.

Geometry

  • Box width from the longest label: max(title_chars × 8, subtitle_chars × 7) + 24. At 14px a character is ~8px; at 12px ~7px. CJK glyphs are ~14px. Formulas, subscripts and symbols run 30–50% wider — pad generously.
  • Heights: 44px single line, 56px title + subtitle, +20px per extra subtitle line. Keep every box in a tier the same height.
  • Spacing: ≥20px between boxes in a tier, 40–60px between tiers, ≥20px padding inside a container, 10px between an arrowhead and the box it points at.
  • Tier packing: sum the widths and gaps before placing. Four 130px boxes with three 20px gaps is 580px — fits. Four 160px boxes is 640px — does not.
  • Centre text: x = rect_x + w/2, y = the centre of its own line, with text-anchor="middle" dominant-baseline="central".
  • <text> never wraps. Each line is its own <text> or a <tspan> with an explicit x and dy. If a subtitle needs wrapping it is too long.
  • Connectors: a straight line that would cross an unrelated box gets an L-bend instead — M x1 y1 L x1 ymid L x2 ymid L x2 y2 with fill="none". Feedback loops route around the outside as a leader path; never draw the cycle as a ring.
  • Prefer one dominant direction — all top-down or all left-right.

Text budget

Subtitles are ≤5 words. Detail belongs in your prose reply, not inside the box. Sentence case everywhere — never Title Case, never ALL CAPS. Only two sizes exist: 14px and 12px. Avoid floating labels: every <text> sits inside a box or is a leader callout.

Diagram types

  • Flowchart — steps, decisions, transformations. "what are the steps", "what happens when…", "what's the flow".
  • Structural — containment and architecture; things inside things. "what's the architecture", "how is this organised", "where does X live".
  • Illustrative — a spatial metaphor that builds intuition. "how does X actually work", "I don't get X", "give me an intuition for". Freeform shapes, colour encodes intensity rather than category.

Route on the verb, not the noun: "transformer architecture" is structural, "how does attention work" is illustrative. references/diagram-types.md has the full playbook and copy-ready snippets; references/design-system.md has the ramp table and the detailed spacing and typography rules.

Database schemas and ERDs are not this skill's job — emit mermaid erDiagram instead.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Anthropic Style Diagram?

Draw architecture, flow and structural diagrams in the Anthropic/Claude visual language as SVG, then render and save them as PNG. Trigger ONLY when the user names that visual language — 'Anthropic 风格架构图', 'Claude 风格流程图', 'Anthropic style diagram', 'Claude style flowchart', 'Anthropic 配色的图' — or asks for another diagram in the same style after this skill has already produced one in the conversation. Also use to re-render or export an SVG that already uses this skill's class system (th/ts/box/arr/c-blue…). Do NOT use for a plain 画图/画流程图/draw a diagram request with no style named, for data cha...

Firwat Anthropic Style Diagram op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Anthropic Style Diagram 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Anthropic Style Diagram an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/rookie-ricardo/erduo-skills/tree/main/skills/anthropic-style-diagram an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Anthropic Style Diagram 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 Anthropic Style Diagram benotzen?

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

Ass de KI-Skill Anthropic Style Diagram gratis?

Jo. rookie-ricardo huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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