/fuse-react:solid-reactfrom fuse-react
Enforces SOLID and DRY principles in React 19 projects with file-size limits, hook separation, isolated interfaces, mandatory JSDoc, and duplication checks via jscpd.
Ships in fuse-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.
Provides a dedicated reference guide per SOLID letter (SRP file-splitting, OCP composition/render-props, LSP contract compliance, ISP role-based props/context, DIP constructor injection via Context) plus 10 ready-to-copy templates covering components, hooks, services, stores, validators, factories, and tests. This is a cross-cutting code-quality skill, not a feature skill — for the React APIs themselves see react-19, react-state, react-forms, and react-tanstack-router.
Before ANY implementation:
Before writing ANY new code:
modules/cores/lib/, modules/cores/components/, modules/cores/hooks/modules/cores/ directlynpx jscpd ./src --threshold 3 after creating new filesBefore ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
FUSE_SOLID_MAX_LINES - the hook's ceiling is the only authoritySee references/architecture-patterns.md for complete structure with feature modules and cores directory.
/**
* Fetch user by ID from API.
*
* @param id - User unique identifier
* @returns User object or null if not found
*/
export async function getUserById(id: string): Promise<User | null>
modules/[feature]/src/interfaces/
├── user.interface.ts
├── post.interface.ts
└── api.interface.ts
NEVER put interfaces in component files.
Each SOLID principle has a dedicated reference guide:
references/single-responsibility.md - One function = one reason to change
FUSE_SOLID_MAX_LINESreferences/open-closed.md - Extend via composition, not modification
references/liskov-substitution.md - Contract compliance & behavioral subtyping
references/interface-segregation.md - Many focused interfaces beat one fat interface
references/dependency-inversion.md - Depend on abstractions, not implementations
See references/solid-principles.md for overview and quick reference.
Ready-to-copy code in references/templates/:
| Template | Usage |
|---|---|
component.md | React functional component |
hook.md | Custom hook with TanStack Query |
service.md | Service with dependency injection |
store.md | Zustand store with persistence (store budget 0.4 × FUSE_SOLID_MAX_LINES, 40 at default) |
interface.md | TypeScript interfaces |
validator.md | Zod validation schemas |
factory.md | Factory pattern |
adapter.md | Adapter pattern |
error.md | Custom error classes |
test.md | Vitest + Testing Library |
Every template stays within FUSE_SOLID_MAX_LINES.
anyFUSE_SOLID_MAX_LINESany typeuseEffect for data fetching (use TanStack Query or Router loaders)references/architecture-patterns.md (opens in a new tab)references/dependency-inversion.md (opens in a new tab)references/interface-segregation.md (opens in a new tab)references/liskov-substitution.md (opens in a new tab)references/open-closed.md (opens in a new tab)references/single-responsibility.md (opens in a new tab)references/solid-principles.md (opens in a new tab)references/templates/adapter.md (opens in a new tab)references/templates/component.md (opens in a new tab)references/templates/error.md (opens in a new tab)references/templates/factory.md (opens in a new tab)references/templates/hook.md (opens in a new tab)references/templates/interface.md (opens in a new tab)references/templates/service.md (opens in a new tab)references/templates/store.md (opens in a new tab)references/templates/test.md (opens in a new tab)references/templates/validator.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-react8 skills in this plugin
/react-19Use when implementing React 19.3 patterns — use(), useOptimistic, useActionState, useEffectEvent, Activity, ViewTransition, Fragment refs, use(browser()), React Compiler./react-formsUse when building type-safe forms in React with TanStack Form v1 — Zod/Yup/Valibot validation, async validation, field arrays./react-i18nUse when implementing translations in a React app (not Next.js) with react-i18next — useTranslation, namespaces, pluralization, Suspense./react-shadcnshadcn/ui for React with TanStack Form. Use when building UI components, forms, dialogs, tables, toasts, or accessible components./react-stateZustand v5 state management for React. Use when implementing global state, stores, persist, or client-side state./react-tanstack-routerUse when implementing routing in a React app (NOT Next.js) with TanStack Router — file-based routes, loaders, search params.Other plugins' skills for the same job