/officialunofficial-skills:avatarfrom Official Unofficial Skills
Draws any object as a flat character with two capsule eyes, then animates its whole body so it glances, blinks, breathes, follows the pointer and falls asleep.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn an object into a small living character: one flat silhouette, two capsule eyes, and one loop that moves the whole body.
The gaze, eye, and blink values in face.js were measured off reference footage, so keep them exact. The moods past idle are tuned starting points. Eyes that move while the body holds still are a finding.
Related work belongs elsewhere: gathering references to gather, taking a reference animation apart frame by frame to deconstruct, offering silhouette variants to the engineering skill prototype, interface motion and its 300ms budget to motion, frame cost to frames, and opening the result to verify.
When the user names a reference character, open its source and step its recording at 10fps. Measure eye size, tilt, spacing, and blink timing off the frames (avatar-measure-the-reference).
Keep measured values as measured. A 15.5 degree eye spacing stays 15.5 and a 180ms blink stays 180ms (avatar-keep-the-measurements). With no reference, start from face.js.
One flat shape. Reduce the object to one solid shape in one saturated colour, with no outline, shading, mouth, or nose (avatar-flat-silhouette).
Small grid. The character must read at its shipped size, usually 28 to 40px. Draw on a small grid, such as a 14 by 17 viewBox, and crop the viewBox tight to the ink. A part that moves on its own, such as a lid, gets its own path.
Iconic view. Pick the view whose outline alone names the object: the side for vessels and tools, the front for devices. Given a role or a hobby, draw its single most iconic object (avatar-iconic-view).
The face part leads. The part that carries the face is the main mass. Grow it in place until the head ellipse, plus one eye width of margin, sits on calm solid fill. Size it for the widest mood: happy eyes are nearly twice as wide as idle eyes. Do not add a block to hold the face or shrink the eyes to fit (avatar-face-part-leads).
Size by outline. Size every other part by its outline, enclosed space included, not by its fill. Keep it clearly smaller than the face part and extend it only as far as recognition needs (avatar-size-by-outline).
Few details. Keep the steps that name the object, such as a neck, a lid, or a lip. Drop the rest. Build the shape from one to seven soft primitives that overlap into one outline.
Clean joins. Every join is a clear step or a smooth flow. A step is at least half an eye width. A flow runs one edge straight on and buries the inner corners. A part joined at two points stays joined at both. Edges that nearly line up leave a sliver or a notch (avatar-clean-joins).
Holes are openings. Cut a hole only for a real opening, such as a mug handle or a ring, and wind it against its outline so the fill leaves it open. Slots, buttons, and decorative cut-outs stay solid (avatar-holes-are-openings).
Toy proportions. No part is thinner than an eye is wide, every corner is rounded, and every taper ends in a soft tip. An organic part, such as a leaf or a flame, keeps its curve and direction (avatar-toy-proportions).
Balance. Centre the mass on a flat or gently rounded base. Then look at the whole shape at 28px, at rest and mid-lean. If it reads as another object or a broken one, rebalance the parts or change the view, even when every rule above holds.
Colour. Colour comes from two variables, --avatar-body and --avatar-eyes, checked in both themes (avatar-colour-variables).
Draw two white capsules, each about 2.2 times as tall as wide. At rest they sit high and to the right and lean like a backslash, with the head tilted about 12 degrees.
The eyes sit on a sphere behind the face. Yaw, pitch, and roll place them, so they narrow near the edge and fade as they turn behind. drawEyes in face.js does the projection. Eyes that slide flat across the face are a finding (avatar-eyes-on-a-sphere).
Clip both eyes to the silhouette path, inside the group that moves the body (avatar-clip-to-the-body).
Nothing holds still.
avatar-never-still).avatar-irregular-blinks).avatar-whole-body).A mood is one row of numbers: eye width, height, tilt, spacing, openness, and a gaze offset. Moods blend over about 90ms on an exponential ease-out and never overshoot. Do not swap in a separate drawing per mood (avatar-moods-as-numbers).
Start from idle, attentive, excited, happy, sleepy, and asleep. Add one or two moves only this object can make, such as a lid that lags behind a hop (avatar-object-move).
Each reaction answers one input from the page (avatar-react-to-the-page).
| Input | Reaction |
|---|---|
| Pointer enters after 6s away | Eyes spin 360 degrees round the back over 1.1s, then follow the pointer |
| Pointer rests on the primary action | Eyes widen and the body bounces slightly |
| Press on the action or the character | A 750ms hop with squash and stretch, then a happy squint back out |
| No input for 24s | Sleepy at 24s, asleep at 30s with slow deep breaths, wakes with a spin |
Clamp the followed gaze to 45 degrees of yaw either side so the eyes stay on the face. Ignore touch pointers for following.
When the character is the main toy on its page, it may also react to distance: curious inside 640px, wary inside 260px, recoiling inside 100px. A poked eye shuts while the other stays open.
requestAnimationFrame loop steps createAvatar from face.js and writes SVG attributes through refs. Cap the step at 64ms so a returning tab does not jump. Per-frame state updates are a frames concern.IntersectionObserver (avatar-pause-offscreen).restingEyes, so the first paint already has eyes (avatar-render-the-rest).prefers-reduced-motion: reduce, hold the resting pose and start no loop (avatar-still-when-reduced).aria-hidden="true".One screenshot cannot show motion, and a hidden tab throttles the loop. Run sheet.js through the browser's evaluate call, then:
window.__avatarSheet.start({ selector }).window.__avatarSheet.stop() and screenshot the sheet it lays out (avatar-contact-sheet).A warning in the result means the tab was hidden or the loop stalled, so frames repeat or gaps widen. Keep the tab visible and sample again. Sleep needs 30s without input, so sample it once on its own.
Finish with the character at its shipped size in both themes, then call window.__avatarSheet.clear().
Read RULES.md when reviewing a character or writing findings. It pairs each rule id with a broken case and its replacement, and holds the severity ladder and the finding format.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
character-design, animation, silhouette, eye-animation, motion
Other plugins' skills for the same job
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animateBuilds a web animation from scratch and writes the code. Decides in order whether it should animate at all, its purpose, the tool, the properties, the easing and duration or spring, how it interrupts and exits, and reduced motion. Use when asked to animate something, add motion, build a transition, or make a component feel alive. For React Native or Expo use animate-expo. To critique existing motion use review-animations. To audit a whole codebase use improve-animations./animate-expo