# Hairline skills: draw interactive isometric line figures (lucasmarkes/hairline) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-18 against commit 034f4bf.
> 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/lucasmarkes/hairline/

## Explain it to a non-programmer
Your AI assistant draws a small moving line drawing that reacts to the mouse, from an idea or from an icon you already have. You get one web page file that opens in any browser, with nothing to install on your site.

## Who it is for
- You want a small animated picture for a website hero, an empty screen or a feature section
- You have a logo or an icon as an SVG file and want it to come alive under the mouse
- You use Claude Code, Cursor, Codex or another assistant that reads skills
- Not for: You want colour, fills or glows: the style is thin lines only
- Not for: You want to animate your SVG as it is: the skill rebuilds the object, it never traces it

## What it is
- Kind: command, knowledge, scripts
- License: MIT
- Repository: https://github.com/lucasmarkes/hairline

## What it does
- Concept: two or three one-line ideas (the object, what the pointer does, what the corner read-out says, where the play tour stops); you pick one
- Build: the assistant writes only the figure file, <name>.js; the drawing engine and the page are fixed files it must not edit
- Ten rules: hit areas that don't move, motion that spreads by distance, a clamped reach, one bright stroke as the only highlight, a designed rest pose, honest paint order, no loops offscreen, two clocks, rounded corners, no words inside the figure
- Check: validate.mjs reads the page for rule breaks; look.mjs takes eight pictures (rest, answer, small, low, high, dark, light) on one sheet
- Hand over: one self-contained HTML page, plus the metaphor, the rules it leans on and the tour, and anything it could not check
- From an SVG (hairline-adopt): reads the drawing, keeps its object, parts and proportions, then hands off to hairline-create
- Never cuts: the validator passing, saying plainly when the figure was not looked at in a browser

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| hairline-create | /hairline-create [idea] | yes | Draws a new line figure from your idea and gives you one web page file |
| hairline-adopt | /hairline-adopt <file.svg> [what the pointer does] | yes | Turns an icon or logo you already have into a line figure that answers the mouse |

### hairline-create
- Asks for: An idea in a few words (a sales funnel, a rate limiter, an empty state)
- Asks for: Your pick among the two or three concepts it offers
- Asks for: Later changes in plain words, if you want them
- Gives: hairline-<name>.html: one page with the figure, a slider and a play button
- Gives: <name>.js: the figure's own code
- Gives: hairline-<name>-look.png: a sheet of eight check pictures (when a browser is available)
- Gives: A short note: the metaphor, the rules it leans on, the tour stops, what it could not check
- Say: "/hairline-create a sales funnel"

### hairline-adopt
- Asks for: One SVG file: an icon, a logo or an illustration
- Asks for: Optionally, what the mouse should do to it
- Gives: A one-line reading of your drawing and the parts it kept
- Gives: hairline-<name>-source.png and hairline-<name>-source.txt: a picture and a measured card of your drawing
- Gives: Then everything hairline-create gives: concepts, the page, the checks
- Gives: A note when the mark belongs to another company
- Say: "/hairline-adopt icons/deploy.svg"

## Know before installing
- The picture check downloads a browser helper (playwright-core) once with npm, into a cache folder in your home directory, not into the project.
- Without Node or a browser it still works: it checks by reading the code and says plainly that the figure was not looked at.
- It tries to publish the page as an artifact when your assistant can do that.
- A logo of another company stays theirs: the skill tells you so at hand-over.
- Line style only: one stroke in four weights, no colours or fills of the figure's own.
- The same repository also ships an npm package with 33 ready figures for React and plain pages; the card covers the two skills.

## Install (official commands)
- Any agent that reads skills (Claude Code, Cursor, Codex): `npx skills add lucasmarkes/hairline` — Then type /hairline-create with an idea, or /hairline-adopt with an SVG file. Remove: `delete the hairline-create and hairline-adopt folders from your agent's skills folder`.

