skilldb 0.1.0 → 0.1.1
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 +136 -0
- package/package.json +3 -2
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# skilldb
|
|
2
|
+
|
|
3
|
+
CLI and TypeScript SDK for [SkillDB](https://skilldb.dev) — discover, install, and manage AI agent skills from the terminal.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Search for skills
|
|
9
|
+
npx skilldb search "code review"
|
|
10
|
+
|
|
11
|
+
# Install a skill pack
|
|
12
|
+
npx skilldb add software-skills
|
|
13
|
+
|
|
14
|
+
# Initialize SkillDB in your project
|
|
15
|
+
npx skilldb init
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install -g skilldb
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or use `npx skilldb` without installing.
|
|
25
|
+
|
|
26
|
+
## CLI Commands
|
|
27
|
+
|
|
28
|
+
### `skilldb init`
|
|
29
|
+
|
|
30
|
+
Detect your IDE (Claude Code, Cursor, or Codex CLI), create a `.skilldb/` cache directory, and add an integration snippet to your config file.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
skilldb init
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### `skilldb search <query>`
|
|
37
|
+
|
|
38
|
+
Search skills by keyword.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
skilldb search "debugging"
|
|
42
|
+
skilldb search "api design" --category "Technology & Engineering"
|
|
43
|
+
skilldb search "testing" --limit 10
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### `skilldb list`
|
|
47
|
+
|
|
48
|
+
List available categories, packs, and skills.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
skilldb list
|
|
52
|
+
skilldb list --category "Autonomous Agents"
|
|
53
|
+
skilldb list --pack software-skills
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### `skilldb add <pack>`
|
|
57
|
+
|
|
58
|
+
Download a skill pack to your local `.skilldb/skills/` cache. Idempotent — skips already-cached skills.
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
skilldb add software-skills
|
|
62
|
+
skilldb add autonomous-agent-skills
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `skilldb info <id>`
|
|
66
|
+
|
|
67
|
+
Show metadata and a content preview for a single skill.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
skilldb info software-skills/code-review
|
|
71
|
+
skilldb info autonomous-agent-skills/task-decomposition
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### `skilldb login`
|
|
75
|
+
|
|
76
|
+
Save your API key for authenticated access (required for full skill content).
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
skilldb login
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Get your API key at [skilldb.dev/api-access](https://skilldb.dev/api-access).
|
|
83
|
+
|
|
84
|
+
## SDK Usage
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import { createClient } from 'skilldb';
|
|
88
|
+
|
|
89
|
+
const db = createClient(); // auto-loads key from env/config
|
|
90
|
+
|
|
91
|
+
// Search
|
|
92
|
+
const results = await db.search('code review');
|
|
93
|
+
console.log(results.skills);
|
|
94
|
+
|
|
95
|
+
// Get a single skill
|
|
96
|
+
const skill = await db.get('software-skills/code-review.md');
|
|
97
|
+
console.log(skill.title, skill.description);
|
|
98
|
+
|
|
99
|
+
// List with filters
|
|
100
|
+
const listing = await db.list({ category: 'Autonomous Agents', limit: 10 });
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Authentication
|
|
104
|
+
|
|
105
|
+
The SDK and CLI resolve your API key in this order:
|
|
106
|
+
|
|
107
|
+
1. `SKILLDB_API_KEY` environment variable (CI-friendly)
|
|
108
|
+
2. `.skilldbrc` in project root (project-specific)
|
|
109
|
+
3. `~/.skilldbrc` in home directory (user-wide)
|
|
110
|
+
|
|
111
|
+
Browsing and searching works without authentication. Full skill content requires a Pro or Enterprise key.
|
|
112
|
+
|
|
113
|
+
## Local Cache
|
|
114
|
+
|
|
115
|
+
After running `skilldb add`, skills are cached locally for zero-latency reads:
|
|
116
|
+
|
|
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
|
+
```
|
|
127
|
+
|
|
128
|
+
Add `.skilldb/` and `.skilldbrc` to your `.gitignore` (handled automatically by `skilldb init`).
|
|
129
|
+
|
|
130
|
+
## Requirements
|
|
131
|
+
|
|
132
|
+
- Node.js >= 18
|
|
133
|
+
|
|
134
|
+
## License
|
|
135
|
+
|
|
136
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilldb",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "SDK and CLI for SkillDB — discover, install, and manage AI agent skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"skilldb": "./dist/cli.js"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"dist"
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "tsup",
|