/frontend-react:component-placementfrom frontend-react
Entry 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.
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.
The component you're about to create may already exist, and where it lives is a decision, not a default. This is the single entry point before any new component: search → place → route. It doesn't hold the detailed rules itself — it sends you to the right per-type skill.
Scope. React (component / JSX model) for now. This skill is deliberately framework-agnostic: it does NOT assume a particular UI-primitive library (Base UI / Radix / MUI / Headless UI…), styling system (CSS Modules / SCSS / Tailwind / CSS-in-JS), data layer, or i18n setup. Those bindings belong in a project's own local skills, which extend this one. Adapt the example paths to the repo's actual structure.
In: before creating ANY React component — about to add, scaffold, or hand-roll a component, panel, card, widget, or control.
Out: Ockham invoked, the component tree and catalog searched (the tree-grep alone when no live catalog is reachable), an existing component reused/extended
where it fit; otherwise the new one placed via the decision tree (primitive / feature / layout /
page-local), routed to the matching per-type skill, structured per the project's conventions, and
catalogued. The checkable expectations are in evals/rubric.json.
Invoke meta:ockham. The cheapest component is the one that already exists.
components/ areas (primitives, features, layout) and page-local folders.| The component is… | → conceptually a | → follow skill |
|---|---|---|
| Generic, reusable, no domain knowledge / business logic (button, input, badge, dialog…) | primitive | frontend-react:ui-primitive-reuse |
| Domain-coupled (knows your business objects/flows), composes primitives, holds data/logic | feature | frontend-react:feature-components |
| App chrome — shell, navigation, top bar, sidebar, global overlays | layout | frontend-react:layout-components |
| Used by one page only, not reused | page-local | frontend-react:component-structure |
Unsure primitive vs feature? Does it import anything domain-specific (a business model, a data hook, another feature)? Yes → feature. No → primitive.
Once placed, frontend-react:component-structure governs the folder shape. Match
the project's existing styling and i18n approach — don't introduce a new one.
If the repo uses Storybook (or any component catalog), add the matching story so the next person finds it in Step 1 instead of rebuilding it.
meta:ockham was invoked, and the component tree (primitives/features/layout/page-local) plus the
catalog (Storybook) were searched for an equivalent by role/name — or, if no live catalog
search is reachable in-session, the tree-grep alone satisfies the search (the catalog leg is not reported unmet).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-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./feature-componentsFeature Components — domain blocks built from primitivesRules for FEATURE components in a React codebase — domain-coupled blocks that compose primitives and hold business logic/data. Activate when building or editing a domain feature (a panel/table/editor tied to your business data), or adding a new domain area. Framework-agnostic. Reached via frontend-react:component-placement.Other plugins' skills for the same job