FREE RESOURCE · FROM THE "LINES" REEL
Hairline: line animations that come alive under your cursor (install + embed guide)
By Hammad Yousuf · 26 November 2026
Facts checked 26 November 2026
What Hairline is
Hairline is a free, open-source (MIT) set of isometric line figures that react to your cursor, by independent developer Lucas Marques (@lucasmarkes). It ships a skill for coding agents, hairline-create: you describe an idea and your agent draws a new figure to Hairline's ten design rules. It is a community project, not an Anthropic feature.
Install (one command)
You need Node.js 22.20 or later and a coding agent that reads skills (Claude Code, Cursor, Codex and others).
npx skills add lucasmarkes/hairlineIt asks which skills and which agents to install for. For Claude Code without the prompts:
This project (.claude/skills/):
npx skills add lucasmarkes/hairline -a claude-codeAll projects (~/.claude/skills/):
npx skills add lucasmarkes/hairline -g -a claude-code -yNo CLI? Copy both folders by hand (hairline-adopt calls hairline-create):
git clone --depth 1 https://github.com/lucasmarkes/hairline
cp -R hairline/skills/hairline-create hairline/skills/hairline-adopt ~/.claude/skills/Use it
- In Claude Code type
/hairline-create a sales funnel(any idea works: a lead form, a pricing tier, a deploy pipeline). - It pitches two or three concepts, one line each: the object, what the pointer does, what the read-out says. Pick one.
- It builds the figure, checks it against the rules with
validate.mjs, then looks at it in a headless browser. - You get
hairline-<name>.html: one file with no dependencies, an intensity slider, a light/dark switch and a play button that walks its tour. Ask for changes and it edits the figure and re-checks.
Have an SVG already? /hairline-adopt icons/deploy.svg rebuilds it as a figure and proposes what the pointer does.
Two prompts to copy
Paste either one into Claude Code once the skills are installed.
Draw a figure for your funnel
/hairline-create a lead-to-booked-call funnel: four stacked trays, leads pile up on top and thin out to one booked call below; the tray under the pointer slides out and the read-out shows its count.Turn your logo or icon into a figure
/hairline-adopt assets/logo.svg - the pointer lifts the part it is over and the read-out names it.Embed it on a landing page, your docs or a demo
The file opens from disk, so host it next to your page and embed it:
<iframe src="/figures/hairline-lead-to-call.html" title="Lead to booked call funnel"
style="width:100%;aspect-ratio:5/4;border:0" loading="lazy"></iframe>Every generated file contains the Hairline engine, which is MIT-licensed, and MIT asks you to keep its copyright notice with it, so keep this line near it:
Hairline engine (c) 2026 Lucas Marques, MITWhat it costs and what it touches
- Hairline and the skills: free, MIT, no account.
- The agent is the real cost: Claude Code needs a paid Claude plan (Pro, Max, Team, Enterprise) or API billing, and each figure takes a few turns of usage.
- First visual check:
look.mjsrunsnpm install playwright-core@1once into your cache and uses your installed Chrome (or downloads Chromium). - No API keys, no OAuth, no network calls from the figure; the checker rejects any figure that fetches or stores data. The
skillsCLI sends anonymous telemetry; turn it off withDISABLE_TELEMETRY=1.
Before you install any skill
Skills run with your agent's permissions. Hairline's skills declare no extra tools, but they do run local Node scripts. Read skills/hairline-create/SKILL.md first; it takes a minute.
The ten rules it draws to
- Hit areas don't move
- Stagger by distance
- Clamp the reach
- The stroke is the only highlight
- Rest is designed, never flat
- Construction stays honest
- Loops sleep offscreen
- Two clocks
- Round every corner, then draw less
- No words inside the figure
Credit: Hairline by Lucas Marques (MIT). Idea for the reel: @nick_saraev.
Official links
Sources checked
- MIT licence, copyright Lucas Marques, description "Isometric line figures that answer the pointer". Source ↗
- Install command npx skills add lucasmarkes/hairline; hairline-create and hairline-adopt usage; runs on Claude Code, Cursor, Codex and others. Source ↗
- Ten rules (01 hit ... 10 quiet). Source ↗
- Concepts -> Build -> Check -> Hand over; output hairline-<name>.html with no dependencies. Source ↗
- skills CLI: Node 22.20+; telemetry opt-out with DISABLE_TELEMETRY=1. Source ↗
- skills CLI flags -a claude-code, -g, -y; Claude Code paths .claude/skills/ and ~/.claude/skills/. Source ↗
- look.mjs installs playwright-core@1 once into a cache and drives the installed Chrome or Playwright's Chromium; validate.mjs rejects fetch, URLs and storage. Source ↗
- Claude Code needs a paid Claude plan or API billing. Source ↗
About the video: the reel that sent you here is presented by an AI avatar of Hammad Yousuf. Hairline itself is Lucas Marques's open-source project.
Keep going
- SkillSpector: scan Claude Code skills before you install them
- Claude animation styles: the free style pack (10 looks, real code)
- Claude Motion Apple-style animations: the brief and all 16 scene lines
- All free resources from the reels
- More free prompts from my reels
- Follow @withhammad.ai on Instagram for the next one
- Subscribe to @with.hammad on YouTube