/frontend-react:ui-primitive-reusefrom frontend-react
Before creating ANY shared/reusable UI primitive in a React codebase (button, input, checkbox, radio, switch, select, textarea, dialog, tooltip, dropdown, badge, card, separator…), search the project's primitive library first to avoid duplicates — reuse or extend what exists; build new only when truly absent. Framework-agnostic (no specific UI or styling library assumed). Activate whenever about to add or hand-roll a reusable field/control/primitive.
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.
Scope. React, framework-agnostic — assumes nothing about which headless/UI library or styling system the project uses. Apply the discipline here; take the concrete library and styling bindings from the project's local skills.
In: about to create or hand-roll any shared/reusable UI primitive in a React codebase — a field/control (button, input, select, combobox…) or a structural/overlay primitive (dialog, tooltip, dropdown, badge, card…).
Out: the primitives library was searched first, an existing primitive reused or extended where one
fit, a genuinely-new one placed by scope and matching the project's UI-library + styling conventions
(wrapping an accessible headless primitive over hand-rolled DOM), and a story added if the repo has a
catalog. The checkable expectations are in evals/rubric.json.
variant/size/prop the way the
existing primitives expose options, rather than copying into a new file.frontend-react:component-structure.If the repo has a component catalog (Storybook…), a primitive isn't done until it has
a story, so it surfaces in component-placement's search step.
variant/size/prop, rather than forked; no duplicate
created.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