What problem does it solve? Turning a discussion or architecture explanation into a visual diagram usually requires manually writing diagram code and guessing colors that match your editor theme. This Skill automates that by generating D2 diagrams from the current conversation context, styled to match your Emacs foreground color and background mode. ## Core Features & Use Cases - Context-to-Diagram Generation: Extracts diagrammable data from the recent conversation and renders it as a D2 diagram. - Emacs Theme Awareness: Queries Emacs via emacsclient for the default foreground color and background mode, then applies matching D2 themes (200 for dark, 0 for light) so diagrams are readable inline. - Inline Image Output: Renders a PNG with D2 and outputs a markdown image link that displays directly in the chat. - Use Case: After discussing a system architecture in Emacs, invoke /d2 to instantly get a themed diagram of the components and their relationships rendered inline. ## Quick Start Invoke /d2 to create a diagram from the current conversation context and display the resulting PNG image inline.