Agent Skills: react-best-practices
React performance optimization guidelines from Vercel Engineering (vercel-labs/agent-skills). Use when writing, reviewing, or refactoring React components, data fetching, bundle size, re-renders, or performance. Prefer Vite-compatible patterns in ryOS (React.lazy + Suspense instead of next/dynamic; skip Next.js RSC/server-action rules unless touching Next-specific code).
ID: ryokun6/ryos/react-best-practices
1,281187
Install this agent skill to your local
Skill Files
The files that make up react-best-practices.
More agent skills
- create-storeCreate or modify ryOS Zustand stores following repo conventions — persist middleware, partialize, versioned migrations, the debounced write-behind storage adapter for large slices, and cloud-sync deletion tombstones. Use when adding state management, creating a use*Store, persisting app state, or wiring a store into cloud sync.
- localizeLocalize ryOS apps and components by extracting hardcoded strings, replacing with translation keys, and syncing across languages. Use when localizing an app, adding i18n support, translating UI text, or working with translation files.
- write-testsWrite and run ryOS tests with Bun's native test runner (bun:test). Covers unit/wiring tests (no server) vs API integration tests (require the standalone API server), shared HTTP helpers, and the package.json suite commands. Use when adding tests, writing test coverage for a change, or running/triaging the test suite.
- desktop-releaseCut and publish ryOS Electron desktop releases on GitHub. Covers bumping package.json version, tagging v*, triggering Build Electron, and verifying the GitHub release. Use when the user asks to release the desktop app, bump the desktop version, trigger an Electron build, or publish macOS/Windows installers.
- write-api-routeCreate or modify ryOS backend API routes under api/ using the shared apiHandler wrapper, request-auth, Redis, rate limiting, and CORS conventions. Use when adding an endpoint, writing a serverless/Bun API handler, wiring auth or rate limits, or working with anything under the api/ directory.
- create-ryos-appCreate new applications for ryOS following established patterns and conventions. Use when building a new app, adding an application to the desktop, creating app components, or scaffolding app structures.