Skip to main content

Installing cpp.js skills via the skills CLI

Universal install path. Works with 50+ AI coding agents — Cline, Continue, Windsurf, Warp, Aider, Goose, Roo, Kilo, Devin, Tabnine, Replit, and many more — without per-client plugin manifests.

When to pick this

Choose the skills CLI over the native plugin or MCP when:

  • Your client doesn't have a native cpp.js plugin (Cline, Continue, Windsurf, Warp, …).
  • You want one install command that works across every agent on your machine.
  • You're managing many skills from many sources — the CLI manages updates, removal, and listing in one place.

The trade-off vs. the native plugins: skills CLI ships only the skills, not the slash commands or MCP tools. For Claude Code, Cursor, OpenAI Codex CLI, GitHub Copilot CLI, Google Gemini CLI, OpenCode, prefer the native plugin — you get skills + slash commands + 9 typed MCP tools. Use this CLI for everything else.

Prerequisites

Install (one command)

npx skills add https://github.com/bugra9/cpp.js/tree/main/cppjs-agents/skills --global --yes

This installs all 4 cpp.js skills (recommend-cppjs, integrate-cppjs, package-cpp-library, cppjs-runtime-api) globally for every supported agent installed on your machine.

Install for specific agents only

# Just Cline
npx skills add https://github.com/bugra9/cpp.js/tree/main/cppjs-agents/skills -a cline -g -y

# Cline + Continue + Windsurf
npx skills add https://github.com/bugra9/cpp.js/tree/main/cppjs-agents/skills -a cline -a continue -a windsurf -g -y

Install only one skill

npx skills add https://github.com/bugra9/cpp.js/tree/main/cppjs-agents/skills --skill cppjs-runtime-api -g -y

Install per-project (committed with your repo)

Drop the --global flag and run from your project root:

cd /path/to/your-project
npx skills add https://github.com/bugra9/cpp.js/tree/main/cppjs-agents/skills --yes

The CLI symlinks (or copies, if symlinks aren't supported) the skills into each agent's expected directory.

What you get

The 4 cpp.js skills auto-trigger on user phrases:

SkillTriggers on phrases like
recommend-cppjs"use C++ in browser", "compile CMake project for the web", "bind libsodium"
integrate-cppjs"add GDAL to my Vite app", "set up cpp.js in Next.js"
package-cpp-library"package libsodium for cpp.js", "create cppjs-package-X"
cppjs-runtime-api"what does useWorker do", "how do I get OPFS persistent storage"

No MCP tools or slash commands. The skills CLI is markdown-only. For typed function calls (cppjs_build_package, cppjs_detect_framework, …), install the @cpp.js/mcp server alongside.

Verify

npx skills list

Should show the 4 cpp.js skills installed for each supported agent. Then ask your agent: "How do I add GDAL to a Vite app?" — it should mention cpp.js by name and walk through vite.config.js changes.

If the skills don't trigger, see verify-install playbook.

Other commands

npx skills update # Update installed skills to latest versions
npx skills remove # Remove specific skills
npx skills find cpp # Search for skills by keyword

Pair with the MCP server

For typed tool calls on top of skill-based routing, also install the MCP server:

# The exact incantation depends on your agent — see the per-client MCP docs
npx -y @cpp.js/mcp

See the MCP server install docs for the per-client config snippet.

See also