What problem does it solve? Diagrams generated from primitives often look flat and inconsistent with a user's established visual style, and manually reusing saved template blocks risks breaking layout, overlapping labels, or lowering diagram quality scores. ## Core Features & Use Cases - Personal Template Reuse: Searches and inspects the user's own imported Excalidraw library templates, then inserts them normalized to the drawing's grid, opacity, and font via add_library_items_normalized. - Score-Guarded Insertion: Re-scores the drawing after every insertion and automatically reverts any template that lowers the score, introduces arrow-over-text intersections, or causes label overlap. - Quality Gate & Audit Trail: Runs a lint-repair-polish loop until the drawing scores 95 or higher, redacts secrets from text elements, and records a used/rejected ledger in the saved version note. - Use Case: After generating a microservices architecture diagram, ask the agent to apply your saved "service card" and "auth block" templates so the diagram matches your other documents, with automatic rollback if any insertion degrades the layout. ## Quick Start Ask the agent to insert your saved template into an existing diagram, for example: "Reuse my standard service card template for these three nodes in drawing drw_a17c and keep the score at 95 or above."