nextjs-architect

Enforce server-first, feature-first architecture for Next.js 15 and React 19 App Router projects.

Updated Apr 5, 2023
One-click install
npx skills add https://github.com/edneyreis999/zord-project --skill nextjs-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-architect
Source: https://github.com/edneyreis999/zord-project/tree/main/service_financial-claude/skills/nextjs-architect
Command: npx skills add https://github.com/edneyreis999/zord-project --skill nextjs-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guia arquitetural para Next.js 15/React 19 com App Router, organização por features, server-first patterns, e padronização de dados, caching, formulários, segurança e performance.

Core Features & Use Cases

  • Estrutura feature-first com app/ como orquestrador; boundaries server/client.
  • Padrões de caching (tags/revalidate) e fluxo de dados server → URL → client.
  • Guias de formulários (Zod + RHF + Server Actions) e segurança em camadas.
  • DX e performance: ESLint strict, dynamic imports, Suspense.

Quick Start

Carregue módulos obrigatórios: activation, architecture, data-state-cache; use a árvore base indicada e carregue módulos adicionais conforme necessário.

Frequently Asked Questions about nextjs-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Next.js 15 app with server-first architecture?

Server-first Next.js architecture organizes your app with an app/ orchestrator and features/ domains, using server components by default and explicit client boundaries. This pattern prioritizes server rendering for performance, security, and data handling while enabling selective client interactivity through server actions and proper state management layers.

What's the best way to handle caching and data flow in Next.js with App Router?

Implement a server-to-URL-to-client data flow using Next.js caching tags and revalidation strategies. Server components fetch and cache data, URL parameters preserve state across navigation, and client state handles only UI interactions. This layering minimizes redundant requests and keeps data normalized and consistent.

How do I validate forms securely in Next.js with server actions?

Combine Zod for schema validation with React Hook Form for client-side UX and server actions for secure processing. Validate inputs server-side before mutations, use middleware for auth and role checks, and structure forms to send validated data through protected server actions rather than direct API endpoints.

Can I use shadcn/ui and Tailwind with a feature-first Next.js structure?

Yes. shadcn/ui components integrate naturally into feature-first layouts with Tailwind for styling. Store UI components within feature domains alongside their logic, maintain consistent design tokens across features, and use Tailwind's utility classes to keep styling co-located with feature code.

What are the performance considerations for Next.js 15 server-first apps?

Prioritize server-side rendering to reduce client JavaScript, use dynamic imports and Suspense boundaries to defer heavy code, apply Web Vitals guidance, enable strict ESLint rules to catch performance pitfalls, and leverage caching tags to avoid redundant data fetches across features.

Do I need middleware for authentication in a server-first Next.js app?

Yes. Middleware with role-based authorization gates requests before they reach your features, protecting server actions and data access. Layer security at middleware, server action, and component levels to ensure comprehensive protection across your feature-first architecture.