/aigui:aigui-drawfrom aigui
Use when an answer would be clearer as a picture than as text — numbers that want a chart, a process or architecture that wants a diagram, a formula, a 3D shape or layout, an orbit or collision, a molecule, or a set of metrics that wants a dashboard — and the aigui MCP tools (aigui_guide, aigui_render, aigui_open) are available. Not for writing code that integrates the @ai-gui SDK; that is the aigui skill.
Ships in aigui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A terminal agent — Claude Code, Codex — shows text. The aigui MCP server draws for you: it takes ordinary markdown with AIGUI blocks in it and returns PNGs, or opens a page in the user's browser where the same blocks are live.
Draw when the picture carries the answer: comparing numbers, showing a trend, a flow with branches, a system's parts and how they connect (a cluster, a network, storage — and a process over it, like a write or a failover: use topology, whose steps play in the page; when the system is described by a docker-compose file or Kubernetes manifests, start from aigui_topology on them rather than describing it from memory), a formula worth typesetting, a 3D arrangement, an orbit, a molecule's shape, a set of KPIs. Do not draw what a sentence or a short table already says, and never draw instead of answering — the prose answer comes first, the picture supports it.
aigui_guide. Call it with no arguments once to see the blocks, then with the names you will use — {"blocks": ["chart", "mermaid"]}. Do this before the first block of each kind in a session; the rules are specific (most blocks take conditions and compute the results themselves) and guessing a field gets the block refused.aigui_open — the default. One HTML page, opened in the user's browser, where charts can be hovered, 3D scenes and molecules turned, walls and orbits animate. Required for the page-only blocks: graph, solid, function, optics, motion, physics, figure, quote and the rest.aigui_render — PNGs, returned to you, saved to disk, and (from the plugin) opened in the user's image viewer. Use it when the user wants an image file, or when you need to check a picture yourself before showing it. Draws chart, mermaid, maths, tables, bigscreen, dashboard, scene, gravity, topology and molecule.aigui_render returns the images to you: check the picture says what you meant before you describe it. Both tools also look the drawing over in a headless browser and list what a reader would trip over on lines starting ! — labels on top of each other, text cut off or too small, a pie of slivers, more points than the panel can show. Fix the block those lines name and draw again; do not present a picture with ! lines as finished. If a block could not be drawn, the result says so — fix its JSON against the guide and try again rather than telling the user it worked.aigui_edit with find-and-replace on its markdown — quote the text exactly and include enough of it to occur once — rather than sending the whole answer to aigui_open again. To hand the user a file to send or attach, aigui_export saves the page as PNG or PDF, as one self-contained HTML file, or — for a topology or scene with steps — as a GIF or WebM of it playing.aigui_feedback and act on each one with aigui_edit.data: {"sales": "/abs/path/sales.csv"} and reference it in the block — {"$data":"sales"} for the rows (an ECharts dataset.source), {"$data":"sales","column":"revenue"} for one column, {"$data":"sales","sum":"revenue"} for a KPI. The result says which file filled which block; tell the user.```chart, then the JSON, then ```.```bigscreen block with panels rather than several charts; give it width 1100 in aigui_render."view": "3d"; never write a Molfile from memory.aigui_render reports that no browser could start, relay its advice and use aigui_open meanwhile.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub liliang-cn/aigui --plugin aigui