plugins/frontend/skills/core-principles/SKILL.md
Core principles and project structure for React 19 SPA development. Covers stack overview, project organization, agent execution rules, and authoritative sources. Use when planning new projects, onboarding, or reviewing architectural decisions.
npx skillsauth add involvex/involvex-claude-marketplace core-principlesInstall 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.
Production-ready best practices for building modern React applications with TypeScript, Vite, and TanStack ecosystem.
/src
/app/ # App shell, providers, global styles
/routes/ # TanStack Router file-based routes
/components/ # Reusable, pure UI components (no data-fetch)
/features/ # Feature folders (UI + hooks local to a feature)
/api/ # Generated API types & client (from OpenAPI)
/lib/ # Utilities (zod schemas, date, formatting, etc.)
/test/ # Test utilities
Key Principles:
Always do this when you add or modify code:
API Spec: Fetch latest via Apidog MCP and regenerate /src/api types if changed
Data Access: Wire only through feature hooks that wrap TanStack Query. Never fetch inside UI components.
New Routes:
/src/routes/** (file-based routing)Server Mutations:
useMutation (choose one per feature)useOptimistic (Actions) or Query's optimistic updatesCompiler-Friendly:
"use no memo" temporarilyTests:
Before Committing:
biome check --writeas const), staleTime/gcTime tuned/src/api; inputs/outputs validated at boundariesbiome check --write clean; Vite build okReact 19 & Compiler:
<form action> / Actions API; useOptimistic; useVite:
TypeScript:
moduleResolution: "bundler" (for bundlers like Vite)Biome:
TanStack Query:
TanStack Router:
Vitest:
Apidog + MCP:
development
Technical SEO audit methodology including crawlability, indexability, and Core Web Vitals analysis. Use when auditing pages or sites for technical SEO issues.
content-media
SERP analysis techniques for intent classification, feature identification, and competitive intelligence. Use when analyzing search results for content strategy.
data-ai
Schema.org markup implementation patterns for rich results. Use when adding structured data to content for enhanced SERP appearances.
development
Correlate content attributes with performance metrics across GA4, GSC, and SE Ranking. Identify what drives performance and build optimization hypotheses.