/engineering-paved-path:frontend-ui-architecturefrom engineering-paved-path
Decides where frontend code belongs and who may import it — which folder a component, hook, constant, style, helper or type goes in, when to split a component into siblings or a nested folder, when to promote route-local code to the shared layer, and where business logic lives. Use before creating a frontend file, when a component or page is growing, when choosing between a route-local and a shared component, when a helper or constant needs a home, or when reviewing a change for structural drift. Reads the repository's own frontend conventions first and applies them over the defaults here. Does NOT cover React internals, hooks rules, state or rendering (see react-best-practices) or Next.js file conventions (see next-best-practices).
Ships in engineering-paved-path. 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.
This skill answers one question: where does this file go, and who is allowed to import it? It is scoped to placement and organization only.
| Question | Answer lives in |
|---|---|
| Where does this file go / who imports it | this skill |
| Should this be state, memo, effect, derived | react-best-practices |
page/layout/loading, route groups, dynamic segments | next-best-practices |
| Backend layering | onion-architecture |
Before applying the defaults, read, in order, and stop at the first that defines the frontend layout:
CLAUDE.md / AGENTS.md at the root and in the frontend package.docs/ pages about UI architecture, component conventions, ADRs.tsconfig paths).Where the repository uses different folder names, use its names. If nothing is documented, apply the defaults below and label findings "per default layout".
| Kind of code | Goes in |
|---|---|
| UI used by exactly one route or feature | a folder local to that route or feature |
| UI used by two or more routes or features | the shared components folder |
| UI primitive (button, badge, chart) | don't write one; check the design-system package or barrel first |
| Server data access | a shared hooks/data layer, never an ad-hoc fetch in a component |
| Pure derivation or formatting, feature-scoped | sibling helpers |
| Pure derivation, app-wide | shared lib utilities |
| Thresholds, maps, timings, geometry | nearest constants sibling |
| Inline style objects | sibling styles module |
| Domain types | the shared types package; never hand-rolled copies |
| UI-only view types | shared types or colocated with the single consumer |
| User-facing copy | the repository's i18n messages, never literals in components |
| Cross-cutting policy (errors, theme, toasts) | shared providers |
A component folder holds the component file and an index barrel; styles,
constants and helpers are optional siblings. Add one only when it carries
real content. Never scaffold an empty sibling. Nest as deep as the feature
needs; do not flatten to one level.
constants / helpers / styles the moment the component body
would otherwise hold a lookup map, a pure function, or an inline style
object, not before.react-best-practices; this skill only
says where the split lands.Logic sinks as far down this ladder as it can go:
helpers: pure, framework-free, testable without layout.vendor packages
← shared lib ← shared components ← route-local components ← route/page
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub olena-shabetia/olena-shabetia-dev-digest-ai-marketplace --plugin engineering-paved-path12 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-architectureDecides which backend layer (ring) a piece of code belongs to and who may import it — whether logic goes in a route/controller, a service, a repository, an adapter, a port, or a pure domain core; where a new port/adapter pair is declared; and how to keep web frameworks, ORMs and vendor SDKs out of the core. Use before adding a backend file, a query or an SDK call, when a module has no service or repository tier, when auditing which tiers every module has, and when reviewing a change for layer violations. Reads the repository's own architecture docs first and applies them over the defaults here. Does NOT cover web-framework APIs, ORM query syntax, or schema libraries (see fastify-best-practices, drizzle-orm-patterns, zod)./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