/frontend-react:hooks-registryfrom frontend-react
Use when about to add, hand-roll, rename, move, or remove a custom React `use*` hook.
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.
In: about to add, hand-roll, rename, move, or remove a custom React use* hook. The registry is
docs/mechanisms/hooks-registry.md — the authoritative list of every custom hook in the app.
Out: the registry was read and an existing hook reused/extended where one fit; a genuinely-new hook
placed by scope; a local hook that gained a second consumer promoted and generalized; and the registry
updated in the SAME change. The checkable expectations are in evals/rubric.json.
docs/mechanisms/hooks-registry.md. If a hook already does this (or nearly does),
reuse it or extend it (one more param / option) instead of writing a new one.
Duplicate/overlapping hooks are the thing this registry exists to prevent.src/hooks/ — used (or reusable) across more than one feature/page.src/hooks/capabilities/ — boolean org/user capability.src/lib/<area>/ — internal to one lib module.src/hooks/ and generalize
(strip page-specific assumptions). This mirrors frontend-react:component-placement.Stores live in
src/stores/and are NOT hooks — do not add them to the registry.
In the same change, edit docs/mechanisms/hooks-registry.md:
A new use* file in a diff with no matching registry update is a review finding.
docs/mechanisms/hooks-registry.md was read before writing a new hook, and an existing hook was reused or
extended where one fit — no duplicate or overlapping hook was created.src/hooks/, capability src/hooks/capabilities/, library
src/lib/<area>/, or local next to the feature — and a local hook that gained a second consumer was
promoted to src/hooks/ and generalized.docs/mechanisms/hooks-registry.md was updated in the SAME change — a row added / renamed / moved / removed to
match.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