/fuse-nextjs:solid-nextjsfrom fuse-nextjs
Enforces SOLID and DRY architecture on Next.js projects: modular structure, file size limits, interface separation, mandatory JSDoc on exports, and a module/cores directory layout. Provides reference guides per SOLID principle plus 23 templates for components, hooks, services, stores, API routes, Prisma, i18n, and more.
Ships in fuse-nextjs. 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/plugin patterns, LSP contract compliance, ISP role-based interfaces, DIP constructor injection/factories) plus 23 ready-to-copy templates covering components, hooks, services, stores, Server Actions, API routes, validators, Prisma singletons, i18n, and queries. This is a cross-cutting code-quality skill, not a feature skill — for the framework APIs themselves see nextjs-16 and its sibling skills.
Today: January 2026 - ALWAYS use the current year for your searches. Search with "2025" or "2026", NEVER with past years.
CRITICAL: Check today's date first, then search documentation and web BEFORE writing any code.
Search queries (replace YYYY with current year):
Next.js [feature] YYYY best practicesReact 19 [component] YYYYTypeScript [pattern] YYYYPrisma 7 [feature] YYYYBefore 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 database.
*
* @param id - User unique identifier
* @returns User object or null if not found
* @throws DatabaseError on connection failure
*/
export async function getUserById(id: string): Promise<User | null>
modules/auth/src/
├── interfaces/ # Types ONLY
│ ├── user.interface.ts
│ └── session.interface.ts
├── services/ # NO types here
└── components/ # NO types here
Each SOLID principle has a dedicated reference guide:
references/single-responsibility.md - One class/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 |
|---|---|
server-component.md | Server Component with data fetching |
client-component.md | Client Component with hooks |
service.md | Service with dependency injection |
hook.md | React hook with state |
interface.md | TypeScript interfaces |
store.md | Zustand store with persistence |
action.md | Server Action with validation |
api-route.md | API Route Handler |
validator.md | Zod validation schemas |
factory.md | Factory pattern |
adapter.md | Adapter pattern |
error.md | Custom error classes |
test.md | Test templates |
middleware.md | Auth middleware |
prisma.md | Prisma singleton |
i18n.md | Feature/global translations |
query.md | Database queries (Prisma 7) |
anyFUSE_SOLID_MAX_LINESapp/ pages'use client' by defaultuseEffect for data fetchingany typereferences/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/action.md (opens in a new tab)references/templates/adapter.md (opens in a new tab)references/templates/api-route.md (opens in a new tab)references/templates/client-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/i18n.md (opens in a new tab)references/templates/interface.md (opens in a new tab)references/templates/middleware.md (opens in a new tab)references/templates/prisma.md (opens in a new tab)references/templates/query.md (opens in a new tab)references/templates/server-component.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/better-authUse when implementing Next.js authentication with Better Auth — OAuth, 2FA, magic links, SSO, Stripe billing, or session management./nextjs-16Use when building Next.js 16 apps — Turbopack, App Router, Cache Components, proxy.ts, v15 migration. Not for stack scaffolding (nextjs-stack) or React SPA (react-expert)./nextjs-i18nUse when implementing i18n in Next.js 16 — next-intl or DIY dictionaries, locale routing, language switch, or formatters.npx claudepluginhub fusengine/claude-plugins --plugin fuse-nextjsOther plugins' skills for the same job