markjaquith/dotfiles/tldraw-diagramming
Claude Code and agent skill by markjaquith/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Use when the user requests tldraw or an editable, persistent diagram canvas. For diagrams embedded in a Sideshow report or code review, use Sideshow instead.
Install
npx vskill@latest install markjaquith/dotfiles/tldraw-diagrammingSKILL.md
The same SKILL.md was published earlier as markjaquith/dotfiles/tldraw-diagramming.
tldraw diagramming
Use this skill when the user asks for tldraw, a canvas edit, or a diagram they can continue editing as a persistent canvas. Use Sideshow instead when the requested diagram is part of an embedded report, explainer, or code review. When the destination is ambiguous, prefer tldraw for editability and Sideshow for presentation.
Purpose
This workflow uses the local tldraw Desktop Canvas API at http://localhost:7236 to create and refine diagrams programmatically.
Prefer small, incremental edits. For a non-trivial diagram:
- Understand the subject from source material first.
- Create a first-pass diagram with a small number of shapes.
- Inspect the document state.
- Tighten labels, layout, and hierarchy in follow-up edits.
Default workflow
Use these endpoints in order:
Recommended sequence:
curl http://localhost:7236/api/doc- If no doc exists, open tldraw and create one.
- Choose the active doc ID.
curl http://localhost:7236/api/doc/<DOC_ID>/shapes- Post grouped actions to create or update the diagram.
- Re-read shapes to verify the result.
- Optionally capture a screenshot for visual verification.
Document setup
- If
GET /api/docreturns no docs, open thetldrawapp and create a new document. - A practical way to do this locally is:
- Then re-run
GET /api/docuntil a document appears.
Diagramming heuristics
- Start with the core flow, then add side effects and notes.
- Use short labels. Prefer noun or verb phrases over sentences.
- Keep one main reading direction: left-to-right or top-to-bottom.
- Use notes sparingly for exceptions, retries, or caveats.
- Group related edits into a single
actionscall so undo works cleanly. - Prefer
place,align,distribute, andstackover micro-positioning when possible. - Verify the diagram after each meaningful edit with
/shapesand optionally/screenshot.
Good shape choices
rectanglefor systems, services, processors, jobs, and databasestextfor titles and section headersnotefor caveats, retries, dedupe behavior, and optional branchesarrowwithfromIdandtoIdfor connections
Default style guidance:
- Use mostly default black outlines and minimal fill.
- Reserve colored fills for emphasis only.
- Keep the palette restrained and consistent.
- Avoid overly dense text inside shapes.
Editing patterns
For first-pass creation, send one POST with all primary shapes and arrows.
For refinement, prefer:
labelto shorten wordingmoveto change reading orderalignanddistributeto clean layoutresizeonly when text needs more or less roombringToFrontfor titles and notes when needed
Vertical vs horizontal flow
- Use vertical flow when the process is linear and stage-based.
- Use horizontal flow when comparing systems or keeping labels short.
- Keep side branches off to one side rather than breaking the main spine.
When the user asks to tighten or polish
Default refinements:
- Shorten labels first
- Reduce the number of notes
- Make the main flow visually dominant
- Convert to vertical flow if that improves readability
- Rename arrows only when the branch meaning is not obvious
Verification checklist
Before finishing, confirm:
- A document exists and the intended doc ID was edited
- The main flow matches the requested subject
- Labels are concise
- Shapes read in a clear order
- Important side effects or edge cases are present, but not over-explained
Example actions payload
Communication pattern
When reporting back to the user:
- State what the diagram now shows
- Mention whether you optimized for clarity, brevity, vertical flow, or presentation quality
- Offer a small next-step set such as tightening labels, adding detail, or exporting a screenshot
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghome/.agents/skills/tldraw-diagramming/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/markjaquith/dotfiles/tldraw-diagramming)