skilldb 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -40
- package/dist/cli.js +1111 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
CLI and TypeScript SDK for [SkillDB](https://skilldb.dev) — discover, install, and manage AI agent skills from the terminal.
|
|
4
4
|
|
|
5
|
+
5,000+ expert skills for Claude Code, Cursor, OpenClaw, and Codex. Search, install, and activate exactly what your agent needs.
|
|
6
|
+
|
|
5
7
|
## Quick Start
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
# Search for skills
|
|
10
|
+
# Search for skills (with inline preview)
|
|
9
11
|
npx skilldb search "code review"
|
|
10
12
|
|
|
11
13
|
# Install a skill pack
|
|
12
14
|
npx skilldb add software-skills
|
|
13
15
|
|
|
14
|
-
#
|
|
15
|
-
npx skilldb
|
|
16
|
+
# Activate a smart profile (only loads what you need)
|
|
17
|
+
npx skilldb use frontend
|
|
18
|
+
|
|
19
|
+
# Or auto-detect from your project
|
|
20
|
+
npx skilldb use auto
|
|
16
21
|
```
|
|
17
22
|
|
|
18
23
|
## Install
|
|
@@ -23,19 +28,36 @@ npm install -g skilldb
|
|
|
23
28
|
|
|
24
29
|
Or use `npx skilldb` without installing.
|
|
25
30
|
|
|
31
|
+
## The Memory Problem (And How We Solve It)
|
|
32
|
+
|
|
33
|
+
Loading 500 skills into your agent's context is worse than loading the right 5. SkillDB uses a **3-layer architecture** to manage this:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
.skilldb/
|
|
37
|
+
├── skills/ ← Full cache (everything downloaded)
|
|
38
|
+
├── active/ ← Active profile (what your agent sees — 5-15 focused skills)
|
|
39
|
+
├── slim/ ← Compressed cheat sheets (10x smaller)
|
|
40
|
+
├── config.json ← Profile + budget settings
|
|
41
|
+
└── manifest.json ← What's installed
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Your CLAUDE.md or .cursorrules points at `.skilldb/active/`, not the full cache. The agent gets focused, relevant skills — not noise.
|
|
45
|
+
|
|
26
46
|
## CLI Commands
|
|
27
47
|
|
|
28
|
-
###
|
|
48
|
+
### Core
|
|
29
49
|
|
|
30
|
-
|
|
50
|
+
#### `skilldb init`
|
|
51
|
+
|
|
52
|
+
Detect your IDE (Claude Code, Cursor, Codex CLI, OpenClaw), create `.skilldb/`, and add integration config.
|
|
31
53
|
|
|
32
54
|
```bash
|
|
33
55
|
skilldb init
|
|
34
56
|
```
|
|
35
57
|
|
|
36
|
-
|
|
58
|
+
#### `skilldb search <query>`
|
|
37
59
|
|
|
38
|
-
Search skills by keyword.
|
|
60
|
+
Search skills by keyword. Shows inline slim preview so you know what you're getting before downloading.
|
|
39
61
|
|
|
40
62
|
```bash
|
|
41
63
|
skilldb search "debugging"
|
|
@@ -43,7 +65,33 @@ skilldb search "api design" --category "Technology & Engineering"
|
|
|
43
65
|
skilldb search "testing" --limit 10
|
|
44
66
|
```
|
|
45
67
|
|
|
46
|
-
|
|
68
|
+
#### `skilldb add <pack>`
|
|
69
|
+
|
|
70
|
+
Download a skill pack to local cache. Idempotent — skips already-cached skills.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
skilldb add software-skills
|
|
74
|
+
skilldb add autonomous-agent-skills
|
|
75
|
+
skilldb add vibe-coding-security-skills
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### `skilldb get <id>`
|
|
79
|
+
|
|
80
|
+
Download a single skill.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
skilldb get software-skills/code-review
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### `skilldb info <id>`
|
|
87
|
+
|
|
88
|
+
Show metadata, slim summary, and full preview for a skill.
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
skilldb info software-skills/code-review
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### `skilldb list`
|
|
47
95
|
|
|
48
96
|
List available categories, packs, and skills.
|
|
49
97
|
|
|
@@ -53,33 +101,128 @@ skilldb list --category "Autonomous Agents"
|
|
|
53
101
|
skilldb list --pack software-skills
|
|
54
102
|
```
|
|
55
103
|
|
|
56
|
-
|
|
104
|
+
#### `skilldb login`
|
|
57
105
|
|
|
58
|
-
|
|
106
|
+
Save your API key for authenticated access.
|
|
59
107
|
|
|
60
108
|
```bash
|
|
61
|
-
skilldb
|
|
62
|
-
skilldb add autonomous-agent-skills
|
|
109
|
+
skilldb login
|
|
63
110
|
```
|
|
64
111
|
|
|
65
|
-
###
|
|
112
|
+
### Smart Loading
|
|
66
113
|
|
|
67
|
-
|
|
114
|
+
#### `skilldb use <profile>`
|
|
115
|
+
|
|
116
|
+
Activate a focused profile — only loads relevant skills into `.skilldb/active/`.
|
|
68
117
|
|
|
69
118
|
```bash
|
|
70
|
-
skilldb
|
|
71
|
-
skilldb
|
|
119
|
+
skilldb use frontend # React, testing, web-polish, accessibility
|
|
120
|
+
skilldb use backend # API design, databases, security, performance
|
|
121
|
+
skilldb use devops # Kubernetes, Docker, CI/CD, monitoring
|
|
122
|
+
skilldb use security # Trust audit, input validation, credentials
|
|
123
|
+
skilldb use data # SQL, pipelines, analytics, visualization
|
|
124
|
+
skilldb use fullstack # Frontend + backend combined
|
|
125
|
+
skilldb use ai-agent # Autonomous agent meta-skills
|
|
126
|
+
skilldb use auto # Auto-detect from your project files
|
|
127
|
+
skilldb use --list # Show available profiles
|
|
128
|
+
skilldb use --current # Show active profile
|
|
129
|
+
skilldb use none # Deactivate (clear active/)
|
|
72
130
|
```
|
|
73
131
|
|
|
74
|
-
|
|
132
|
+
`auto` mode scans your `package.json`, file extensions, and imports to recommend the right profile.
|
|
133
|
+
|
|
134
|
+
#### `skilldb budget`
|
|
75
135
|
|
|
76
|
-
|
|
136
|
+
Set a maximum context budget so your agent doesn't get overloaded.
|
|
77
137
|
|
|
78
138
|
```bash
|
|
79
|
-
skilldb
|
|
139
|
+
skilldb budget # Show current usage
|
|
140
|
+
skilldb budget set 5000 # Max 5,000 lines
|
|
141
|
+
skilldb budget set 50k # Max 50,000 tokens
|
|
142
|
+
skilldb budget optimize # Re-rank and trim active skills to fit
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
#### `skilldb slim`
|
|
146
|
+
|
|
147
|
+
Generate compressed cheat-sheet versions of skills (~30 lines instead of 300).
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
skilldb slim # Slim all active skills
|
|
151
|
+
skilldb slim software-skills # Slim a specific pack
|
|
152
|
+
skilldb slim --ratio 0.3 # Keep 30% of content
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Management
|
|
156
|
+
|
|
157
|
+
#### `skilldb update`
|
|
158
|
+
|
|
159
|
+
Check for newer versions of installed skills and update them.
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
skilldb update # Update everything
|
|
163
|
+
skilldb update software-skills # Update one pack
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### `skilldb remove`
|
|
167
|
+
|
|
168
|
+
Uninstall skills from local cache.
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
skilldb remove software-skills/code-review # Remove single skill
|
|
172
|
+
skilldb remove software-skills # Remove entire pack
|
|
173
|
+
skilldb remove --unused # Remove skills not in active profile
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### `skilldb doctor`
|
|
177
|
+
|
|
178
|
+
Health check and audit of your skill setup.
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
skilldb doctor
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Shows: outdated skills, unused skills, missing dependencies, budget status, coverage gaps.
|
|
185
|
+
|
|
186
|
+
#### `skilldb stats`
|
|
187
|
+
|
|
188
|
+
Local statistics dashboard.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
skilldb stats
|
|
80
192
|
```
|
|
81
193
|
|
|
82
|
-
|
|
194
|
+
Shows: installed count, total lines, tokens, active profile, categories covered.
|
|
195
|
+
|
|
196
|
+
#### `skilldb diff <id>`
|
|
197
|
+
|
|
198
|
+
Compare your local (possibly customized) version with the latest remote.
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
skilldb diff software-skills/code-review
|
|
202
|
+
skilldb diff # Diff all installed
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Sharing & Export
|
|
206
|
+
|
|
207
|
+
#### `skilldb export`
|
|
208
|
+
|
|
209
|
+
Export your setup for sharing or IDE integration.
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
skilldb export claude # CLAUDE.md snippet with skill references
|
|
213
|
+
skilldb export cursor # .cursorrules block
|
|
214
|
+
skilldb export profile # Shareable .skilldb-profile.json
|
|
215
|
+
skilldb export inject <id> # Print skill to stdout (for piping)
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
#### `skilldb recommend`
|
|
219
|
+
|
|
220
|
+
Scan your project and get personalized skill recommendations.
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
skilldb recommend # Analyze project and suggest
|
|
224
|
+
skilldb recommend --install # Auto-install recommendations
|
|
225
|
+
```
|
|
83
226
|
|
|
84
227
|
## SDK Usage
|
|
85
228
|
|
|
@@ -88,13 +231,16 @@ import { createClient } from 'skilldb';
|
|
|
88
231
|
|
|
89
232
|
const db = createClient(); // auto-loads key from env/config
|
|
90
233
|
|
|
91
|
-
// Search
|
|
234
|
+
// Search with slim previews
|
|
92
235
|
const results = await db.search('code review');
|
|
93
|
-
|
|
236
|
+
for (const skill of results.skills) {
|
|
237
|
+
console.log(skill.title);
|
|
238
|
+
console.log(skill.slim); // Quick summary
|
|
239
|
+
}
|
|
94
240
|
|
|
95
|
-
// Get
|
|
241
|
+
// Get full skill content
|
|
96
242
|
const skill = await db.get('software-skills/code-review.md');
|
|
97
|
-
console.log(skill.
|
|
243
|
+
console.log(skill.content);
|
|
98
244
|
|
|
99
245
|
// List with filters
|
|
100
246
|
const listing = await db.list({ category: 'Autonomous Agents', limit: 10 });
|
|
@@ -102,30 +248,28 @@ const listing = await db.list({ category: 'Autonomous Agents', limit: 10 });
|
|
|
102
248
|
|
|
103
249
|
## Authentication
|
|
104
250
|
|
|
105
|
-
The SDK and CLI resolve your API key in
|
|
251
|
+
The SDK and CLI resolve your API key in order:
|
|
106
252
|
|
|
107
253
|
1. `SKILLDB_API_KEY` environment variable (CI-friendly)
|
|
108
254
|
2. `.skilldbrc` in project root (project-specific)
|
|
109
255
|
3. `~/.skilldbrc` in home directory (user-wide)
|
|
110
256
|
|
|
111
|
-
Browsing and searching works without authentication. Full skill content requires a Pro or
|
|
112
|
-
|
|
113
|
-
## Local Cache
|
|
257
|
+
Browsing and searching works without authentication. Full skill content requires a Pro or Studio key.
|
|
114
258
|
|
|
115
|
-
|
|
259
|
+
## Profiles
|
|
116
260
|
|
|
117
|
-
|
|
118
|
-
.skilldb/
|
|
119
|
-
manifest.json
|
|
120
|
-
skills/
|
|
121
|
-
software-skills/
|
|
122
|
-
code-review.md
|
|
123
|
-
debugging.md
|
|
124
|
-
autonomous-agent-skills/
|
|
125
|
-
task-decomposition.md
|
|
126
|
-
```
|
|
261
|
+
Built-in profiles map to curated skill sets:
|
|
127
262
|
|
|
128
|
-
|
|
263
|
+
| Profile | Skills loaded | Best for |
|
|
264
|
+
|---------|--------------|----------|
|
|
265
|
+
| `frontend` | react-patterns, web-polish, testing, accessibility | React/Vue/Angular apps |
|
|
266
|
+
| `backend` | api-design, databases, security, performance | Node/Python/Go services |
|
|
267
|
+
| `devops` | kubernetes, docker, ci-cd, monitoring, cloud | Infrastructure & deployment |
|
|
268
|
+
| `security` | trust-audit, input-validation, credentials, hardening | Security review & hardening |
|
|
269
|
+
| `data` | sql, pipelines, analytics, visualization | Data engineering & analysis |
|
|
270
|
+
| `fullstack` | frontend + backend combined | Full-stack applications |
|
|
271
|
+
| `ai-agent` | autonomous-agent-skills, task-decomposition, planning | Building AI agents |
|
|
272
|
+
| `auto` | Detected from project | Any project |
|
|
129
273
|
|
|
130
274
|
## Requirements
|
|
131
275
|
|