new-route

Scaffold GAIA framework routes with page components, tests, and i18n stubs.

21|4|Updated Sep 4, 2024
One-click install
npx skills add https://github.com/gaia-react/gaia --skill new-route-gaia-react
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-route
Source: https://github.com/gaia-react/gaia/tree/main/.claude/skills/new-route
Command: npx skills add https://github.com/gaia-react/gaia --skill new-route-gaia-react

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the manual overhead of creating boilerplate files for new application routes, ensuring consistent structure and preventing configuration errors.

Core Features & Use Cases

  • Automated Scaffolding: Generates page components, tests, stories, and i18n keys in one command.
  • Standardized Architecture: Enforces the project's specific folder conventions for public and session-based routes.
  • Use Case: When building a new dashboard feature, use this skill to instantly create the route file, the corresponding page component folder, and the necessary test stubs to maintain project standards.

Quick Start

Ask the assistant to scaffold a new session route named user-profile with loader and i18n support.

Frequently Asked Questions about new-route

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

FAQPage Schema
How do I automate React route scaffolding for new page components?

Automating React route scaffolding generates standardized file structures for page components, tests, and localization stubs in one command. This eliminates manual boilerplate creation and enforces consistent folder conventions for public and session-based routes.

What is the best way to create boilerplate files for public and session-based React routes?

Creating boilerplate for React routes is best handled by automated scaffolding tools that generate page components, test stubs, and i18n keys simultaneously. This enforces project architecture standards and prevents configuration errors during route creation.

Do I need the GAIA CLI to scaffold new application routes?

Yes, scaffolding new application routes requires the GAIA CLI to be available in the repository root. The CLI executes the necessary file system operations and configuration updates to generate the standardized route structures.

Does automated React routing scaffolding include test and i18n stub generation?

Yes, automated React routing scaffolding includes test and i18n stub generation. It creates page components alongside necessary test files and localization keys to ensure new routes maintain full project standards from the start.

Why does manually creating React route files cause configuration errors?

Manually creating React route files causes configuration errors due to inconsistent file structures and missed boilerplate elements. Automated scaffolding solves this by standardizing folder conventions for public and session-based routes.