new-feature

Scaffold a Fuse frontend feature with React page code, React Query hooks, and authenticated route registration.

1|1|Updated May 13, 2026
One-click install
npx skills add https://github.com/bibektimilsina00/fuse_monorepo --skill new-feature-bibektimilsina00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-feature
Source: https://github.com/bibektimilsina00/fuse_monorepo/tree/main/.agents/skills/new-feature
Command: npx skills add https://github.com/bibektimilsina00/fuse_monorepo --skill new-feature-bibektimilsina00

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the repetitive setup work required to add a new feature to the Fuse frontend by generating a consistent folder structure, React page component, React Query hooks, and route registration.

Core Features & Use Cases

  • Scaffold React Query hooks: Creates queries.ts with list/detail queries and create/update/delete mutations wired to the existing apiClient and QUERY_KEY invalidation pattern.
  • Generate feature directory structure: Creates apps/web/src/features/<feature-name>/ with a page component and feature-scoped components (list, item, form, modal).
  • Register the route: Adds a lazy-loaded route entry in apps/web/src/app/router.tsx inside the authenticated/protected route wrapper.
  • Use case: When you need a new admin/settings page (for example, managing tags), the Skill ensures the UI hooks match the backend schemas and that the page becomes reachable via the correct route path.

Quick Start

Ask for a feature name, the page purpose, the backend API endpoint, the CRUD operations required, and the route path to generate the corresponding hooks, UI files, and router entry.

Frequently Asked Questions about new-feature

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

FAQPage Schema
How do I scaffold a new React feature with CRUD operations and route registration?

To scaffold a new React feature, you provide the feature name, API endpoint, required CRUD operations, and route path. The tool then generates a feature directory, React page components, React Query hooks, and protected route entries automatically.

What is the best way to generate React Query hooks for list, detail, and mutation operations?

The best way to generate React Query hooks is by specifying your backend API paths and required CRUD operations. The scaffolding process creates a queries.ts file with list and detail queries, plus create, update, and delete mutations wired to apiClient and query invalidation.

Can I automatically add a lazy-loaded route to my React router for a new admin page?

Yes, you can add a lazy-loaded route to your React router for a new admin page. The scaffolding process automatically adds a route entry inside the authenticated or protected route wrapper, ensuring the new feature is reachable via the correct path.

Does this frontend scaffolding align TypeScript types with backend API schemas?

Yes, this frontend scaffolding aligns TypeScript types with backend API schemas. When generating the feature directory and React page code, it ensures the UI hooks and TypeScript types match the specified backend API endpoint schemas.

How do I set up a feature directory structure for a React settings or admin resource?

To set up a feature directory structure for a React settings or admin resource, provide the feature name and page purpose. The scaffolder creates a feature-scoped directory containing page components alongside list, item, form, and modal components.

What do I need to provide to scaffold a CRUD-based UI addition in a React frontend?

To scaffold a CRUD-based UI addition, you need to provide a feature name, the page purpose, the backend API endpoint, the specific CRUD operations required, and the desired route path to generate the matching hooks, UI files, and router entry.