Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add AsyrafHussin/agent-skills --skill react-vite-best-practicesgit clone --depth 1 https://github.com/AsyrafHussin/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/asyrafhussin/agent-skills/react-vite-best-practices)<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/react-vite-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/react-vite-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/react-vite-best-practices"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/react-vite-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01215 |
| Opus 5.5 | $0.00024 | $0.00486 |
| Sonnet 5.5 | $0.00012 | $0.00243 |
| Haiku 4.5 | $0.00006 | $0.00121 |
Grade A, and why
react-vite-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React + Vite Best Practices
Comprehensive performance optimization guide for React applications built with Vite. Contains 23 rules across 6 categories for build optimization, code splitting, development performance, asset handling, environment configuration, and bundle analysis.
Metadata
- Version: 2.0.0
- Framework: React + Vite
- Rule Count: 23 rules across 6 categories
- License: MIT
When to Apply
Reference these guidelines when:
- Configuring Vite for React projects
- Implementing code splitting and lazy loading
- Optimizing build output and bundle size
- Setting up development environment and HMR
- Handling images, fonts, SVGs, and static assets
- Managing environment variables across environments
- Analyzing bundle size and dependencies
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Build Optimization | CRITICAL | build- |
| 2 | Code Splitting | CRITICAL | split- |
| 3 | Development | HIGH | dev- |
| 4 | Asset Handling | HIGH | asset- |
| 5 | Environment Config | MEDIUM | env- |
| 6 | Bundle Analysis | MEDIUM | bundle- |
Quick Reference
1. Build Optimization (CRITICAL)
build-manual-chunks- Configure manual chunks for vendor separationbuild-minification- Minification with OXC (default) or Terserbuild-target-modern- Target modern browsers (baseline-widely-available)build-sourcemaps- Configure sourcemaps per environmentbuild-tree-shaking- Ensure proper tree shaking with ESMbuild-compression- Gzip and Brotli compressionbuild-asset-hashing- Content-based hashing for cache busting
2. Code Splitting (CRITICAL)
split-route-lazy- Route-based splitting with React.lazy()split-suspense-boundaries- Strategic Suspense boundary placementsplit-dynamic-imports- Dynamic import() for heavy componentssplit-component-lazy- Lazy load non-critical componentssplit-prefetch-hints- Prefetch chunks on hover/idle/viewport
What ships with it
28 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 86 KB
- metadata.json 1.5 KB
- README.md 1.5 KB
- rules/_sections.md 1.7 KB
- rules/_template.md 894 B
- rules/asset-fonts.md 3.3 KB
- rules/asset-image-optimization.md 4.1 KB
- rules/asset-public-dir.md 3.5 KB
- rules/asset-svg-components.md 4.1 KB
- rules/build-asset-hashing.md 4.1 KB
- rules/build-compression.md 4.1 KB
- rules/build-manual-chunks.md 2.9 KB
- rules/build-minification.md 4.1 KB
- rules/build-sourcemaps.md 3.3 KB
- rules/build-target-modern.md 2.5 KB
- rules/build-tree-shaking.md 3.7 KB
- rules/bundle-visualizer.md 3.8 KB
- rules/dev-dependency-prebundling.md 2.3 KB
- rules/dev-fast-refresh.md 4.7 KB
- rules/dev-hmr-config.md 4.5 KB
- rules/env-modes.md 3.2 KB
- rules/env-sensitive-data.md 3.4 KB
- rules/env-vite-prefix.md 3.1 KB
- rules/split-component-lazy.md 5.8 KB
- rules/split-dynamic-imports.md 4.3 KB
- rules/split-prefetch-hints.md 5.8 KB
- rules/split-route-lazy.md 3.3 KB
- rules/split-suspense-boundaries.md 3.5 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 183 lines · 59 tokens per session scan A 102875f67448
react-vite-best-practices is a skill published in the GitHub repository AsyrafHussin/agent-skills (111 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 1,215 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
react-vite-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-vite-best-practicesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| recipe-front-reviewshinpr/claude-code-workflows | Skill | 725 | yesterday | MIT | A | 29 | Claude Code |
| ring:applying-composition-patternsLerianStudio/ring | Skill | 218 | 29d ago | Apache-2.0 | A | 68 | Claude Code, Cursor |
| designing-data-intensive-applicationsciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 34 | Claude Code, Codex |
| patterns-of-enterprise-application-architectureciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 38 | Claude Code, Codex |
| a-philosophy-of-software-designciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 33 | Claude Code, Codex |
| clean-architectureciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 27 | Claude Code, Codex |