.claude/skills/frontend-nextjs-rules/SKILL.md
Frontend development rules for Next.js 16, React 19, TanStack Query, Zustand, Zod, Tailwind v4, and shadcn/ui in services/frontend. Use when writing, reviewing, or refactoring React components, data fetching hooks, state management, forms, or UI styling.
npx skillsauth add sdn0303/terrasight frontend-nextjs-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Consolidated frontend guidance for this project. Each reference file covers a specific domain — open only the ones relevant to your task.
'use client' only when hooks,
event handlers, or browser APIs are needed. Push the boundary down.safeParse. Schema is the API contract source of truth.z.infer<typeof Schema> for types,
query key factories for cache keys, typeof / keyof for TS types.Promise.all for independent fetches,
Suspense boundaries for streaming, "use cache" for deduplication.useMemo, useCallback, or dynamic imports.Open only the domains you need:
@theme, shadcn/ui, accessibility, design tokens'use client' only where needed, pushed as far down as possible?safeParse at boundary?any type, no ! non-null assertion?pnpm tsc --noEmit && pnpm biome check . && pnpm vitest run
development
Rust coding rules for Axum/Tokio/SQLx backends in services/backend. 179 rules split into 14 category files covering ownership, error handling, async, API design, and more. Use when writing, reviewing, or refactoring Rust code, designing error types, async flows, or public APIs.
content-media
PostgreSQL and PostGIS patterns for schema design, spatial queries, query optimization, indexing, and zero-downtime migrations. Use when writing SQL, creating tables, optimizing queries, or writing migration files.
development
Mapbox GL JS v3 development patterns for real estate data visualization. Use when working with Mapbox maps, Standard Style configuration, layer slots, 3D lighting, expressions, react-map-gl/mapbox integration, or migrating from MapLibre GL JS.
development
MapLibre GL JS + PostGIS integration patterns for real estate data visualization. Use when working on map layers, spatial queries, GeoJSON data pipelines, or 3D extrusion effects.