react-spa-vite

Scaffold and build production-ready static SPAs with Vite, React, Tailwind CSS v4, PWA support, Subresource Integrity (SRI), and image optimization. Use when creating a new React SPA, setting up a Vite + React + Tailwind stack, enabling offline/PWA behavior, hardening build output with SRI, adding image optimization, or configuring optional Vitest/Playwright testing.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "react-spa-vite" with this command: npx skills add italypaleale/skills/italypaleale-skills-react-spa-vite

React SPA Vite

Create a production-ready static React SPA and keep decisions consistent.

Workflow

  1. Confirm required inputs:
  • App name
  • Package manager (pnpm preferred)
  • Need for PWA and offline support
  • Need for SRI hardening
  • Need for image optimization
  • Need for optional testing setup (Vitest, Playwright, both, or none)
  1. Initialize the project with Vite React SWC TypeScript template.

  2. Configure core stack:

  • Tailwind CSS v4 via @tailwindcss/vite
  • TypeScript strict settings
  • Vite aliases when requested
  1. Add production features requested by the user:
  • PWA via vite-plugin-pwa
  • SRI via vite-plugin-sri-gen (must be last in Vite plugin order)
  • Image optimization via vite-imagetools
  1. Apply sensible defaults for static deployment:
  • Keep index.html in project root
  • Keep source assets in src/assets/*
  • Keep deployable static output in dist/
  1. Validate setup:
  • Install dependencies
  • Run type checks and build
  • Run preview
  • Run tests only if test tooling was added

Reference Map

Load only the reference needed for the current request:

  • references/quickstart.md Use for project bootstrap, dependency installation, scripts, and baseline file structure.

  • references/configuration.md Use for Vite plugin setup, Tailwind v4, PWA, SRI, image optimization, env vars, fonts, and common implementation patterns.

  • references/testing.md Use only when the user asks for unit/component tests (Vitest) or E2E tests (Playwright).

  • references/troubleshooting.md Use only when diagnosing build, plugin, PWA, Tailwind, asset, or dev server issues.

Guardrails

  • Keep SKILL.md focused on orchestration; put detailed snippets in references.
  • Do not inline large templates in the main skill body.
  • Prefer minimal, working defaults first; add advanced options only when requested.
  • Prefer pnpm commands unless the user requests another package manager.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

biome-lint-format

No summary provided by upstream source.

Repository SourceNeeds Review
General

go-package-skill-creator

No summary provided by upstream source.

Repository SourceNeeds Review
General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
211Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2921Profile unavailable