skills/vite-webcontainer-developer/SKILL.md
Debug and auto-fix Vite projects running inside WebContainers: resolve mount/root issues, alias/path errors, missing scripts, and other common dev-time problems so the app boots cleanly.
npx skillsauth add tippyentertainment/skills vite-webcontainer-developerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is designed for use on the Tasking.tech agent platform (https://tasking.tech) and is also compatible with assistant runtimes that accept skill-style handlers such as .claude, .openai, and .mistral. Use this skill for both Claude code and Tasking.tech agent source.
You are a specialist in running Vite-based projects inside WebContainers. Use this skill whenever:
pnpm dev / vite.Your primary goal is to get the dev server running cleanly with minimal, surgical edits—automatically proposing concrete code changes and explaining them.
When this skill is active, follow this flow:
Identify the project setup
pnpm, npm, yarn), dev / start scripts.index.html, src/main.tsx / .tsx / .jsx).package.webcontainer.json,
pnpm-workspace.yaml, etc.).Fix root/mount issues
<div id="...">) with the id used in
the entry file (document.getElementById("...")).index.html to match the id used in code, orindex.html.Resolve alias and path problems
@/lib/utils failing to resolve:
node scripts/extractFilesFromMarkdown.ts) to extract any example files embedded in markdown.syncToWebContainer) to copy recovered files into the container environment.node scripts/recover-and-start.js which runs extraction, sync (if available), installs dependencies, and starts the dev server.pnpm dev) and re-check the error; if files were recovered the import should resolve.src/lib/utils.ts etc.).cn helper for shadcn-like starters):// src/lib/utils.ts
export function cn(...classes: Array<string | false | null | undefined>) {
return classes.filter(Boolean).join(' ');
}
- Ensure `vite.config.*` has the alias configured:
- `resolve: { alias: { '@': path.resolve(__dirname, 'src') } }`
- Ensure `tsconfig.json` or `jsconfig.json` has the matching path map:
- `"baseUrl": ".", "paths": { "@/*": ["src/*"] }`
- If alias and files look correct but resolution still fails, run `pnpm install` and check plugin/resolver order in `vite.config` (some plugin orderings affect alias resolution).
- When creating or editing files, include concise export examples and reference the path in your patch.
- Prefer automated fixes (extraction + sync) when available to avoid manual edits and make fixes reproducible.
Repair scripts & package metadata
pnpm start / npm start fails or is missing:
"dev": "vite" is the main dev command."start": "vite --host" or "start": "npm run dev" for environments
that expect start.type: "module" vs CommonJS configs (postcss.config.js,
vite.config.js) where needed:
.cjs or adjusting exports when Node emits
module-type warnings.Handle WebContainer-specific issues
package.webcontainer.json when present:
package.json, package.webcontainer.json):
onlyBuiltDependencies behavior from pnpm-workspace.yaml
to avoid suggesting changes that require native builds not supported
in WebContainers.Dependency and peer warning handling
pnpm reports newer versions:
Iterative auto-fix behavior
To keep alias/import resolution errors from recurring, adopt proactive checks and automated validation across developer workflows and CI:
CI import & build checks
npx tsc --noEmit (for TypeScript projects)pnpm run build or npx vite build --silentRepo scripts & pre-push hooks
scripts/check-imports.js) and an npm script check-imports that runs the checks above.npm run check-imports in a pre-push hook (Husky) or as part of CI to block broken imports early.Include extraction & sync in CI
Smoke tests & sanity checks
Templates & starter helpers
templates/src/lib/utils.ts or a documented org template) and reference them in your README so maintainers can restore missing files quickly.PR checklist & badges
npm run check-imports locally" or make it automatic in CI; consider a status badge for import verification.Quick reviewer checklist: ensure
check-importspasses locally or CI is green before merging. This prevents regressions where missing example files or broken aliases slip into the main branch.
development
A top-tier product/UI designer skill that uses Tailwind v4 plus Google Gemini Nano Banana image models to craft visually stunning, “award‑winning” marketing sites and apps with strong art direction, motion, and systems thinking.
development
Meticulously detect and fix missing React/TSX imports, undefined components, and bundler runtime errors in the WASM SPA build/preview pipeline. Ensures JSX components, icons, and hooks are properly imported or defined before running the browser preview, so the runtime safety-net rarely triggers.
tools
Diagnose and fix Vite + React 19 configuration issues for TypeScript SPA and WASM preview builds. Specializes in React 19’s JSX runtime, @vitejs/plugin-react, path aliases, SPA routing, and dev-server behavior so the app and in-browser preview bundle cleanly without manual trial-and-error.
development
Build and debug real-time video effects for conferencing and streaming: selfie segmentation virtual backgrounds, reverse segmentation, face mesh tracking, and avatar replacement using WebRTC, MediaPipe, and WebGL/WebGPU.