/gemskills:visual-plannerfrom gemskills
Creates visual workflow diagrams using tldraw's .tldr format for agent orchestration, data pipelines, and system architecture. Includes a playground with planning-specific UI and an 'Open in tldraw' button.
Ships in gemskills. 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.
Read when SKILL.md points to them.
Create visual workflow diagrams using tldraw's .tldr format. Covers agent orchestration, data pipelines, system architecture, and any multi-step process. Diagrams open in a playground app built on the tldraw React component — no iframe, no external service.
The visual planner generates .tldr files directly. tldraw is embedded as an npm package (bun add tldraw) in our playground app — a React component with full programmatic API access.
visual-planner/
├── SKILL.md # This file
├── assets/
│ ├── supervisor.tldr # Template diagrams
│ ├── hierarchical.tldr
│ └── pipeline.tldr
├── scripts/
│ ├── create_diagram.ts # Headless: generate .tldr from description
│ ├── render_svg.ts # .tldr → polished SVG export
│ ├── validate.ts # Validate planning shapes in .tldr
│ ├── stats.ts # KPI summary from .tldr
│ └── playground_server.ts # Launch playground (tldraw + planning UI)
├── playground/ # tldraw-based canvas app
│ ├── package.json # tldraw + minimal deps
│ └── src/
│ ├── shapes/PlannerNodeShape.ts # Custom shape with phase/agent/tools
│ └── components/ # KPIBar, PlanningPanel, AgentBridge
└── references/
├── tldraw-format.md # Complete .tldr schema reference
├── tldraw-mcp.md # MCP internals, focused shape format
├── workflow-patterns.md # Agent orchestration patterns
└── design-system.md # Planning visual conventions
Read references/diagram-thinking.md before starting. The biggest source of bad diagrams is skipping the design reasoning and jumping straight to shapes.
Before gathering any nodes/edges, define the single question this diagram answers. If the question contains "and", you need multiple diagrams.
Examples:
Pick one C4 level per diagram:
Ask (one round, then generate):
planned, in_progress, implemented, needs_revision.Before writing shapes JSON:
references/design-system.md.note shapes for context like "30-min TTL", "Uses Claude Sonnet 4.6", "Needs retry logic" — don't cram everything into node labels.For agent systems, check if nodes map to the core roster. Assign the agent field when there is a clear match.
See references/workflow-patterns.md for common topologies and references/diagram-thinking.md for the full design reasoning guide.
Translate the discovery conversation into a .tldr file using the create_diagram.ts script. Place the file in the project: <project-dir>/docs/architecture/workflow.tldr.
The script handles all the hard parts: arrow bindings, richText wrapping, fractional indices from @tldraw/utils, and auto-layout via dagre. You describe nodes and edges — the tooling produces a correct diagram.
Write a focused shapes JSON array with nodes and edges. You can omit x/y when using --layout auto:
[
{ "_type": "rectangle", "shapeId": "supervisor", "w": 200, "h": 80, "color": "violet", "fill": "solid", "text": "Supervisor" },
{ "_type": "rectangle", "shapeId": "worker_a", "w": 200, "h": 80, "color": "blue", "fill": "solid", "text": "Code Writer" },
{ "_type": "rectangle", "shapeId": "worker_b", "w": 200, "h": 80, "color": "blue", "fill": "solid", "text": "Reviewer" },
{ "_type": "arrow", "shapeId": "a1", "fromId": "supervisor", "toId": "worker_a", "color": "black", "text": "delegate" },
{ "_type": "arrow", "shapeId": "a2", "fromId": "supervisor", "toId": "worker_b", "color": "black", "text": "review" }
]
Save as shapes.json.
bun run ${SKILL_DIR}/scripts/create_diagram.ts \
--input shapes.json \
--output <project-dir>/docs/architecture/workflow.tldr \
--layout auto \
--name "My Workflow"
The --layout auto flag runs dagre (top-to-bottom DAG layout) and computes all node positions automatically. Use this whenever the diagram has more than 2-3 nodes or you don't want to compute coordinates manually.
The script auto-validates the output after writing. Validation results are printed to stderr. The script exits with code 1 if there are errors — fix them before opening the playground. Pass --no-validate to skip validation.
To skip the separate playground launch step, add --open:
bun run ${SKILL_DIR}/scripts/create_diagram.ts \
--input shapes.json \
--output <project-dir>/docs/architecture/workflow.tldr \
--layout auto \
--open
This generates the diagram, validates it, and launches the playground in one step.
When you need exact control over positions, provide x/y for every shape and use --layout manual (the default):
bun run ${SKILL_DIR}/scripts/create_diagram.ts \
--input shapes.json \
--output workflow.tldr
Spacing constants for manual layouts:
| Element | Size |
|---|---|
| Node width | 200 px |
| Node height | 80 px |
| Horizontal gap | 150 px |
| Vertical gap | 120 px |
| Frame padding | 40 px |
Prefer kind: "arc" arrows (the default). Only use kind: "elbow" when nodes have at least 80 px of gap for routing headroom.
| Node concept | _type | color | fill | size |
|---|---|---|---|---|
| Supervisor / Primary | rectangle | violet | solid | 220x80 |
| Worker | rectangle | blue | solid | 200x80 |
| Human-in-loop | diamond | yellow | solid | 160x100 |
| Tool/API/External | cloud | light-blue | solid | 200x80 |
| Decision | diamond | orange | solid | 160x100 |
| Start | ellipse | green | solid | 60x60 |
| End | ellipse | red | solid | 60x60 |
| Annotation | note | yellow | — | auto-sized |
| Standalone label | text | black | — | auto-sized |
| External system (out of scope) | rectangle | grey | semi | 160x60 |
Use dash patterns and colors to create visual hierarchy:
| Relationship | dash | color | When to use |
|---|---|---|---|
| Primary flow | solid | black | Happy path, main request flow |
| Conditional dispatch | dashed | black | Supervisor routing to workers |
| Return / response | dotted | grey | Worker reporting results back |
| Error / rejection | dashed | orange | Failed validation, loop-back |
| Async / event-driven | dashed | blue | Message queue, webhooks |
| Monitoring / heartbeat | dotted | light-blue | Health checks, metrics, crons |
| Phase | color |
|---|---|
| Planned | grey |
| In Progress | blue |
| Implemented | green |
| Needs Revision | orange |
note / metaPass planning-specific data via the note field (stored in meta.note) or directly embed meta keys using raw .tldr. The note field is the simplest way to annotate shapes in focused format:
{ "_type": "rectangle", "shapeId": "supervisor", "w": 200, "h": 80, "color": "violet", "fill": "solid", "text": "Supervisor",
"note": "phase:in_progress | agent:orchestrator | model:claude-sonnet-4" }
Group related nodes into frames. List child shape IDs in the children array. With --layout auto, the frame is sized automatically to contain its children:
[
{ "_type": "frame", "shapeId": "phase1", "name": "Phase 1: Setup", "children": ["setup_a", "setup_b"] },
{ "_type": "rectangle", "shapeId": "setup_a", "w": 200, "h": 80, "color": "blue", "fill": "solid", "text": "Task A" },
{ "_type": "rectangle", "shapeId": "setup_b", "w": 200, "h": 80, "color": "blue", "fill": "solid", "text": "Task B" }
]
See references/tldraw-best-practices.md for arrow binding internals, valid style values, fractional indexing details, and raw .tldr pitfalls (only relevant if you write .tldr JSON directly instead of using focused shapes).
IMPORTANT: The playground is the primary output of this skill. ALWAYS launch the playground after generating a .tldr file. Do NOT fall back to rendering an SVG — the whole point is the interactive tldraw canvas.
If you used --open with create_diagram.ts, the playground is already launching. Otherwise, start it manually:
bun run ${SKILL_DIR}/scripts/playground_server.ts --file <project-dir>/docs/architecture/workflow.tldr
Dependencies are auto-installed on first run. The playground opens in the browser automatically. If port 3458 is already in use, the server will attempt to free it or pick the next available port.
The playground provides:
.tldr file; user then tells the agent about changes--wait-signal): returns diagram state inline to the waiting agent.tldr file in standalone tldraw for full editingThe playground shows a different action button depending on how it was launched:
Normal mode (default — no --wait-signal):
The bottom-right button says "Save". Clicking it writes the current diagram state back to the .tldr file. A brief "Saved to file" confirmation appears. After saving, the user can simply tell the agent: "I saved my changes" or "it looks correct to me", and the agent can re-read the .tldr file to pick up the updates.
Async mode (--wait-signal — agent awaiting callback):
The bottom-right button says "Send to Agent". Clicking it POSTs the updated state to /api/signal, which triggers the playground_server.ts watcher to read the .tldr file and return its contents to the waiting agent inline. The server then exits. This is the agent callback bridge for plan-edit-continue loops.
The mode is detected via the NEXT_PUBLIC_WAIT_SIGNAL env var set by playground_server.ts when launched with --wait-signal.
SVG export is available but is NOT the primary output. Only use for sharing static snapshots:
# Export to SVG (optional — for static sharing only)
bun run ${SKILL_DIR}/scripts/render_svg.ts --input workflow.tldr --output workflow.svg
# Get KPI summary
bun run ${SKILL_DIR}/scripts/stats.ts --input workflow.tldr
As implementation progresses, update node phases by editing the .tldr file or using the playground. Phase changes are the primary feedback mechanism between design and implementation.
workflow.tldr, identifies planned nodesmeta.phase to implemented and changes color to green<project-dir>/docs/architecture/
├── workflow.tldr # Source of truth (.tldr format)
├── workflow.svg # Exported SVG (optional)
└── background.png # Gemini-generated background (optional)
The .tldr file is the source of truth. The playground reads from it and writes back to it.
For programmatic diagram creation, use the focused shape format — a simplified JSON that's much easier to generate than raw .tldr records. The create_diagram.ts script accepts focused shapes and handles all the conversion (bindings, rich text wrapping, ID prefixing) automatically.
This is the same format used by the official tldraw MCP. See references/tldraw-mcp.md for the complete focused shape spec.
With auto-layout — no coordinates needed:
[
{ "_type": "rectangle", "shapeId": "supervisor", "w": 220, "h": 80, "color": "violet", "fill": "tint", "text": "Supervisor", "note": "Routes tasks to workers" },
{ "_type": "rectangle", "shapeId": "worker", "w": 200, "h": 80, "color": "blue", "fill": "tint", "text": "Worker" },
{ "_type": "arrow", "shapeId": "a1", "fromId": "supervisor", "toId": "worker", "color": "black", "text": "delegate" }
]
bun run ${SKILL_DIR}/scripts/create_diagram.ts --input shapes.json --output workflow.tldr --layout auto
Key simplifications vs raw .tldr:
fromId/toId — bindings are auto-created (correct format, correct binding records)x1,y1,x2,y2 — tldraw computes position from bindingsshape: prefix--layout auto, x/y are ignored — dagre positions everythingchildren array (or containment detection in manual mode)references/diagram-thinking.md — Read first. How to reason about what to draw: abstraction levels, entity selection, visual hierarchy, information density, legends. The design primer.references/tldraw-best-practices.md — Arrow binding internals, dagre layout usage, valid style values, fractional indexing, richText format. Read this before generating diagrams programmatically.references/tldraw-format.md — Complete .tldr schema: every shape type, bindings, rich text, style enums, layout patterns, and a working examplereferences/tldraw-mcp.md — How the official tldraw MCP works, focused shape format spec, fill/color/geo mappings. Our skill provides equivalent functionality without requiring the MCP serverreferences/workflow-patterns.md — Supervisor, hierarchical, pipeline, peer-to-peer, and human-in-loop patterns with layout recommendationsreferences/design-system.md — Planning visual conventions, phase indicators, color systemDiagram creation (create_diagram.ts) is local tldraw tooling and needs no provider key. Optional AI backgrounds use generate-image, which accepts OpenAI, Gemini, or xAI keys.
assets/hierarchical.tldr (opens in a new tab)assets/pipeline.tldr (opens in a new tab)assets/supervisor.tldr (opens in a new tab)playground/biome.json (opens in a new tab)playground/bun.lock (opens in a new tab)playground/next-env.d.ts (opens in a new tab)playground/next.config.ts (opens in a new tab)playground/package.json (opens in a new tab)playground/postcss.config.mjs (opens in a new tab)playground/src/app/api/config/route.ts (opens in a new tab)playground/src/app/api/heartbeat/route.ts (opens in a new tab)playground/src/app/api/signal/route.ts (opens in a new tab)playground/src/app/api/workflow/route.ts (opens in a new tab)playground/src/app/globals.css (opens in a new tab)playground/src/app/layout.tsx (opens in a new tab)playground/src/app/page.tsx (opens in a new tab)playground/src/components/PlanningOverlay.tsx (opens in a new tab)playground/tsconfig.json (opens in a new tab)playground/tsconfig.tsbuildinfo (opens in a new tab)references/design-system.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
gemskills@b-open-io is listed by b-open-io/claude-plugins — review the source before installing
npx claudepluginhub b-open-io/claude-plugins --plugin gemskills19 skills in this plugin
/ask-geminiThis skill should be used when the user asks to "ask Gemini", "get Gemini's opinion", "have Gemini review", "improve writing style", "make less AI-sounding", "get feedback on article", "review this draft", "Nano Banana", "Gemini API help", "Gemini models", or needs a second opinion on content, writing, code, or design. Supports text questions and up to 10 images./avatar-portraitThis skill should be used when the user asks to "create an avatar from a photo", "generate a portrait avatar", "make a profile image", "convert headshot to styled portrait", "team member avatar", "character-style avatar", or needs likeness-preserving avatars in any style (including pixel art)./browsing-stylesThis skill should be used when the user asks to "browse art styles", "pick a style", "choose a style", "select a style", "list available styles", "search styles", "show style options", "what styles are available", "explore artistic styles", "open style browser", "style picker", or needs to see available styles for image generation. Launch the visual browser (browse.ts) when the user wants to interactively pick a style./codex-agent-setupExplicit-only installer for the Gemskills Lisa Codex custom agent. Use ONLY when the user explicitly asks to install, update, check, uninstall, or set up the Gemskills or Lisa Codex agent, including "install Lisa in Codex", "update the Gemskills Codex agent", or "check gemskills_content". Never auto-invoke for ordinary image, video, design, or media-generation requests./deck-creatorThis skill should be used when the user asks to "create a deck", "make a presentation", "build slides", "pitch deck", "investor deck", "sales presentation", "design a deck", "interactive presentation", "presenter mode", "HTML slides", "video background deck", "deck playground", "visual deck editor", "deck builder UI", "publish deck link", or needs to generate a complete deck with minimal friction. Handles low-question discovery, early Deck Creator UI launch, theme selection, copywriting, parallel slide generation, PDF stitching, optional HTML presenter, and publishing workflows./edit-imageThis skill should be used when the user asks to "edit an image", "modify a photo", "inpaint", "outpaint", "extend an image", "replace object in image", "add element to image", "resize image for social media", "crop image", "adapt image for Twitter", "convert image to OG format", or needs AI-powered image editing with masks.Other plugins' skills for the same job