## What runs on the user's machine
- Code on the machine: yes (hairline-create and hairline-adopt at work (the assistant runs the scripts in the skill folder))
- Network: optional
- Each build: build.mjs writes hairline-<name>.html in your working directory from bench.html, kernel.js and your figure.
- Each check: validate.mjs reads the page; for the syntax check it writes the figure to a temporary folder, runs node --check on it and deletes the folder.
- First run of look.mjs or read.mjs: Runs npm install playwright-core@1 into ~/Library/Caches/hairline-look (macOS), %LOCALAPPDATA%/hairline-look (Windows) or ~/.cache/hairline-look; HAIRLINE_LOOK_CACHE moves it. This is the only network call.
- look.mjs: Opens the page in your Chrome (or Playwright's Chromium) and writes hairline-<name>-look.png, -blind.png and -motion.png in the working directory.
- read.mjs (SVG input): Draws your SVG in the browser without running its scripts or fetching anything, and writes hairline-<name>-source.png and -source.txt in the working directory.
- The finished page: Self-contained: the validator rejects any fetch, URL, script tag or storage in the figure.
- Install: No hooks; nothing runs until the assistant runs a script.

## Settings
- `HAIRLINE_LOOK_CACHE`: Folder where look.mjs installs playwright-core (default: your user cache folder)

## Examples (from the pack's own files)
- A sales funnel (hairline-create): prompt "a sales funnel"; without the skill: None lines; with it: Four trays step down, each narrower with fewer beads: the stage under the pointer lifts, its neighbours rising less in turn. Page: apps/site/public/skill/hairline-funnel.html (apps/site/lib/skill.ts; None, the author's run)
- A rate limiter (hairline-create): prompt "a rate limiter"; without the skill: None lines; with it: Each second is a column of requests: a burst lifts the ones near the pointer, and none of them gets past the bar. Page: apps/site/public/skill/hairline-clearance.html (apps/site/lib/skill.ts; None, the author's run)
- A rocket from deploy.svg (hairline-adopt): prompt "deploy.svg the pointer's height is the thrust; raised high enough, the rocket lifts off"; without the skill: None lines; with it: A rocket on its pad: the pointer's height is the thrust, and raised high enough it lifts off on a flame and settles back. Page: apps/site/public/skill/hairline-deploy-liftoff.html (apps/site/lib/skill.ts; None, the author's run)

## Steps only the person can do
- Pick one of the two or three concepts the assistant offers (The chat) Then: The assistant builds that figure
- Press play on the finished page, or open it with ?play=1, and say whether the lap tells the figure's story (hairline-<name>.html in your working directory) Then: The assistant adjusts the tour if you ask

## Mistakes to avoid
- Not: Edit kernel.js or bench.html to make a figure work. Instead: Change only the figure file, <name>.js. Why: The validator checks that the kernel and bench are untouched
- Not: Expect the SVG to be traced or animated as drawn. Instead: Expect a rebuilt object with the drawing's parts and proportions. Why: The adopt skill rebuilds the object as solids
- Not: Ask for colours, fills or glows on the figure. Instead: Ask for a different bright edge or a stronger intensity. Why: The rules allow one stroke in four weights; colour of the figure's own is rejected
- Not: Treat a figure as done when no browser was available. Instead: Read the hand-over note; it says when the figure was not looked at in a browser. Why: The look needs a browser; without one only the code was checked

## What leaves the machine
- A package download request for playwright-core@1 → The npm registry (through your npm), First run of look.mjs or read.mjs, when the cache folder has no playwright-core. Opt out: Skip the picture check; the assistant then checks with validate.mjs only

## Lines in the pack aimed at agents (ask the person first)
- "`look.mjs` needs a browser and installs `playwright-core` once, outside this folder." (skills/hairline-create/SKILL.md): Tell the person before the first look.mjs or read.mjs run; it runs npm install into a cache folder in the home directory.
- "Publish `hairline-<name>.html` as an artifact if you can." (skills/hairline-create/SKILL.md): Ask the person before publishing the page anywhere; leaving the file in the working directory is the safe default.
- "If there is nobody to ask, take the concept with the strongest rest pose and say which you took." (skills/hairline-create/SKILL.md): When the person is present, wait for their pick instead of choosing.

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT; a figure from another company's mark is theirs to publish or not)

## Which one to pick
- If You want a small line figure that answers the mouse, from an idea or your SVG, as one HTML file: skill:lucasmarkes/hairline
- If You want detailed interactive isometric illustrations of real machines and complex systems: skill:wheresryan22/anatomy
- If You want your SVG itself animated as it is, at 60 fps: skill:rossark0/rossark-motion-skill
- If You want a raster logo animated with GIF or video previews: skill:nolangz/pixel2motion

## Works well with
- tool:playwright-core: look.mjs and read.mjs drive Chrome or Chromium through playwright-core for the picture check
- tool:skills: The README installs the two skills with npx skills add
- agent:claude-code: The README names Claude Code among the agents it runs on

## Works in and needs
- Works in Claude Code, Cursor, Codex and other agents that read skills: skills folder (skills CLI)
- Needs Node.js: Runs build.mjs, validate.mjs, look.mjs and read.mjs; without it the assistant copies files and checks by reading
- Needs npm: look.mjs installs playwright-core with npm on first run
- Needs Chrome or Playwright's Chromium: The picture check opens the page in a browser

## How to tell it works
Install it, then type "/hairline-create a sales funnel". It offers two or three concepts first; after your pick you get hairline-funnel.html (or a similar name) that opens from disk. Press play or open it with ?play=1 to see the tour.

## Safety
The scripts only write in your working directory, a temporary folder and the playwright-core cache folder. The first picture check runs npm install outside the project; ask your assistant to tell you before it does.
