vite-react-ts-init
npx machina-cli add skill andireuter/skills-webapp/vite-react-ts-init --openclawFiles (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
- Prefer pnpm for install and scripts.
- Prefer React functional components.
- Keep the init output actionable:
- Commands
- Expected files
- Next steps
- 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:
- scaffold
- install
- run dev server
- 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
- Step 1: pnpm create vite@latest [project-name] --template react-ts
- Step 2: cd [project-name] && pnpm install
- 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