@@ -4,14 +4,66 @@ This guide shows you how to install CockroachDB Skills for use with Claude Code.
44
55## Prerequisites
66
7- - ** Claude Code** - [ Download and install Claude Code] ( https://claude.ai/download )
7+ ** For Option 1 (npx):**
8+ - ** Node.js 18+** - [ Download from nodejs.org] ( https://nodejs.org/ )
9+
10+ ** For manual installation (Options 2-4):**
11+ - ** Claude Code** (or another supported agent) - [ Download and install Claude Code] ( https://claude.ai/download )
812- ** Git** - For cloning the repository
913
1014## Installation Options
1115
1216Choose the approach that fits your workflow:
1317
14- ### Option 1: Project-Level Installation (Recommended for Teams)
18+ ### Option 1: Quick Install with npx (Recommended)
19+
20+ ** The easiest way to get started.** This interactive installer works with Claude Code, Cursor, Windsurf, OpenHands, and 40+ other agents.
21+
22+ ** Prerequisites:**
23+ - Node.js 18+ (for npx command)
24+
25+ ** Installation:**
26+ ``` bash
27+ npx skills add cockroachlabs/cockroachdb-skills
28+ ```
29+
30+ ** What this does:**
31+ 1 . Fetches available skills from the repository
32+ 2 . Shows you a list of all 29+ CockroachDB skills
33+ 3 . Lets you select which skills to install (or install all with ` --all ` )
34+ 4 . Detects your installed AI agents automatically
35+ 5 . Installs skills to the appropriate directories with symlinks
36+ 6 . Works project-level (default) or user-level with ` --global `
37+
38+ ** Interactive Mode:**
39+ The installer will:
40+ - Detect which agents you have installed (Claude Code, Cursor, etc.)
41+ - Let you choose which skills to install
42+ - Ask whether to install project-level or user-level
43+ - Handle all directory creation and symlinking automatically
44+
45+ ** Non-Interactive Mode:**
46+ For automated setups or CI/CD:
47+ ``` bash
48+ # Install all skills for Claude Code, skip prompts
49+ npx skills add cockroachlabs/cockroachdb-skills --agent claude-code --skill ' *' --yes
50+
51+ # Install specific skills globally
52+ npx skills add cockroachlabs/cockroachdb-skills --global --skill reviewing-cluster-health --yes
53+ ```
54+
55+ ** Supported Agents:**
56+ Works with 43+ agents including Claude Code, Cursor, Windsurf, Cline, OpenHands, Roo Code, GitHub Copilot, and more.
57+
58+ ** When to use this option:**
59+ - ✅ You want the simplest installation experience
60+ - ✅ You have Node.js installed
61+ - ✅ You want skills across multiple agents
62+ - ✅ You prefer automated setup
63+
64+ ---
65+
66+ ### Option 2: Project-Level Manual Installation
1567
1668Skills are available only within a specific project directory.
1769
@@ -31,7 +83,7 @@ mkdir -p .claude/skills
3183ln -s /path/to/cockroachdb-skills/skills .claude/skills/cockroachdb-skills
3284```
3385
34- ### Option 2 : User-Level Installation (Global Access)
86+ ### Option 3 : User-Level Manual Installation (Global Access)
3587
3688Skills are available in all Claude Code sessions, across all projects.
3789
@@ -48,7 +100,7 @@ mkdir -p ~/.claude/skills
48100ln -s /path/to/cockroachdb-skills/skills ~ /.claude/skills/cockroachdb-skills
49101```
50102
51- ### Option 3 : Direct Copy (Without Symlinks)
103+ ### Option 4 : Direct Copy (Without Symlinks)
52104
53105For environments where symbolic links aren't supported (some Windows configurations).
54106
@@ -104,6 +156,46 @@ Claude should use the `reviewing-cluster-health` skill to provide guidance.
104156
105157## Troubleshooting
106158
159+ ### npx Command Not Found
160+
161+ ** Problem:** ` npx: command not found `
162+
163+ ** Solutions:**
164+ 1 . Install Node.js 18+ from [ nodejs.org] ( https://nodejs.org/ )
165+ 2 . Verify installation: ` node --version && npx --version `
166+ 3 . Restart your terminal after installation
167+
168+ ### npx Installation Fails
169+
170+ ** Problem:** Installation fails or hangs.
171+
172+ ** Solutions:**
173+ 1 . ** Check network connectivity** - The CLI needs to fetch from GitHub
174+ 2 . ** Verify repository is public** - Ensure you can access https://github.com/cockroachlabs/cockroachdb-skills
175+ 3 . ** Try with verbose logging:**
176+ ``` bash
177+ npx skills add cockroachlabs/cockroachdb-skills --verbose
178+ ```
179+ 4 . ** Clear npm cache:**
180+ ``` bash
181+ npm cache clean --force
182+ npx skills add cockroachlabs/cockroachdb-skills
183+ ```
184+
185+ ### No Agents Detected
186+
187+ ** Problem:** npx installer says "No agents detected"
188+
189+ ** Solutions:**
190+ 1 . ** Install an AI agent first** (Claude Code, Cursor, etc.)
191+ 2 . ** Manually specify the agent:**
192+ ``` bash
193+ npx skills add cockroachlabs/cockroachdb-skills --agent claude-code
194+ ```
195+ 3 . ** Check agent-specific directories exist:**
196+ - Claude Code: ` ~/.claude/ ` or ` .claude/ `
197+ - Cursor: ` ~/.cursor/ ` or ` .cursor/ `
198+
107199### Skills Not Discovered
108200
109201** Problem:** Claude doesn't recognize the CockroachDB skills.
@@ -148,7 +240,7 @@ Claude should use the `reviewing-cluster-health` skill to provide guidance.
148240
149241** Problem:** Your environment doesn't support symbolic links.
150242
151- ** Solution:** Use [ Option 3 : Direct Copy] ( #option-3 -direct-copy-without-symlinks ) instead.
243+ ** Solution:** Use [ Option 4 : Direct Copy] ( #option-4 -direct-copy-without-symlinks ) instead.
152244
153245### Skills Appear Outdated
154246
@@ -181,7 +273,15 @@ cp -r skills ~/.claude/skills/cockroachdb-skills
181273
182274## Updating Skills
183275
184- ### With Symlinks (Options 1 & 2)
276+ ### With npx (Option 1)
277+
278+ Simply run the installation command again to get the latest skills:
279+
280+ ``` bash
281+ npx skills add cockroachlabs/cockroachdb-skills --yes
282+ ```
283+
284+ ### With Symlinks (Options 2 & 3)
185285
186286Simply pull the latest changes from the repository:
187287
@@ -192,15 +292,15 @@ git pull origin main
192292
193293The symlink ensures Claude Code automatically uses the updated skills.
194294
195- ### With Direct Copy (Option 3 )
295+ ### With Direct Copy (Option 4 )
196296
197297After pulling updates, re-copy the skills:
198298
199299``` bash
200300cd /path/to/cockroachdb-skills
201301git pull origin main
202302
203- # Then copy to your installation location (see Option 3 above)
303+ # Then copy to your installation location (see Option 4 above)
204304```
205305
206306## Uninstalling
0 commit comments