/officialunofficial-skills:labfrom Official Unofficial Skills
Builds a development-only page that displays every variant and state of real components simultaneously, each linked to its source file. Useful for comparing and tuning component states without navigating the app.
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.
Build one development page where every variant and every state of the real components sits open at once. The user can then compare and tune them without clicking through the app.
The engineering skill prototype explores new options for one idea. The values on the page come from defaults, motion, color and the project's tokens.
/lab that imports the real components. Copy lab.js into the app and load it once on that route, in the browser only.lab.js supplies the grid, labels, filters and controls. Wrap each state in a lab-entry that names its component, its state and the source line that renders it. Do not write a grid, labels or styles for the page.data-* attributes. Hold a pseudo-class with force on the entry, for example force="hover".lab-tune per custom property with its range.lab.js to development, or delete both before release.<lab-page title="Components" root="/Users/me/app">
<lab-tune property="--radius-pill" label="Pill Radius" min="0" max="16" value="16" format="{}px"></lab-tune>
<lab-entry component="Menu" state="Submenu Open" source="src/components/menu/index.tsx:42">
<Menu open>...</Menu>
</lab-entry>
<lab-entry component="Button" state="Hover" source="src/components/button/index.tsx:12" force="hover">
<Button>Save</Button>
</lab-entry>
</lab-page>
lab-page: title, root (the absolute project root that each source resolves against) and editor (the URL scheme that source links open, cursor by default).lab-entry: component, state, source (file:line relative to root) and optional force (hover, active, focus, focus-visible or focus-within).lab-tune: property, min, max, value, and optional step, format and label. It sets the custom property on the root element. Shift+C copies every moved value.Entries and tunes are direct children of lab-page. Entry content stays in the light DOM, so the app's own styles apply.
Read the header comment of lab.js when you wire it into React, Vue or Svelte, need the TypeScript JSX declarations, or need an editor URL template. It holds the full attribute reference.
| Rule | Broken | Replacement |
|---|---|---|
lab-every-state | The resting button only | Rest, hover, pressed, focus, disabled and loading |
lab-real-components | Copied markup for each state | The real Button, imported |
lab-states-open | A menu behind its trigger | <Menu open> with its submenu open |
lab-one-theme | Light and dark side by side, unasked | The app's current theme |
lab-link-the-source | An unlabelled grid | Menu / Submenu Open linked to menu/index.tsx |
lab-shipped-frame | A hand-written lab grid and labels | lab.js loaded, only lab-entry elements written |
lab-open-it | "Added /lab" | The lab opened for the user |
lab-not-in-production | /lab live on the production site | The route gated to development |
When the skill runs as a review, write one finding per root cause:
file:line - [rule-id] what is wrong
Severity:
HIGH: a lab built from copies, or a lab reachable in production.MEDIUM: a missing state, a state that still needs a click, or a hand-written lab page.LOW: an unlabelled entry, or a lab nobody opened for the user.Close with a Rule | Count | Severity summary and a verdict: Block while any HIGH remains, Approve otherwise. Mark every state you could not render as Not verified.
What SKILL.md sets; muted values are Claude Code's defaults
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