Get the FREE Ultimate OpenClaw Setup Guide →

vite-react-ts-init

npx machina-cli add skill andireuter/skills-webapp/vite-react-ts-init --openclaw
Files (1)
SKILL.md
1.2 KB

Vite + React + TypeScript (react-ts) Project Init (pnpm)

You are setting up a new project using Vite with React + TypeScript, using pnpm.

Rules / best practices

  1. Prefer pnpm for install and scripts.
  2. Prefer React functional components.
  3. Keep the init output actionable:
    • Commands
    • Expected files
    • Next steps
  4. Avoid inventing tooling that wasn’t requested; if you suggest extras (ESLint, Vitest, Playwright), keep them optional and clearly separated.

Default choices

  • Template: react-ts (unless user explicitly asks for react-swc-ts)
  • Package manager: pnpm
  • Node: use the project’s current baseline; if unknown, recommend an active LTS.

Deliverables

  • Provide the exact commands to:
    1. scaffold
    2. install
    3. run dev server
    4. build and preview
  • Provide a recommended folder structure (aligned to the repo’s conventions if provided).

Use template.md as the default output structure.

Source

git clone https://github.com/andireuter/skills-webapp/blob/main/skills/vite-react-ts-init/SKILL.mdView on GitHub

Overview

Bootstraps a Vite project using React + TypeScript (react-ts) via pnpm, then applies baseline setup including scripts, a sensible folder structure, editor config, and git init. The default template and workflow emphasize fast iteration with actionable, repeatable steps.

How This Skill Works

The process scaffolds a new project with the react-ts template using pnpm, installs dependencies, and then applies a baseline structure plus a minimal editor config and git initialization. It exposes standard scripts (dev, build, preview) and provides clear next steps to start development.

When to Use It

  • You want a fresh Vite React + TS app up and running quickly with pnpm
  • You need a baseline project structure, editor config, and an initial git repo
  • You prefer functional React components and minimal tooling by default
  • You want actionable scaffold output with exact commands to run
  • You're setting up a starter for internal tools, dashboards, or open-source demos

Quick Start

  1. Step 1: pnpm create vite@latest [project-name] --template react-ts
  2. Step 2: cd [project-name] && pnpm install
  3. Step 3: pnpm dev (Optional: later run 'pnpm build' and 'pnpm preview' to verify production output)

Best Practices

  • Use pnpm for install and scripts
  • Prefer React functional components
  • Keep the init output actionable (commands, files, next steps)
  • Avoid introducing tooling not requested; keep extras optional and clearly separated
  • Stick to the default choices unless asked: react-ts template, pnpm, and a matching Node baseline (prefer active LTS)

Example Use Cases

  • Bootstrap a new admin dashboard starter with Vite, React, and TypeScript
  • Spin up a quick internal tooling UI with a clean baseline and git init
  • Create a public-facing React TS app starter for a portfolio or product site
  • Prototype UI components in a minimal, maintainable repo
  • Launch a small open-source demo app to showcase the setup

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers