What problem does it solve?
This Skill automates the creation of Next.js page components, ensuring they correctly handle various asynchronous data states like loading, errors, and empty results, streamlining frontend development.
Core Features & Use Cases
- Dynamic State Handling: Generates pages that display loading spinners, error messages, or empty states based on data availability.
- FSD Architecture Integration: Creates components adhering to the Feature-Sliced Design (FSD) pattern, placing them in the correct
src/pages/ or app/ directories.
- TanStack Query Integration: Leverages TanStack Query for efficient data fetching and state management.
- Use Case: When asked to create a new product listing page for an e-commerce site, this Skill will generate the necessary Next.js component, including logic for fetching product data and displaying appropriate messages if data is loading, an error occurred, or no products are found.
Quick Start
Use the fsd-page skill to create a new page component for displaying user profiles.