What problem does it solve? When a user asks for a diagram without specifying the type, AI agents often pick the wrong format, mix diagram types on one canvas, or ship drawings with overlapping arrows and text. This Skill acts as the plan-then-build orchestrator that runs first on any diagram request, deciding the diagram type, preset, and library policy before any drawing tool is called, then enforcing a quality bar of score >= 95 with zero hard blockers. ## Core Features & Use Cases - Diagram type classification: Routes each request to exactly one of flow, c4, sequence, security, or dataflow, and flags mixed requests for splitting into separate views. - Mandatory quality loop: Drives lint_drawing -> score_drawing -> repair_drawing until the score reaches 95 with no ARROW_TEXT_INTERSECTION, FRAME_TITLE_OVERLAP, or ITEM_OUTSIDE_FRAME blockers, with rollback to a saved version if a repair lowers the score. - Library and secrets policy: Honors MCP_LIBRARY_MODE (off/curated/required), normalizes personal template icons into defined slots, and redacts secrets like JWT keys and database URLs before any create call. - Use Case: A user says "Draw our system: a Next.js web app talks to a Go API backed by Postgres and Redis." The Skill classifies it as a C4 container diagram, picks the architecture preset, generates it, repairs a HIGH_DENSITY penalty, validates the architecture, and exports a shareable SVG. ## Quick Start Ask the agent to draw your system, process, threat model, or data flow in plain language, for example "Draw the architecture of my web app with its API, database, and cache", and the Skill will classify, generate, repair, and export the diagram.