/frontend-react:skeleton-componentsfrom frontend-react
When building or editing a React component that renders asynchronously-loaded data, decide whether it needs a loading skeleton — and if so, build a separate skeleton component colocated next to it from the shared Skeleton primitive. Activate whenever a component gains a loading state, shows a blank/"Loading…" gap, or you are reviewing async data UI.
Ships in frontend-react. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A skeleton is not a default. It earns its place only when a component has a real
loading window. This skill gates that decision and, when a skeleton is warranted,
fixes how it is built: a separate component next to the real one, composed from
the shared Skeleton primitive — never a library, never hand-rolled pulse markup.
In: building or editing a React component that renders asynchronously-loaded data, reviewing async-data UI, or asked to add a loading state.
Out: the skeleton decision made (one only when a real loading window exists), and where warranted a
SEPARATE <Component>Skeleton colocated beside the real one, composed from the shared Skeleton
primitive, mirroring the layout, exported from the barrel and wired at the consumer. The checkable
expectations are in evals/rubric.json.
Default: no. A skeleton is warranted ONLY when there is a real loading window — the component renders data it fetches, and there is a visible gap before that data arrives.
Quick test — is the first paint gated by an isLoading / isPending /
isFetching / await?
| Situation | Skeleton? |
|---|---|
| Component owns an async query and has a real pre-data gap | Yes — build one |
| Purely presentational; data comes in via props | No |
| Data resolves synchronously / is already cached | No |
| The parent already renders a skeleton for this whole region | No — don't double up |
No loading window → stop here. Do not create a skeleton for a component that never waits. (OCKHAM: the cheapest skeleton is the one you didn't build.)
Skeleton primitiveNever add a skeleton library, and never hand-roll a pulsing <div> inline. Use
the project's shared Skeleton primitive (typically
src/components/primitives/skeleton) and compose several to mirror the shape of
what's loading. If the project has no Skeleton primitive yet, create it once
as a primitive (see ui-primitive-reuse / component-placement), then reuse it
everywhere — the shimmer is a CSS keyframe on a design-token background, not a
dependency.
Put the skeleton in the same folder as the component it stands in for, named
<Component>Skeleton.tsx. Export it from that module's index.ts barrel.
components/data-grid/
DataGrid.tsx
DataGridSkeleton.tsx ← colocated sibling, composed of <Skeleton/>
index.ts ← exports both
Render the skeleton while loading, the real component once resolved. Expose
isLoading from the data hook if it isn't already available.
{isLoading ? <ComponentSkeleton /> : <Component {...props} />}
If the project writes Storybook stories, the skeleton does not get its own separate story file — it is a state of the real component. In that component's story, render the real component with its skeleton stacked directly below it (normal on top, skeleton beneath), for every state/case, so the two compare at a glance. A shared decorator applied across the states keeps this DRY; match the skeleton's count to the real footprint (e.g. a grid vs its mass-loading skeleton). Stack them — don't lay them out left/right.
Skeleton primitive (no library, no hand-rolled
pulse), is a separate <Component>Skeleton.tsx in the same folder, mirrors the real shape/size so
there is no layout jump, and is exported from the barrel and rendered in the consumer's loading
branch.evals/rubric.json.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aquivalabs/bladeforge --plugin frontend-react8 skills in this plugin
/component-placementComponent Placement — search first, then decide whereEntry point BEFORE creating ANY React component, in any React codebase — search for an existing one first, decide placement (primitive / feature / layout / page-local), then route to the matching per-type skill. Framework-agnostic: governs component ARCHITECTURE, not any specific UI or styling library. Activate whenever about to add, scaffold, or hand-roll a component, panel, card, widget, or control./component-structureComponent Structure — BEM + SCSS + rem + i18nUse when creating, editing, restructuring, or reviewing a React frontend component — including its folder layout and file organization (tsx/scss/index), where a component or sub-component should live, BEM class naming, SCSS styling, rem sizing, i18n of user-visible strings, barrel exports, and replacing inline JS style/hover handlers (e.g. onMouseEnter toggling classes) with CSS. Covers "this component file is in the wrong place — fix the structure", moving a flat .tsx into its own folder, and any question about how a component's files, styles, or markup should be organized.Other plugins' skills for the same job