add-react-page
OfficialShip a new React screen fast and safely.
System Documentation
What problem does it solve?
Adding a new list+create UI screen usually triggers scattered, error-prone work across API clients, pages, routing, permissions, and end-to-end tests; this Skill provides a consistent frontend implementation path so you can add screens without breaking app conventions.
Core Features & Use Cases
- Hands-on API module wiring: Hand-write DTO/params/input types and thin
apiFetchfunctions with correct query casing per app (admin PascalCase vs dashboard camelCase). - Production-ready page patterns: Create a named-export page that uses React Query with hierarchical
queryKeyandplaceholderData: keepPreviousData, plus the right list+create UI structure (separate pages for admin, dialog-based editors for dashboard). - Mutation correctness and cache updates: Implement race-safe mutations using
mutate(arg)and invalidate queries on success, surfacing errors via consistent toast handling. - Route registration with the right guardrails: Register the lazy-loaded route via
lazyNamed, using<RouteGuard perms={[...]}>for admin and suspense-only routing for dashboard. - Permission mirroring and Playwright coverage (admin): Add the permission constant in
src/lib/permissions.tswhen needed and include a scoped, shell+page-mocked Playwright test.
Quick Start
Add the Skill to create a list+create screen for your resource in the React app by following each step for the correct app variant (admin vs dashboard) including API types, the named-export page, the route registration, and the Playwright test.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-react-page Download link: https://github.com/fullstackhero/dotnet-starter-kit/archive/main.zip#add-react-page Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.