/officialunofficial-skills:framesfrom Official Unofficial Skills
Records interactions on a throttled CPU, identifies frames that drop or delay input, and verifies fixes with a second recording. Useful for diagnosing jank in web animations and UI responsiveness.
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.
Measure whether one interaction stays smooth. Record it on a throttled CPU, trace each slow frame to its cause, fix the cause, then record again to prove the fix.
A development laptop hides the stutter a phone shows, so judge smoothness from recorded numbers at a throttle. A claim of "smooth" with no recording is a finding in itself.
| Measure | Budget |
|---|---|
| Gap between frames | One refresh interval: 16.7ms at 60Hz |
| One animation frame while something moves | 50ms at most |
| Input to painted response | 200ms at most |
motion owns what a motion's values should be. deconstruct takes a motion apart frame by frame. verify opens the running result.
Emulation.setCPUThrottlingRate with rate: 4). 4x stands in for a mid-range phone.window.__frames.start(), perform the interaction three times, then call window.__frames.stop() and keep the object it returns. Keep the tab visible, because a hidden tab throttles requestAnimationFrame.scripts and forcedLayout, then open the code they name. When a long frame names no script, record a full performance profile as well. Match what you find against the causes below.The work is done when the second recording holds every budget, or the report names each budget it still misses with numbers.
start() returns which entry types the browser supports. stop() returns:
budget, refresh: the measured frame interval in ms and the refresh rate in Hz.frames, dropped, worstGap: frame count, frames missed, and the longest gap in ms.longAnimationFrames: slowest first. Each has duration, blocking, forcedLayout and scripts (source, function, invoker, duration, forcedLayout).interactions: slowest first. Each has name, target, duration, inputDelay, processing and presentation.layoutShift: the summed shift that no input caused.A browser without long animation frame support returns no script attribution. Mark that part Not verified.
top or width on a full-page panel reflows the subtree every frame. Animate transform and opacity, which the compositor handles without layout.offsetHeight or scrollHeight after setting a style forces layout in the middle of the frame. Read every value first, then write.setState inside a requestAnimationFrame loop or a scroll handler re-renders the component tree each frame. Drive the value through a motion value, a CSS variable or a ref.backdrop-filter on a moving full-screen layer repaints the whole layer. Shrink the painted area, or keep the effect on a static layer and move a panel above it.| Rule | Broken | Replacement |
|---|---|---|
frames-throttle-the-cpu | A trace on an unthrottled laptop | A trace at 4x CPU throttle |
frames-trace-not-feel | "The drawer feels smooth" | "Drawer open: 0 dropped frames, worst gap 17ms at 4x" |
frames-hold-the-budget | 14 dropped frames while the sheet opens | 0 dropped, no animation frame over 50ms |
frames-answer-in-200ms | A keystroke that paints after 340ms, 280ms of it processing | 90ms, with the filter moved off the keystroke |
frames-compositor-properties | animate={{ width: 320 }} on the full-page sidebar | animate={{ x: 0 }} with a fixed width |
frames-no-forced-layout | el.style.height = el.scrollHeight + "px" in a loop over rows | All heights read, then all written |
frames-animate-outside-render | setProgress(p) on every frame | progress.set(p) on a motion value |
frames-small-paint | backdrop-filter: blur(20px) on a moving full-screen layer | The blur on the static backdrop, the panel moving above it |
frames-before-and-after | "Should be faster now" | "Before 14 dropped, after 0, same steps at 4x" |
When the skill runs as a review, write one finding per root cause, with the measured numbers:
1. file:line - [rule-id] what is wrong (dropped, worst gap, duration)
Severity:
HIGH: an interaction over 200ms at the throttle, or smoothness reported with no recording.MEDIUM: dropped frames during motion, a layout property animated on a large subtree, forced layout, a state update per frame, or a trace taken with no throttle.LOW: a large repaint that still holds the budget, or a fix reported with no second recording.Close with a Rule | Count | Severity summary and a verdict: Block while any HIGH remains, Approve otherwise.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-expoOther plugins' skills for the same job