# Dimensional Drawing: Apple-style spec sheets of UI components (enesozturk/dimensional-drawing) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-05 against commit 5c45743.
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/enesozturk/dimensional-drawing/

## Explain it to a non-programmer
Your AI assistant turns a UI component, like a card or a dialog, into a one-page technical drawing in the style of Apple's accessory drawings. The sheet shows paddings, gaps, corner radii, layers and where the component sits on the screen, in grays only. A second skill turns the finished sheet into a short film of the drawing drawing itself.

## Who it is for
- You want an anatomy, spec sheet or redline of a component to hand to designers or developers
- You want to document how a card, dialog or button is built, not what text it shows
- You want a short black-and-white film of a component's drawing for a post or a talk
- You use Claude Code, Claude.ai, Codex, Cursor, Gemini or another assistant that reads skills
- Not for: You want a coloured or branded design mock-up: the drawing is grays only and unbranded by design
- Not for: You need animations made with Remotion, GSAP or Lottie: the author has not tested those

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/enesozturk/dimensional-drawing

## What it does
- Reads the real component (a file in your project, a Storybook story, a URL or a screenshot) and measures paddings, gaps, radii, borders and heights
- Draws one sheet: notes top left, a plan view, the shadow envelope, an exploded view of the layers, detail circles and variable tables
- Monochrome: black lines on white, things told apart by line weight, dashes and hatches
- Architecture, not content: text becomes slots such as TITLE SLOT · FLEX or ACTION · HUG
- Every dimension is a code (S for spacing, R for radius, H for height); derived values are written as formulas with the result
- Unbranded: neutral names like UI-CARD-001, no product names or logos unless you ask
- Never invents values: anything missing in the source is [TBD] and drawn to proportion only
- Checks itself before delivering: every code is in a table, every formula adds up, no colour, then one look at a 1800 px screenshot
- Also works for physical products: third-angle views and a section in mm, from published specs only
- Never cuts: [TBD] instead of a guessed value; no colour, no brand text, no real copy on the drawing

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| dimensional-drawing | plain language ("Make a dimensional drawing of the Card component in src/components/Card.tsx") | no | Draws one component as a gray, measured spec sheet in a single page file |
| dimensional-drawing-motion | plain language ("animate this drawing") | no | Turns a finished sheet into a film of about 10 seconds where the drawing draws itself |

### dimensional-drawing
- Asks for: The component to draw and where it lives: a file in your project, a Storybook story, a URL or a screenshot
- Asks for: Or a physical product, which is drawn from its published specs
- Asks for: Brand names only if you want them on the sheet
- Gives: One self-contained HTML file (an Artifact on claude.ai)
- Gives: A title block: name, drawing number, units, source, general notes and 6 or 7 key variables
- Gives: One drawing sheet: plan view, exploded layers, detail views, variable tables
- Gives: A one or two sentence reply naming the [TBD] values
- Say: "Make a dimensional drawing of the Card component in src/components/Card.tsx"

### dimensional-drawing-motion
- Asks for: A sheet made with the dimensional-drawing skill
- Asks for: Where to make it: Claude's Motion artifact on claude.ai, or the included renderer on your computer
- Gives: A film of about 11 seconds, 1920×1080 at 60 frames per second, in five beats
- Gives: An MP4 from the Motion export or from the renderer
- Gives: A one or two sentence reply with the film's length and what each beat shows
- Say: "Animate this drawing"

## Know before installing
- It draws structure, not content: your text becomes labelled slots, and values missing in the source stay [TBD] instead of being guessed.
- Gray and unbranded by design: no accent colour and no product or company names unless you ask for them.
- To measure a UI component the skill tells your assistant to render it in Playwright and read sizes from the page. Playwright is not part of the drawing skill; your assistant needs it already.
- The README's Claude Code install copies both skills into ~/.claude/skills/, so they are available in every project.
- The film is tuned for Claude's Motion artifact on claude.ai. The offline renderer is tested only with Playwright (Chromium) and ffmpeg.
- If you port the film to another animation library, check its license first; the author notes Remotion needs a company license above 3 people.

## Install (official commands)
- Claude Code: `git clone https://github.com/enesozturk/dimensional-drawing` && `cp -r dimensional-drawing/skills/* ~/.claude/skills/` — Installs both skills for all projects. Remove: `delete ~/.claude/skills/dimensional-drawing and ~/.claude/skills/dimensional-drawing-motion`.
- Claude.ai / Claude desktop: Zip one skill folder (for example skills/dimensional-drawing) and add it under Settings → Capabilities → Skills.
- Any other agent (Codex, Cursor, Gemini CLI and others): `npx skills add enesozturk/dimensional-drawing` — Or point your agent at the SKILL.md files.
- Offline film renderer (optional): `cd skills/dimensional-drawing-motion/adapters/headless` && `npm install` && `node render.mjs --scene ../../templates/scene-dialog.js --css ../../templates/base.css --out dialog.mp4` — Needs Node 18+ and ffmpeg on your PATH. npm install downloads Playwright and its Chromium. Set CHROMIUM_PATH to use a Chrome you already have.

## What runs on the user's machine
- Code on the machine: yes (the optional offline film renderer; the drawing skill itself is instructions plus two example pages)
- Network: optional
- Install: Markdown instructions, two example HTML sheets, a scene script and a stylesheet. No hooks: nothing runs at session start or on its own.
- Making a drawing: Your assistant writes one HTML file. To measure your component and to check the sheet it is told to use Playwright, if your setup has it. The page asks Google Fonts for Arimo when opened (as the author's example sheets do).
- Film on claude.ai: Your assistant creates a Motion artifact on claude.ai and writes the scene into it; you export the MP4 there. Nothing runs on your computer.
- npm install of the offline renderer: Installs Playwright, and its postinstall step downloads Chromium (network).
- Running render.mjs: Opens player.html in headless Chromium, draws each frame, pipes the PNGs to ffmpeg and writes one MP4 (or one PNG with --still) at the --out path. The player page asks Google Fonts for Arimo and falls back to Helvetica/Arial offline. No other network calls.

## Settings
- `CHROMIUM_PATH`: Use an existing Chrome/Chromium for the offline renderer instead of the downloaded one
- `render.mjs flags`: --scene (required), --css, --out (out.mp4), --duration (11), --fps (60), --width/--height (1920/1080), --bg (#ffffff), --still <t>, --crf (16), --ffmpeg

## Examples (from the pack's own files)
- The title block of the author's dialog sheet: output format defined in skills/dimensional-drawing/examples/dialog-sheet.html
- Sample sheets and the film: output format defined in README.md

## Author's numbers (as reported, not run by AgentGid)
- An 11 s film at 30 fps renders in about 45 s on a laptop-class CPU with the offline renderer (Playwright 1.4x + Chromium, ffmpeg 6.1). Source: enesozturk/dimensional-drawing/skills/dimensional-drawing-motion/adapters/headless/README.md

## How to tell it works
Install it and ask: "Make a dimensional drawing of the Card component in src/components/Card.tsx". You should get one HTML file in grays only, with a title block on top, codes like S1 and R2 on the drawing and their values in tables. The reply names the values the source did not define, marked [TBD].
