new-route-scaffold

Scaffold authenticated routes with SSR-first architecture and Redux hydration.

2|1|Updated Aug 24, 2024
One-click install
npx skills add https://github.com/armanisadeghi/ai-matrx --skill new-route-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-route-scaffold
Source: https://github.com/armanisadeghi/ai-matrx/tree/main/.cursor/skills/new-route-scaffold
Command: npx skills add https://github.com/armanisadeghi/ai-matrx --skill new-route-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The New Route Scaffold solves the tedious, error-prone process of creating a complete authenticated route structure in app/(a)/, including SSR-first architecture, Redux hydration, and typed database models.

Core Features & Use Cases

  • Automated phase-driven scaffolding from types to route files, hydrators, and shell components.
  • Ensures database types stay in sync with feature layers and reduces manual boilerplate.
  • Useful whenever introducing a new authenticated route with a sidebar/main layout and multiple view modes.

Quick Start

Run the new-route-scaffold skill to generate a complete scaffold for your new route.

Frequently Asked Questions about new-route-scaffold

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

FAQPage Schema
How do I scaffold a new authenticated Next.js route with SSR and Redux hydration?

Scaffolding an authenticated Next.js route with SSR and Redux hydration requires structured route directories, phase-based type audits, server data layers, and parallel hydrators across layout and detail views to reduce manual boilerplate.

What is the best way to generate a sidebar layout with dynamic routing in a Next.js app directory?

Generating a sidebar layout with dynamic routing requires orchestrating end-to-end scaffolding inside the app/(a)/ directory, producing shell components, hydrators, and SEO-friendly metadata for the feature views.

Can I use this scaffold to keep database types in sync with my feature layers?

Yes, you can use this scaffold to keep database-derived types in sync with feature layers by applying phase-based type audits during the automated scaffolding process, reducing manual boilerplate and type errors.

Does this scaffolding tool work for routes requiring parallel hydrators and multiple view modes?

This scaffolding tool works for routes requiring parallel hydrators and multiple view modes by generating hydrators across both layout and detail views, ensuring proper Redux hydration within an SSR-first architecture.

Why does creating an authenticated route structure manually lead to boilerplate and typing errors?

Creating an authenticated route structure manually leads to boilerplate and typing errors because developers must individually configure server data layers, shell components, and Redux hydration without automated phase-based type audits keeping database models synced.