Create Docs
victorgarciaesgi/nuxt-typed-router
Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.
This skill MUST be used whenever the task involves adding, installing, or upgrading an npm package/library/dependency in this project.
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install elirantutia/vibeyard add-npm-dependency --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-npm-dependency .claude/skills/add-npm-dependency && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .claude/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependencyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install elirantutia/vibeyard add-npm-dependency --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/add-npm-dependency .agents/skills/add-npm-dependency && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .agents/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install elirantutia/vibeyard add-npm-dependency --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/add-npm-dependency .cursor/skills/add-npm-dependency && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .cursor/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/elirantutia/vibeyard.git --path .claude/skills/add-npm-dependency--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install elirantutia/vibeyard add-npm-dependency --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/add-npm-dependency .gemini/skills/add-npm-dependency && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .gemini/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install elirantutia/vibeyard add-npm-dependencyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/add-npm-dependency .github/skills/add-npm-dependency && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .github/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add elirantutia/vibeyard --skill add-npm-dependency -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install elirantutia/vibeyard add-npm-dependency --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/elirantutia/vibeyard.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/add-npm-dependency .opencode/skills/add-npm-dependency && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-npm-dependency" agent skill from https://github.com/elirantutia/vibeyard/tree/main/.claude/skills/add-npm-dependency into .opencode/skills/add-npm-dependency/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-npm-dependency", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-npm-dependencyThis skill MUST be used whenever the task involves adding, installing, or upgrading an npm package/library/dependency in this project.
Add npm Dependency is an agent skill from elirantutia/vibeyard. This skill MUST be used whenever the task involves adding, installing, or upgrading an npm package/library/dependency in this project. Use when the user asks to "add a library", "install <package", "use <package", "add a dependency", "bump/upgrade a package", or any change to package.json dependencies. Covers the latest-version policy, esbuild renderer bundling, manual CSS copy, native module rebuilds, and the three build targets.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design. It works with npm and TypeScript. The repository describes itself as: The IDE built for AI coding agents. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 19bc19f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmnvmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add npm Dependency loads about 1.5k tokens when it runs. Until then it costs about 114 tokens; SKILL.md has 682 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from elirantutia/vibeyard at commit 19bc19f, republished under its MIT licence (© elirantutia). 682 words, ~1,493 tokens.
.claude/skills/add-npm-dependency/SKILL.md (or your agent's skills folder).This is an Electron app with three separate build targets (main, preload, renderer) and a few non-obvious bundling rules. Adding a dependency the wrong way silently breaks CSS, native modules, or the renderer bundle. Follow this guide every time.
Always install the newest published version. Never hand-edit package.json to set or downgrade a version.
npm install <pkg>@latest # runtime dependency
npm install -D <pkg>@latest # dev / build-only tool (types, bundlers, test libs)^x.y.z — the repo convention (every dep in package.json uses ^). Leave it as a caret range.package-lock.json is committed and gets updated by the install. Both package.json and package-lock.json are part of your change — stage both.package-lock.json — not yarn, not pnpm)..nvmrc; engines.node is >=18. Run nvm use first if needed.This determines every gotcha that follows.
| Target | Source dirs | How it's built | What's allowed |
|---|---|---|---|
| Renderer | src/renderer/** | Bundled by esbuild into one IIFE (build:renderer) | Plain JS/TS deps only. No Node built-ins, no native modules. |
| Main | src/main/**, src/shared/** | tsc → CommonJS (dist/main/) | Any Node dep, including native modules. Resolved via require at runtime against node_modules — not bundled. |
| Preload | src/preload/**, src/shared/** | tsc → CommonJS (dist/preload/) | Runs in Node/Electron context; same rules as main. |
marked, dompurify, gridstack, @xterm/*) just gets imported in renderer code and esbuild bundles it. Nothing else to do (except CSS — see Step 2)..node binary belongs in main/preload only.esbuild only has the .ts loader configured. It will not bundle any CSS the package ships. If the library needs a stylesheet to work (the way gridstack and @xterm/xterm do):
scripts/copy-assets.js — copy from node_modules/<pkg>/.../file.css to dist/renderer/vendor/<file>.css. Mirror the existing gridstack precedent in that file.<link rel="stylesheet" href="vendor/<file>.css"> to src/renderer/index.html (gridstack/xterm links are already there as examples).If you skip this, the JS bundles fine but the component renders unstyled. (CLAUDE.md documents this: "esbuild has no CSS loader" — gridstack CSS is copied manually.)
.node binaries)Examples already in the repo: better-sqlite3, node-pty.
dependency (never imported from the renderer — main/preload only).npm install triggers the postinstall hook → electron-builder install-app-deps, which rebuilds the .node binary against the pinned Electron ABI. If the module fails to load at runtime ("NODE_MODULE_VERSION mismatch"), re-run npm install and check the postinstall output.asarUnpack in package.json (precedent: **/node_modules/better-sqlite3/**).src/main/platform.ts for the platform-detection helpers.npm install -D @types/<pkg>@latest (precedent: @types/better-sqlite3, @types/dompurify, @types/picomatch).There is no hot reload — every change needs a rebuild.
npm run build # must pass: tsc main + tsc preload + esbuild renderer + copy-assets
npm test # Vitest suiteThen confirm the dependency actually works end to end:
npm start, and visually confirm the feature renders and styles load.electron-builder packages only dist/main/**, dist/preload/**, dist/renderer/**:
dist/renderer/index.js.node_modules at runtime, so they must be in dependencies (not devDependencies). Keep build-only tooling (bundlers, types, test libs) in devDependencies.Do:
npm install <pkg>@latest, leave the caret range, commit package.json + package-lock.json.<link> for any styled renderer library.npm run build and npm test before declaring done.Don't:
package.json.scripts/copy-assets.js step for CSS (esbuild won't bundle it).devDependencies or assume it works without the postinstall rebuild.$ARGUMENTS
© elirantutia, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/add-npm-dependency of elirantutia/vibeyard.
Open the folder on GitHubat commit 19bc19f
Add npm Dependency next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add npm Dependency this skillelirantutia/vibeyard | 1.4k | — | ~1.5k | Automated safety check: Pass | MIT | |
| Create Docsvictorgarciaesgi/nuxt-typed-router | 413 | 2 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Vuetify Skilldlogue/vite-vuetify-ts-starter | 181 | 1 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Compare Array Bundle SizePostHog/posthog-js | 634 | — | ~599 | Automated safety check: Pass | Custom licence | |
| Reduce Bundle Sizekcsujeet/ilamy-calendar | 351 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Spotpatchhuanglvjing/spotpatch | 134 | — | ~998 | Automated safety check: Pass | MIT |
victorgarciaesgi/nuxt-typed-router
Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.
logue/vite-vuetify-ts-starter
Vue Material Component Framework. An agent skill from logue/vite-vuetify-ts-starter.
PostHog/posthog-js
Quickly compare the posthog-js array.js bundle size in the current working tree against a git baseline using the repository's esbuild proxy.
kcsujeet/ilamy-calendar
Systematically reduce the shipped bundle size of a JS/TS library without sacrificing code readability or breaking consumer APIs.
huanglvjing/spotpatch
为 React 项目建立从浏览器页面元素到精确 JSX/TSX 源码、结构化上下文与可审阅修改的 SpotPatch 工作流。用户提到 SpotPatch、截图沟通前端修改、页面元素定位源码、Vite 或 Next.js 接入、组件数据链路、结构化 Prompt、AI 补丁审阅、安装检查或故障排查时使用此技能。
vana-com/personal-server
Comprehensive guidance on setting up npm libraries with package.json, with a preference for ES Modules (ESM).
elirantutia/vibeyard
This skill MUST be used whenever the task involves UI development, renderer code changes, adding or modifying components, creating modals or dialogs, working with CSS styles, building new UI…
Works with
Categories
This skill MUST be used whenever the task involves adding, installing, or upgrading an npm package/library/dependency in this project. Add npm Dependency is an agent skill from elirantutia/vibeyard. This skill MUST be used whenever the task involves adding, installing, or upgrading an npm package/library/dependency in this project.
Add npm Dependency fits situations like: the user asks to add a library; install <package; add a dependency; bump/upgrade a package.
Run `npx skills add elirantutia/vibeyard --skill add-npm-dependency -a claude-code`. Or copy the skill folder (.claude/skills/add-npm-dependency in elirantutia/vibeyard) into .claude/skills/add-npm-dependency in your project. Claude Code loads it when a task matches its description.
Run `npx skills add elirantutia/vibeyard --skill add-npm-dependency -a codex`. Or copy the skill folder (.claude/skills/add-npm-dependency in elirantutia/vibeyard) into .agents/skills/add-npm-dependency in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add elirantutia/vibeyard --skill add-npm-dependency -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-npm-dependency, .gemini/skills/add-npm-dependency, .github/skills/add-npm-dependency and .opencode/skills/add-npm-dependency in your project.
Going by SKILL.md and its folder, Add npm Dependency needs the command-line tools its instructions call (npm and nvm). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add npm Dependency is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add npm Dependency: Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars), Vuetify Skilld (logue/vite-vuetify-ts-starter, 181 stars), Compare Array Bundle Size (PostHog/posthog-js, 634 stars) and Reduce Bundle Size (kcsujeet/ilamy-calendar, 351 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
elirantutia (a GitHub user) maintains it in elirantutia/vibeyard, which has 1,388 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 3, 2026.
Source: elirantutia/vibeyard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.