Skip to main content
skill CX Codex

write-example — Claude Code skill: what it does, how to install

Guides coding agents through creating SDK examples for tldraw, enforcing folder naming, frontmatter fields, and React component conventions.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tldraw/tldraw --skill write-example -a claude-code
Open on GitHub

What write-example does

The skill standardizes SDK demo creation within the apps/examples/src/examples directory. Each demo gets its own kebab-case folder housing a README.md with structured metadata, a PascalCase React component ending with Example, and an optional .css file. Titles must use sentence case rather than title case.

Inside the example file, the component requires a default export, a wrapper element with the tldraw__editor class, and the stylesheet import tldraw/tldraw.css. For interactive buttons, it dictates using the TopPanel slot alongside TldrawUiButton and the useEditor hook. Code notes follow a footnote pattern with numbered markers and detailed explanations at the bottom.

These rules depend strictly on tldraw's internal repository structure: applying them outside apps/examples will produce invalid import paths and broken metadata tags.

What it helps with

  • scaffold a new tldraw SDK example matching repository conventions
  • populate frontmatter fields with valid categories and search keywords
  • build control panels using the TopPanel slot and TldrawUiButton
  • document complex code patterns using numbered footnote comments

Example prompts for the agent

  • Create an editor API demonstration with zoom controls inside apps/examples/src/examples/zoom-controls.
  • Generate the README.md and component boilerplate for a new custom shape example in use-cases.

How to install write-example

1Skills CLI (Vercel)

npx skills add tldraw/tldraw --skill write-example -a claude-code

2Manually: put the files in place

~/.claude/skills/write-example/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/write-example/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about write-example

How to install write-example in Claude Code?

Run npx skills add tldraw/tldraw --skill write-example -a claude-code in your terminal. This registers the skill at ~/.claude/skills/write-example/SKILL.md.

What does write-example do?

It provides coding guidelines for writing tldraw documentation demos. The agent follows exact naming rules, styling conventions, and frontmatter properties to integrate cleanly with the examples app.

What frontmatter categories does this skill allow?

Accepted categories are getting-started, configuration, editor-api, ui, layout, events, shapes/tools, collaboration, data/assets, and use-cases.

Similar skills

Everything for Frontend and UI →

From the same set10

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor