ClaudeMap

sketch

Claude Code mod (plugin) with 17 drawing tools and one standing instruction — when an answer has a shape, draw the shape: architecture, flows, roadmaps, journeys, wireframes and charts as cards in the transcript, in your theme's colors

Plugins & Agentspluginmoddiagramvisualizationterminal

sketch is a Claude Code mod (plugin) by allen-hsu that gives Claude 17 drawing tools and one standing instruction: when an answer has a shape, draw the shape. Architecture, flows, roadmaps, user journeys, wireframes and charts appear as cards in the transcript, drawn in the terminal with your theme's colors. The toolset covers layers, auto-laid-out diagrams, schemas, swimlanes, pipelines, git graphs, sequence diagrams, trees, timelines, kanban boards, quadrants, journeys, wireframes, metric tiles, charts (bar, column, line, scatter, heatmap, histogram, funnel and more), persona cards, and a compare tool that draws options side by side and opens a pick dialog. Mechanically it is one hooks module: a ui.render hook replaces each tool call's row with the card drawn from the call's own input (the mod keeps no state), and a prompt.compose hook adds a short section to the system prompt telling Claude when to reach for which card. Press ctrl+o to see the raw tool call behind a card. A Traditional Chinese README is included.

What it does

  • 17 drawing tools — layers, diagram, schema, swimlane, pipeline, gitgraph, sequence, tree, timeline, board, quadrant, journey, wireframe, metrics, chart, cards, compare — with a standing instruction: when an answer has a shape, draw the shape
  • Cards replace tool-call rows in the transcript via a ui.render hook; the mod keeps no state, and ctrl+o reveals the raw tool call behind a card
  • A prompt.compose hook adds one short section to the system prompt so Claude knows when to reach for which card
  • compare draws options side by side and opens a pick dialog so Claude carries on with your choice
  • CJK text is measured correctly (wide characters as two cells); labels can be in any language

When to use it

Use whenever an answer would be clearer as a picture — explaining how a service is put together, comparing options, planning a quarter, sketching ER models, CI/CD pipelines, branch strategies, user journeys or wireframes — without leaving the terminal or hand-drawing a diagram.

Getting started

At the prompt of a Claude Code terminal session:

/plugin install sketch --marketplace allen-hsu/claude-code-sketch

Answer y to add the marketplace, then pick a scope (user scope loads it in every session). From a shell:

claude plugin install sketch --marketplace allen-hsu/claude-code-sketch

In the desktop app, where /plugin does not run: click + next to the prompt box, then Plugins, Add marketplace with allen-hsu/claude-code-sketch, then Add plugin.

Things to know

The README's own numbers and limits: tool definitions plus the prompt section ride on every request in a session where the mod is loaded — roughly 5 thousand tokens (the README calls it an estimate, not a measurement); cards get cramped below about 60 terminal columns; terminals that draw ambiguous-width symbols two cells wide will misalign some cards; built and tried on Claude Code 2.1.325 in a terminal, while desktop and mobile surfaces are untested. The README's images are script-rendered from the real hooks, not window screenshots, so spacing and colors can differ slightly in your terminal. MIT license. 35 stars as of writing (2026-11-15).

Repository

allen-hsu/claude-code-sketch

Charted

Related on the map

  • clawd-conduit

    Plugin / Agent

    Wire all 15 Claude Code hook events into the Clawd on Desk desktop pet — and turn permission requests into a blocking desktop card.

    • hooks
    • desktop
    • notifications
    • claude-code
  • CometixCode

    Plugin / Agent

    An unofficial Rust 1:1 reimplementation of the Claude Code terminal UI, ported file-for-file onto an iocraft TUI framework.

    • terminal-ui
    • rust
    • reimplementation
    • unofficial
  • Abide

    Plugin / Agent

    Hook-level enforcement for the natural-language rules in AGENTS.md and CLAUDE.md — every edit is judged and violations are repaired in the same turn.

    • hooks
    • code-review
    • rules
    • agents-md