scaffold-page

Generate a complete React page scaffold with component, API client, types, router entry, and navigation.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/bbolek-ap/new-ai-native --skill scaffold-page
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-page
Source: https://github.com/bbolek-ap/new-ai-native/tree/main/.claude/skills/scaffold-page
Command: npx skills add https://github.com/bbolek-ap/new-ai-native --skill scaffold-page

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolding a new React page can be error-prone and time-consuming. This guide standardizes the process, ensuring a page component, API client, TypeScript types, router entry, navigation link, and consistent layout and enum alignment across the frontend.

Core Features & Use Cases

  • Create a new page component following the project's conventions and file structure.
  • Add one API client function per endpoint the page consumes, with existing patterns for requests and error handling.
  • Generate TypeScript types from backend DTOs and align enums with backend Domain enums to keep frontend/backend in sync.
  • Ensure a router entry and navigation link are added in the same style as existing pages, with consistent loading and error conventions.

Quick Start

Follow the scaffolding checklist to add a new UI page that matches the app's current conventions.

Frequently Asked Questions about scaffold-page

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

FAQPage Schema
How do I scaffold a new React page with TypeScript types and an API client?

Scaffolding a new React page involves generating a component, API client functions, TypeScript types, router entry, and navigation link. This process standardizes file structure and aligns frontend enums with backend Domain enums.

What's the best way to align frontend TypeScript enums with backend Domain enums?

To align frontend TypeScript enums with backend Domain enums, generate TypeScript types from backend DTOs and enforce explicit type definitions. This ensures frontend and backend values stay in sync across the new UI page.

How do I add a router entry and navigation link for a new React route?

Adding a router entry and navigation link requires matching existing page conventions. You generate a new React route entry alongside a navigation link, applying the project's consistent loading and error handling patterns.

Can I generate API client functions that match existing request and error handling patterns?

Yes, you can generate API client functions that match existing patterns. The scaffolding process adds one API client function per endpoint consumed by the page, conforming to established request and error handling conventions.

Does React page scaffolding work with an existing component library and project conventions?

React page scaffolding works with your existing component library and project conventions. It generates the page component using established file structures, layout designs, and consistent styling already present in the application.

Why do I need to generate TypeScript types from backend DTOs for a new UI page?

Generating TypeScript types from backend DTOs is needed to maintain frontend and backend synchronization. It enforces backend-aligned enum values with explicit type definitions, preventing data mismatch errors across the UI.