/officialunofficial-skills:alignmentfrom Official Unofficial Skills
Measures a running page for pixel-level alignment issues: shared edges, even gaps, scale-consistent spacing, centred ink, concentric radii, and visual weight balance. Returns a numbered report with proof crops.
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.
Check a running page for things that are out of line or out of balance. Measure the rendered ink, confirm each finding in a zoomed crop, and return a numbered report.
Measure lines, gaps, centres, and radii. Never estimate them. A miss of 1 to 4px is a finding, because it reads as a mistake while a 16px indent reads as intent. Visual weight has no number, so judge it from the screenshot and show the crop.
Related work belongs elsewhere: opening the running result to verify, comparing against a named reference to match, forcing hover, open, and error states to lab, moving a fix into the shared component to reuse, and rendering every width to viewports.
Open the page at the viewport it ships at, with a device scale factor of 2. Check each theme and each state the user named. Findings come from the running page, not from reasoning about where the CSS should put things (alignment-measure-the-render).
Read the spacing scale from the project's tokens. Set window.__alignmentOptions = { scale }, then run measure.js in the page through the browser's evaluate call.
It returns findings, each with a rule, the element, the measured values, and a rectangle. Each one is a candidate until step 3 confirms it.
Crop each candidate from the 2x screenshot and count the pixels. Drop any finding the pixels do not show.
alignment-shared-edge).alignment-even-gaps).alignment-on-scale).text-box: trim-both cap alphabetic or by balancing the padding (alignment-ink-centre).alignment-icon-with-label).--play-nudge: 1px (alignment-optical-glyph).alignment-concentric-radius).Look at the screenshot at 1x and name what the eye lands on first. Compare icon strokes with the text's stem weight, filled icons beside outline icons, and circles drawn the same size as squares. Circles and triangles need about 10% more size than a square to read as equal (alignment-visual-weight).
Copy report.html to .alignment/<page>/index.html. That folder is ignored by git and stays out of the source tree. Save the 2x screenshot beside it, write report.js in the shape the header comment of report.html shows, then open the page.
The report draws the numbered outlines and cuts each zoomed crop from the screenshot at runtime, so write data only. Custom markup or hand-cut crops are a finding (alignment-shipped-report). So is a finding with no measurement and no rect (alignment-annotated-proof).
The report is the deliverable. When the user asks for fixes, change the token or primitive behind each finding. Rerun the script and the screenshot, then report what cleared.
Each rule pairs the broken case with its replacement.
| Rule | Broken | Replacement |
|---|---|---|
alignment-measure-the-render | "The flex container centres it" | Measured in the running page at 2x |
alignment-shared-edge | Title inset 2px from its description | Both start on one ink line |
alignment-even-gaps | Rows at 8, 8, and 12px | Rows at 8, 8, and 8px |
alignment-on-scale | padding: 6px on a 4px scale | padding: 8px |
alignment-ink-centre | Label ink 2px low in its button | text-box: trim-both cap alphabetic |
alignment-icon-with-label | Icon centred on the line box, 1px low | Icon centred on the cap height |
alignment-optical-glyph | Play icon centred by its box, looks shifted left | Play icon nudged 1px right, with a named value |
alignment-concentric-radius | 16px panel in a 16px card at 8px inset | 8px panel radius |
alignment-visual-weight | 2px icon stroke beside 1.5px text stems | Stroke matched to the text weight |
alignment-annotated-proof | "The button looks a bit off" | Finding 3, 1.8px low, with the crop |
alignment-shipped-report | Hand-cut crops in a page written from scratch | report.html copied, only report.js written |
Severity. HIGH is a miss visible at 1x on a primary surface, such as a heading column or a primary button. MEDIUM is a 1 to 2px miss, uneven gaps, a radius mismatch, a weight imbalance, or a hand-built report. LOW is an off-scale value that still renders aligned.
Format. One finding per root cause, numbered to match the overlay:
1. file:line - [rule-id] what is wrong (measured values)
Cite the element from the script when you cannot find the source line. Follow with a Rule | Count | Severity summary. The verdict is Block while any HIGH remains and Approve otherwise. Mark canvas, image, and cross-origin content as Not verified.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/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-expoBuilds animations in React Native and Expo with Reanimated, Gesture Handler, Expo Router and expo-haptics. Decides in order whether to animate, which tool, which properties, spring or timing, and how to stay on the UI thread. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on a device. For web animation use `animate`./animation-performanceDiagnoses and fixes web animations that drop frames. Covers the layout, paint and composite pipeline, cheaper property swaps, CSS and WAAPI against requestAnimationFrame, the accelerated path in Motion, React re-renders per frame, inherited CSS variables, blur cost, and when will-change helps. Use when an animation is janky, choppy or stutters, when choosing which property to animate, or when reaching for will-change or GPU layers. For easing, duration or whether to animate at all, use animate./animation-vocabularyNames a web animation or motion effect from a loose description, for example "the bouncy thing when a popover opens" is Pop in and "the iOS scroll that resists and snaps back" is Rubber-banding. Use when the user asks "what is it called when..." or describes a motion effect and wants the right word to give a designer or an agent. It names effects. It does not design or build them./apple-designApplies Apple's approach to fluid, physical interfaces on the web. Use when building or reviewing gesture-driven UI, spring animation, drag, swipe or sheet interactions, momentum, interruptible transitions, rubber-banding, translucent materials and depth, type tracking and leading, reduced motion, or when a design needs Apple's design principles as a frame./ask-sonnerGuides work with Sonner, the React toast library: mounting the Toaster, choosing the right toast() call, promise and loading toasts, updating, dismissing and persisting, styling, theming, icons, positioning and multiple toasters. Use when writing or debugging Sonner code, including toasts that never appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or ignore dark mode.