frontend-page

Create Next.js App Router pages with separated routing, logic, hooks, and presentation layers.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/moking55/next-nest-monorepo-boilerplate --skill frontend-page-moking55
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-page
Source: https://github.com/moking55/next-nest-monorepo-boilerplate/tree/main/.agents/skills/define-frontend-container
Command: npx skills add https://github.com/moking55/next-nest-monorepo-boilerplate --skill frontend-page-moking55

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of creating consistent frontend pages by enforcing a maintainable 4-layer architecture that separates routing, business logic, hooks, and presentation.

Core Features & Use Cases

  • Page Architecture Setup: Creates Next.js App Router pages that connect server entry points with reusable containers.
  • Logic and UI Separation: Establishes containers, hooks, and presentational components with clear responsibilities and strict TypeScript patterns.
  • Use Case: Build a new authenticated product page while following the repository's conventions for containers, hooks, shared types, and reusable UI components.

Quick Start

Ask the frontend-page skill to create a new feature page following the project's 4-layer architecture and coding conventions.

Frequently Asked Questions about frontend-page

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

FAQPage Schema
How do I structure a Next.js App Router page to separate business logic from UI components?

To structure a Next.js App Router page, use a 4-layer architecture that separates routing, container logic, hooks, and presentation. This maintains scalable frontend architecture by enforcing strict TypeScript patterns and clear component responsibilities.

What is the best way to build authenticated React feature pages with strict TypeScript patterns?

The best way to build authenticated React feature pages is applying a maintainable 4-layer architecture. This approach uses containers for logic, useImmer for state handling, and explicit type exports to ensure consistent, scalable frontend development.

How does separating containers, hooks, and presentational components improve frontend architecture?

Separating containers, hooks, and presentational components improves frontend architecture by establishing clear responsibilities. This separation enforces strict TypeScript patterns and absolute imports, solving the challenge of creating consistent, maintainable feature pages.

Can I use this 4-layer page structure for existing Next.js projects requiring reusable components?

Yes, you can use this 4-layer page structure for existing Next.js projects. It creates reusable React components and connects server entry points with containers, requiring absolute imports and explicit type exports to maintain your repository's conventions.

Do I need useImmer for state handling when creating new feature pages in React?

Yes, useImmer is required for state handling when creating new feature pages. The architecture mandates useImmer alongside strict TypeScript patterns and absolute imports to maintain scalable frontend architecture and consistent state management.

Why does my Next.js App Router development scenario require explicit type exports?

Explicit type exports are required in Next.js App Router development to maintain strict TypeScript patterns. They ensure type safety across the separated routing, container, hooks, and presentation layers, preventing structural inconsistencies in scalable frontend pages.