/engineering-practices:frontend-architecturefrom engineering-practices
Code organization and architecture decisions for React 19 + Next.js 15 App Router (TypeScript). WHERE code lives, not HOW to write it. Covers: project folder structure, feature-based organization, component splitting rules, constants/utils/helpers/services placement, business logic separation, naming conventions, state colocation, and Next.js Server/Client Component boundary decisions. TRIGGER when: "where to put", "folder structure", "project structure", "how to organize", "where does X live", "code organization", "feature folder", "colocation", "business logic", "utils vs helpers", "constants", "component splitting", "Server Component or Client Component", "Server Action or Route Handler", "where do I place". Does NOT cover: React hooks API, component implementation style, Next.js caching/metadata features, state management APIs (use react-best-practices, next-best-practices, or typescript-expert for those).
Trending skills
7-day visitors to each skill page
Ships in engineering-practices. 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.
WHERE code lives, not HOW to write it.
This skill covers structural and organizational decisions for React 19 + Next.js 15 App Router projects. It answers "where does this go?" — not "how do I implement it?". For component patterns and hooks API, see react-best-practices. For Next.js feature usage (caching, metadata, image optimization), see next-best-practices.
| Skill | What it covers (NOT this skill) |
|---|---|
react-best-practices | Component APIs, hooks patterns, performance, anti-patterns |
next-best-practices | RSC data fetching, caching, metadata, image optimization |
typescript-expert | Type-level programming, generic patterns, type utilities |
Is it used in only one feature?
├── YES → put it inside features/<name>/components/
│ (or colocated in the route segment if Next.js page)
└── NO → Is it a generic UI primitive (Button, Modal, Input)?
├── YES → components/ui/
└── NO (domain logic but shared) → components/ or shared/components/
Is it a pure function with no React dependency?
├── YES → Does it belong to one feature only?
│ ├── YES → features/<name>/utils.ts
│ └── NO (2+ features use it) → shared/utils/ or lib/
└── NO (uses React) → Is it a hook?
├── YES → features/<name>/hooks/ or shared/hooks/
└── NO → rethink: move React logic out
Used in one feature only?
├── YES → features/<name>/constants.ts (or colocated in the file that uses them)
└── NO → shared/constants/<domain>.constants.ts
Start with Server Component (default).
Add "use client" only if the component needs:
├── useState / useReducer
├── useEffect / useLayoutEffect
├── Browser APIs (window, document, localStorage)
├── Event handlers that trigger state changes
├── Third-party client-only libraries
└── Context consumers (that aren't server-compatible)
Rule: push "use client" as DEEP in the tree as possible.
Who calls this endpoint?
├── Your own UI (forms, buttons) → Server Action in app/lib/actions.ts
└── External system / third-party / webhook → Route Handler (route.ts)
Also Route Handler for:
├── Streaming responses
├── Large file uploads
└── Public REST API
"use client" last resort| File | What it covers |
|---|---|
| rules/folder-structure.md | Canonical directory tree, org strategies, src/ vs root |
| rules/feature-organization.md | features/ dir anatomy, boundary rules, FSD overview |
| rules/component-splitting.md | When to split, SRP test, composition patterns |
| rules/constants-utils.md | constants.ts, utils/, helpers/, services/ — what goes where |
| rules/business-logic.md | 3-layer model, hooks, API layer, DTOs |
| rules/naming-conventions.md | File/folder/export naming rules |
| rules/state-placement.md | Colocation, lifting state, Zustand scoping |
| rules/nextjs-specifics.md | Server/Client boundary, Server Actions, Route Handlers, route groups |
All 51 research URLs → README.md
README.md (opens in a new tab)rules/business-logic.md (opens in a new tab)rules/component-splitting.md (opens in a new tab)rules/constants-utils.md (opens in a new tab)rules/feature-organization.md (opens in a new tab)rules/folder-structure.md (opens in a new tab)rules/naming-conventions.md (opens in a new tab)rules/nextjs-specifics.md (opens in a new tab)rules/state-placement.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ai-agentic-engineering-neo/dev-digest-ai-marketplace --plugin engineering-practices12 skills in this plugin
/drizzle-orm-patternsProvides comprehensive Drizzle ORM patterns for schema definition, CRUD operations, relations, queries, transactions, and migrations. Proactively use for any Drizzle ORM development including defining database schemas, writing type-safe queries, implementing relations, managing transactions, and setting up migrations with Drizzle Kit. Supports PostgreSQL, MySQL, SQLite, MSSQL, and CockroachDB./fastify-best-practicesGuides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts./mermaid-diagramCreate Mermaid diagrams in markdown. Use when the user wants to visualize workflows, architectures, API flows, data models, state machines, or system designs. Covers flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, and more./next-best-practicesNext.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling/onion-architectureOnion Architecture enforcement for a Node.js backend stack such as Fastify 5, Drizzle ORM, Zod, TypeScript. Defines the four concentric layers (Domain, Application, Infrastructure, Presentation), the inward-only dependency rule, and how each tool maps to a layer. TRIGGER when: adding a new backend module, touching routes.ts / service.ts / repository.ts, "where does X go", "what layer", "can I import", adding new adapter, touching container.ts, service directly queries DB, route handler contains business logic, Drizzle schema imported in service. Does NOT cover: Fastify plugin API details (use fastify-best-practices), Drizzle query syntax (use drizzle-orm-patterns), Zod schema syntax (use zod), PostgreSQL schema design (use postgresql-table-design).
/postgresql-table-designUse this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced featuresOther plugins' skills for the same job