Skill library

Agent skill UI design

Dimensional Drawing

Develop illustrations, icons or graphic assets for web pages.

  • Web illustration

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add enesozturk/dimensional-drawing --skill dimensional-drawing --agent claude-code --yes

Check this file in your project.claude/skills/dimensional-drawing/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add enesozturk/dimensional-drawing --skill dimensional-drawing

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. The actual component or Storybook story, its state fixtures and existing design tokens, and a browser to inspect the rendered box model.

View operation manual

What this skill helps with

  • Develop illustrations, icons or graphic assets for web pages.

Good for

  • Illustration and icons
Task
Turn real component measurements into a grayscale dimension sheet
Inputs
The actual component or Storybook story, its state fixtures and existing design tokens, and a browser to inspect the rendered box model.
Deliverable
A local SVG-in-HTML sheet whose dimension annotations and formulas match the real component measurements.
Skill name
dimensional-drawing

Define the real inputs and output

A broad request

Create a diagram of the component from a screenshot using approximate distances.

Screenshot scale and template whitespace can obscure the real CSS dimensions or lead to inconsistent annotation sums.

A verifiable workflow

  1. Record dimensions, token values and which markup owns each distance.
  2. Every visible measure maps to a real code or variable with a verifiable total.
  3. The complete sheet remains legible at the documented inspection width.

Dimensional Drawing operation manual

A local SVG-in-HTML sheet whose dimension annotations and formulas match the real component measurements.

The actual component or Storybook story, its state fixtures and existing design tokens, and a browser to inspect the rendered box model.

  1. Measure the real component and defined states

    Record dimensions, token values and which markup owns each distance.

    Prompt · Step 1
    Use Dimensional Drawing for [component source or story and state fixtures]. Render at its actual scale, wait for fonts and use getBoundingClientRect plus getComputedStyle on the true nodes. Measure padding, gap, radius, border and relevant minimum sizes. Name each semantic value and note differences across relevant states.
  2. Draw the sheet with complete variables and views

    Every visible measure maps to a real code or variable with a verifiable total.

    Prompt · Step 2
    For [reviewed measurement list], build one grayscale HTML sheet with the supplied SVG drawing kit. Select front, detail or exploded views as needed. Use unique marker and hatch IDs for the sheet, label dimension lines with your measured codes, and keep a table with code, variable and value. Check that every subtotal closes.
  3. Render the sheet and inspect annotation collisions

    The complete sheet remains legible at the documented inspection width.

    Prompt · Step 3
    Open [local HTML sheet] in Playwright at 1800 px width and capture it. Review each label and stroke for overlap and clipping at the border. Check that all codes appear in the table and subtotal values match the component measurements. Resolve any crowded callout with layout rather than changing real dimensions.

Look up tooling and verification

Use the scripts or templates in this installed distribution.

Should I animate the sheet in this workflow?SKILL.md
Command or reference
getBoundingClientRect · 1800 px · SVG dimension sheet
Examples
Use this Skill to finish the measured static sheet. The publisher provides Dimensional Drawing Motion as a separate workflow for animating the result.

Troubleshooting and FAQ

Should I animate the sheet in this workflow?

Use this Skill to finish the measured static sheet. The publisher provides Dimensional Drawing Motion as a separate workflow for animating the result.