Vainjs

Scaffold projects with vainjs conventions for npm packages and Chrome extensions. Make sure to use this skill whenever the user mentions initializing an npm package, creating a new project with Vite or Rollup, setting up a Chrome extension (Manifest V3), scaffolding a library, or running `npm init`, `pnpm create`, or similar scaffold commands — even if they don't explicitly ask for vainjs conventions.

vainjs 08a12f3 4 files · 14.3 KB Updated

File contents

Supported Templates

Template Description
npm TypeScript npm package with rolldown bundler
crx Chrome Extension (Manifest V3) with React + Vite

Workflow

Run this skill in the target project directory.

1. Generate files

  1. Read references/common.md for shared config files
  2. Read template-specific reference:
    • npm → references/npm.md
    • crx → references/crx.md

2. Resolve dependency versions

For dependencies marked "latest", run npm view <pkg> version and write as ^<version>.

3. Post-setup

Check if pnpm is installed (command -v pnpm). If not, prompt user to install: npm install -g pnpm.

pnpm install
chmod +x .husky/*

vainjs/skills/tree/main/skills/vainjs commit 08a12f3cc0

Frequently asked questions

npx skillmds@latest add vainjs/vainjs