Skip to main content
Scaffold a spa feature inside a spa module: a route, its page layout, the route’s skeleton, error, and not-found boundaries, and example TanStack Query read and write hooks. The @tanstack/react-query dependency is installed if it is not already present.

Usage

ooneex spa:feature:create [options]

Examples

# Interactive: prompts for the feature name and spa module
ooneex spa:feature:create

# Provide both names as flags
ooneex spa:feature:create --name=Settings --module=dashboard

# Regenerate an existing feature
ooneex spa:feature:create --name=Settings --module=dashboard --override

Options

OptionDescriptionDefault
--nameFeature name. Normalized to PascalCase with a trailing Feature or Layout suffix stripped.Prompted if omitted
--moduleTarget spa module the feature is created in.Prompted if omitted
--overrideOverwrite the files if the feature already exists.false

AI Skill

This command ships a matching spa:feature:create skill. It generates the route, layouts, boundaries, and TanStack Query hooks, then guides your AI agent through completing a feature in a spa module built on @tanstack/react-router and @tanstack/react-query.
ooneex claude:init