Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Comprehensive React 19 and Vite 8 SPA performance, architecture, and deployment guidelines. Use this skill when building, reviewing, or refactoring React applications built with Vite (SPA).
Imported from claudiocebpaz/vite-react-best-practices (SKILL.md) via skills.sh. Install upstream with npx skills add claudiocebpaz/vite-react-best-practices. Copyright stays with the author (MIT).
Vite React Best Practices
A senior-level guide for building production-ready React Single Page Applications (SPAs) with Vite.
When to Apply
Reference these guidelines when:
Setting up a new Vite + React project
Configuring build pipelines and CI/CD for SPAs
Troubleshooting production build or caching issues
Pick the rule that matches the task from the categories above, or from the priority table if you need to know what must not be skipped.
Open the rule file in rules/. Each file is self-contained: frontmatter with impact and tags, the rationale, an incorrect example, a correct example, and a References section.
Load only the rules relevant to the task. CRITICAL rules apply to every Vite SPA; HIGH rules apply to most production apps; MEDIUM rules apply when the area is being changed.
When a rule references another rule, follow the relative link inside rules/.
Stack
Version
React
19.3.1
Vite
8.3.5 (Rolldown + Oxc)
React Router
8.5.1
TanStack Query
5.105.1
React Compiler
babel-plugin-react-compiler 1.x
Node (Vite 8)
`^20.19.0
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md (also available as CLAUDE.md).
Installed into a catalogue, chosen by a router
Install vite-react-best-practices and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "claudiocebpaz-vite-react-best-practices-vite-react-best-aa8fe3",
"kind": "skill",
"name": "vite-react-best-practices",
"description": "Comprehensive React 19 and Vite 8 SPA performance, architecture, and deployment guidelines. Use this skill when building, reviewing, or refactoring React applications built with Vite (SPA). Covers Vite 8 build and static hosting requirements, React Router 8 route-level code splitting, TanStack Query v5 server state, React Compiler memoization, and core React performance patterns.",
"publisher": "claudiocebpaz",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"data_analysis"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Comprehensive React 19 and Vite 8 SPA performance, architecture, and deployment guidelines. Use this skill when building, reviewing, or refactoring React applications built with Vite (SPA). Covers Vite 8 build and static hosting requirements, React Router 8 route-level code splitting, TanStack Query v5 server state, React Compiler memoization, and core React performance patterns."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/claudiocebpaz/vite-react-best-practices",
"path": "SKILL.md",
"ref": "HEAD",
"url": "https://www.skills.sh/claudiocebpaz/vite-react-best-practices/vite-react-best-practices",
"key": "claudiocebpaz/vite-react-best-practices/SKILL.md"
},
"license": "MIT"
},
"instructions": "# Vite React Best Practices\n\nA senior-level guide for building production-ready React Single Page Applications (SPAs) with Vite.\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a new Vite + React project\n- Configuring build pipelines and CI/CD for SPAs\n- Troubleshooting production build or caching issues\n- Refactoring React components for performance\n\n## Priority Table\n\n| Impact | Rules |\n| --- | --- |\n| CRITICAL | [Static Rewrites](rules/vite-spa-rewrites.md), [Caching Strategy](rules/vite-caching-strategy.md) |\n| HIGH | [Build Validation](rules/vite-build-validation.md), [Environment Variables](rules/vite-env-vars.md), [Route Splitting](rules/react-route-splitting.md), [Server State](rules/react-server-state.md) |\n| MEDIUM | [Memoization](rules/react-memoization.md), [Image Optimization](rules/react-image-optimization.md), [Colocation](rules/react-colocation.md), [Anti-Patterns: Import from Dist](rules/anti-import-dist.md), [Troubleshooting](rules/vite-troubleshooting.md) |\n\n## Rule Categories\n\n### 1. Vite SPA Deployment (CRITICAL)\n\n- [Static Rewrites](rules/vite-spa-rewrites.md) - **Mandatory** for client-side routing.\n- [Caching Strategy](rules/vite-caching-strategy.md) - Immutable assets, no-cache index.html.\n- [Build Validation](rules/vite-build-validation.md) - Preview before push.\n- [Environment Variables](rules/vite-env-vars.md) - `VITE_` prefix and security.\n\n### 2. React Core Performance\n\n- [Route Splitting](rules/react-route-splitting.md) - Lazy load pages with React Router 8 `route.lazy`.\n- [Server State](rules/react-server-state.md) - TanStack Query v5 for cached server data.\n- [Memoization](rules/react-memoization.md) - When to use useMemo/useCallback, and what React Compiler replaces.\n- [Image Optimization](rules/react-image-optimization.md) - LCP and CLS prevention.\n\n### 3. Architecture & Cleanup\n\n- [Colocation](rules/react-colocation.md) - Feature-based structure.\n- [Anti-Patterns: Import from Dist](rules/anti-import-dist.md) - Avoid bundling twice.\n- [Troubleshooting](rules/vite-troubleshooting.md) - Common Vite 8 fixes.\n\n## How to Use\n\n1. Pick the rule that matches the task from the categories above, or from the priority table if you need to know what must not be skipped.\n2. Open the rule file in `rules/`. Each file is self-contained: frontmatter with `impact` and `tags`, the rationale, an incorrect example, a correct example, and a References section.\n3. Load only the rules relevant to the task. CRITICAL rules apply to every Vite SPA; HIGH rules apply to most production apps; MEDIUM rules apply when the area is being changed.\n4. When a rule references another rule, follow the relative link inside `rules/`.\n\n| Stack | Version |\n| --- | --- |\n| React | 19.3.1 |\n| Vite | 8.3.5 (Rolldown + Oxc) |\n| React Router | 8.5.1 |\n| TanStack Query | 5.105.1 |\n| React Compiler | `babel-plugin-react-compiler` 1.x |\n| Node (Vite 8) | `^20.19.0 || >=22.12.0` |\n\n## Full Compiled Document\n\nFor the complete guide with all rules expanded: `AGENTS.md` (also available as `CLAUDE.md`).",
"cost": {
"context_tokens": 763
}
}
Fetch it by URL: GET /api/v1/registry/claudiocebpaz-vite-react-best-practices-vite-react-best-aa8fe3/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.