nextjs-module-design

Create standardized Next.js feature modules with canonical folder layouts and naming conventions.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/yutna/vibe-next-template --skill nextjs-module-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-module-design
Source: https://github.com/yutna/vibe-next-template/tree/main/.claude/skills/nextjs-module-design
Command: npx skills add https://github.com/yutna/vibe-next-template --skill nextjs-module-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams in structuring Next.js feature modules to improve maintainability, reuse, and scalability across large applications.

Core Features & Use Cases

  • Clear module structure templates for actions, services, repositories, components, and screens within src/modules/.
  • Enforced naming patterns and layer architecture to reduce coupling and onboarding time.
  • Use Case: When designing a new feature, generate a consistent module scaffold that aligns with existing conventions.

Quick Start

Create a new module by following the naming and folder structure guidelines described in this skill.

Frequently Asked Questions about nextjs-module-design

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

FAQPage Schema
What is the best way to structure large Next.js feature modules for scalability?

Next.js feature modules use a canonical folder layout under src/modules/ to separate actions, services, repositories, and components. This enforces naming patterns and layered architecture to reduce coupling and improve maintainability across large applications.

How do I scaffold a new Next.js feature module with consistent naming conventions?

To scaffold a Next.js feature module, generate the standardized folder structure for screens, components, and services within src/modules/. Following the prescribed naming conventions ensures your new feature aligns with existing layered architecture guidelines.

When do I need a layered architecture for my Next.js application?

You need a layered architecture for Next.js applications when managing large codebases that require high reusability and maintainability. Structuring feature modules with distinct actions, services, and repositories reduces onboarding time and prevents tightly coupled code.

Can I use this module design approach for refactoring existing Next.js features?

Yes, this Next.js module design approach applies to both new features and feature refactors. It provides a standardized module scaffold that aligns existing code within src/modules/ to established conventions for consistency and maintainability.

What is the canonical folder layout for Next.js server components and actions?

The canonical folder layout for Next.js organizes server components, actions, services, repositories, and screens into a structured hierarchy within src/modules/. This enforces clear boundaries and standardized naming patterns for feature development.