Hairline skills: draw interactive isometric line figures
lucasmarkes/hairline
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.
Pack description by its author: “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.”
Video, images and mediaCommands you run when neededKnowledge and rules for your assistantGives your assistant new abilities with scripts
1. Changes your files
Skills that write or edit files: hairline-create, hairline-adopt.
github.com/lucasmarkes/hairline/blob/034f4bf/2. Runs code on your machine
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.
github.com/lucasmarkes/hairline/blob/034f4bf/3. Sends data
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.
github.com/lucasmarkes/hairline/blob/034f4bf/Checked against the pack's files at commit 034f4bf, on Nov 18, 2026. Tap a verdict to see its source.How we checkedReport an error
Good for you if
- 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
Probably not for you if
- You want colour, fills or glows: the style is thin lines only
- You want to animate your SVG as it is: the skill rebuilds the object, it never traces it
What you'll notice
- First two or three ideas, one line each, and it waits for you to pick
- One file, hairline-<name>.html, that opens from disk and has a play button
- Checks before hand-over: a rule check and, with a browser, a sheet of eight pictures
- Extra picture files in your folder: the look sheet and, for an SVG, a picture of your drawing
What you need
- Claude Code, Cursor, Codex
- Free, MIT license
- One command with the skills tool
- The checking scripts need Node; the picture check also needs Chrome or Chromium and downloads a browser helper once
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- Skill pack
- Several skills in one GitHub repository, installed together.
- Slash command
- A command you type in the assistant's chat, starting with /.
| Repository | lucasmarkes/hairline · website |
|---|---|
| GitHub stars | 4,056 (the Hairline repository: these skills ship inside the product, so the stars are the product's) |
| Skills | 2 · 1 with scripts |
| Category | Video, images and media |
| License | MIT |
| Last updated | Nov 13, 2026 · card checked Nov 18, 2026 at commit 034f4bf |
| Install counts | lucasmarkes/hairline on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
lucasmarkes/hairline popularity over time
What Hairline skills 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 cut, per the skill: the validator passing, saying plainly when the figure was not looked at in a browser.
From the pack's SKILL.md files, summarised by AgentGid.
The 2 skills, explained
hairline-create
Draws a new line figure from your idea and gives you one web page file
You give
- An idea in a few words (a sales funnel, a rate limiter, an empty state)
- Your pick among the two or three concepts it offers
- Later changes in plain words, if you want them
You get
- hairline-<name>.html: one page with the figure, a slider and a play button
- <name>.js: the figure's own code
- hairline-<name>-look.png: a sheet of eight check pictures (when a browser is available)
- A short note: the metaphor, the rules it leans on, the tour stops, what it could not check
hairline-adopt
Turns an icon or logo you already have into a line figure that answers the mouse
You give
- One SVG file: an icon, a logo or an illustration
- Optionally, what the mouse should do to it
You get
- A one-line reading of your drawing and the parts it kept
- hairline-<name>-source.png and hairline-<name>-source.txt: a picture and a measured card of your drawing
- Then everything hairline-create gives: concepts, the page, the checks
- A note when the mark belongs to another company
Its rules, in pictures
The page it plans
Page ground and ink of the bench page, light and dark
How things move: its curve against a plain one
Each visual acts out what it does
| In your design | The story it plays |
|---|---|
| A field of pillars | Pillars rise under the pointer and fall off with distance |
| A tray of cards | The card under the pointer stands up, its neighbours lean away in turn |
| An empty state | A tool that holds things, shown holding none, with one bright mark |
Drawn by AgentGid from the values in the skill's files. This is not output of the skill; sample text is ours.
See it in action
Same task, same model, with and without the skill
Prompt: a sales funnel
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.
Source: apps/site/lib/skill.ts. AgentGid did not run it.
Prompt: a rate limiter
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.
Source: apps/site/lib/skill.ts. AgentGid did not run it.
Prompt: deploy.svg the pointer's height is the thrust; raised high enough, the rocket lifts off
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.
Source: apps/site/lib/skill.ts. AgentGid did not run it.
When to reach for it
| You want | Use |
|---|---|
| A new animated line figure from an idea | /hairline-create <idea> |
| Your own icon or logo brought to life under the mouse | /hairline-adopt <file.svg> [what the pointer does] |
| A drawing for an empty screen (no results yet) | /hairline-create an empty state for <what is missing> |
| A change to a figure you already have | Ask in plain words; only <name>.js is edited and checked again |
Skills in lucasmarkes/hairline
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
hairline-adopt/hairline-adopt <file.svg> [what the pointer does] |
Turns an icon or logo you already have into a line figure that answers the mouse | Yes | Use when someone has an SVG (an icon, a logo, an illustration) and wants it as a Hairline figure, or runs /hairline-adopt with a file. Reads the drawing, rebuilds its object as an isometric line figure on the engine of @lucasmarkes/hairline, and gives it a gesture that answers the pointer.npx skills add lucasmarkes/hairline --skill hairline-adopt |
hairline-create/hairline-create [idea] |
Draws a new line figure from your idea and gives you one web page file | Yes | Use when someone asks for a new Hairline figure, or runs /hairline-create with an idea. Draws one isometric line figure that answers the pointer, in the style and on the engine of @lucasmarkes/hairline, and hands it over as a single self-contained HTML file. has scriptsnpx skills add lucasmarkes/hairline --skill hairline-create |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- 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.
Before you start
Works in
- Claude Code, Cursor, Codex and other agents that read skills: skills folder (skills CLI)
You will need
- Node.js: Runs build.mjs, validate.mjs, look.mjs and read.mjs; without it the assistant copies files and checks by reading
- npm: look.mjs installs playwright-core with npm on first run
- Chrome or Playwright's Chromium: The picture check opens the page in a browser
Steps only you 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
Edit kernel.js or bench.html to make a figure work
Change only the figure file, <name>.js
The validator checks that the kernel and bench are untouchedExpect the SVG to be traced or animated as drawn
Expect a rebuilt object with the drawing's parts and proportions
The adopt skill rebuilds the object as solidsAsk for colours, fills or glows on the figure
Ask for a different bright edge or a stronger intensity
The rules allow one stroke in four weights; colour of the figure's own is rejectedTreat a figure as done when no browser was available
Read the hand-over note; it says when the figure was not looked at in a browser
The look needs a browser; without one only the code was checked
Which one to pick
| If you need | Pick |
|---|---|
| You want a small line figure that answers the mouse, from an idea or your SVG, as one HTML file | This pack |
| You want detailed interactive isometric illustrations of real machines and complex systems | wheresryan22/anatomy |
| You want your SVG itself animated as it is, at 60 fps | rossark0/rossark-motion-skill |
| You want a raster logo animated with GIF or video previews | nolangz/pixel2motion |
Works well with
- playwright-core: look.mjs and read.mjs drive Chrome or Chromium through playwright-core for the picture check
- skills: The README installs the two skills with npx skills add
- claude-code: The README names Claude Code among the agents it runs on
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT: keep the license notice |
| Passing the files on | Yes | MIT: keep the copyright and permission notice in copies |
| Work for clients | Yes | MIT; a figure from another company's mark is theirs to publish or not |
What leaves your 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
Install Hairline skills
Official commands from the repository
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
Or with the open-source skills CLI: npx skills add lucasmarkes/hairline. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 034f4bf, Nov 18, 2026
| When | What happens |
|---|---|
| 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)
Quick answers
- Is it free?
- Yes, MIT license.
- Does it need a browser?
- Only for the picture check. Without one the assistant checks the code with validate.mjs and says the figure was not looked at in a browser.
- Does it need Node?
- The scripts do. Without Node the assistant builds the page by copying files and checks each rule by reading the code.
- Does anything leave my machine?
- Only the one-time npm download of playwright-core for the picture check. The figure page itself loads nothing from outside.
- Can it use several SVG files at once?
- One figure at a time; it asks which comes first.
Checked by AgentGid on Nov 18, 2026 against commit 034f4bf of the pack's own files. agent.md for AI agents · Report a mistake
More video, images and media skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Becomes a small video studio. You describe a video in plain words; it researches the topic, writes the script, finds or generates pictures, clips, voice and music, edits them and renders a finished MP4. It stops at each creative step and waits for your yes before it moves on or spends money. |
82.2K | +12.2K | 92 | ||
| 2 |
emilkowalski/skills
Checked
Fifteen design playbooks for your AI assistant, most of them about animation. It builds animations with set speeds and curves, says no when something should not move, and reviews or audits the motion you already have. Other skills make a web app feel right on a phone, stress-test screens with awkward data, build several versions of a piece of UI to compare, and pick libraries. |
58.7K | +10.7K | 20 | ||
| 3 |
Turns a project you built into a 15 to 25 second launch video. It reads your project, writes a plan and a storyboard, then makes the video with music, sound effects and a ready post caption. Everything lands in a new brag-output folder inside your project. |
22.2K | +5,446 | 2 | ||
| 4 |
Vincentwei1021/video-shotcraft
Checked
Turns your website or app into a short promo film. It screenshots your real pages and picks camera moves from a library of 124 tuned recipes. Then it plans the shots, adds music and sound, checks the frames and hands you an MP4 you can keep editing. |
22K | +7,721 | 1 | ||
| 5 |
Can answer questions about a video. Give it a link or a video file and a question. It pulls out still pictures with their times and the spoken words, then answers with timestamps. With a free Google Gemini key, Google's model watches the whole video for it instead. |
21.5K | — | 1 | ||
| 6 |
Your assistant directs and produces a short film about your own topic in one of 59 ready styles, from watercolour and ukiyo-e to satellite briefings and newsreels. It writes the plan, draws every frame in code, scores the music, adds a voice and renders a finished MP4. You can also turn a style into your own and keep it. |
19.6K | +13.9K | 1 |
No pack matches.