@skillsmanager/cli 0.0.2 → 0.0.5
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/LICENSE +10 -18
- package/README.md +89 -35
- package/dist/auth.d.ts +1 -0
- package/dist/auth.js +54 -14
- package/dist/backends/gdrive.d.ts +2 -1
- package/dist/backends/gdrive.js +15 -4
- package/dist/backends/github.d.ts +27 -0
- package/dist/backends/github.js +407 -0
- package/dist/backends/interface.d.ts +2 -0
- package/dist/backends/local.d.ts +2 -0
- package/dist/backends/local.js +11 -0
- package/dist/backends/resolve.d.ts +2 -0
- package/dist/backends/resolve.js +11 -0
- package/dist/commands/add.d.ts +3 -0
- package/dist/commands/add.js +209 -7
- package/dist/commands/collection.d.ts +5 -1
- package/dist/commands/collection.js +99 -25
- package/dist/commands/fetch.js +7 -6
- package/dist/commands/list.js +5 -3
- package/dist/commands/logout.d.ts +4 -0
- package/dist/commands/logout.js +35 -0
- package/dist/commands/refresh.js +78 -25
- package/dist/commands/registry.d.ts +6 -0
- package/dist/commands/registry.js +200 -92
- package/dist/commands/setup/github.d.ts +4 -0
- package/dist/commands/setup/github.js +91 -0
- package/dist/commands/setup/google.js +82 -42
- package/dist/commands/skill.d.ts +3 -0
- package/dist/commands/skill.js +76 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +65 -0
- package/dist/commands/update.js +6 -4
- package/dist/index.js +57 -9
- package/dist/registry.js +11 -3
- package/dist/types.d.ts +1 -0
- package/dist/types.js +2 -0
- package/package.json +2 -2
- package/skills/skillsmanager/SKILL.md +49 -4
|
@@ -11,6 +11,7 @@ Skills Manager is a CLI tool for managing agent skills stored locally or in remo
|
|
|
11
11
|
|
|
12
12
|
- Local storage works out of the box — no setup needed.
|
|
13
13
|
- For Google Drive: a human must run `skillsmanager setup google` once to configure credentials.
|
|
14
|
+
- For GitHub: requires the `gh` CLI to be installed and authenticated (`gh auth login`). No additional skillsmanager setup needed.
|
|
14
15
|
- All commands except `setup google` are non-interactive and designed for agent use.
|
|
15
16
|
|
|
16
17
|
## Commands
|
|
@@ -31,7 +32,7 @@ skillsmanager fetch <name> --agent <agent> --scope project
|
|
|
31
32
|
skillsmanager list
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
Supported agents: `claude`, `codex`, `agents`, `cursor`, `windsurf`, `copilot`, `gemini`, `roo`
|
|
35
|
+
Supported agents: `claude`, `codex`, `agents`, `cursor`, `windsurf`, `copilot`, `gemini`, `roo`, `openclaw`, `antigravity`
|
|
35
36
|
|
|
36
37
|
### Share a skill
|
|
37
38
|
|
|
@@ -57,6 +58,16 @@ skillsmanager update <path> --collection <name>
|
|
|
57
58
|
|
|
58
59
|
After updating, the local cache is refreshed so all symlinks on this machine reflect the change immediately.
|
|
59
60
|
|
|
61
|
+
### Delete a skill
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Delete a skill from its collection (removes from backend, cache, and index)
|
|
65
|
+
skillsmanager skill delete <name>
|
|
66
|
+
|
|
67
|
+
# If the skill exists in multiple collections, specify which one
|
|
68
|
+
skillsmanager skill delete <name> --collection <collection-name>
|
|
69
|
+
```
|
|
70
|
+
|
|
60
71
|
### Registry and collection management
|
|
61
72
|
|
|
62
73
|
```bash
|
|
@@ -66,21 +77,37 @@ skillsmanager registry create
|
|
|
66
77
|
# Create a registry in Google Drive
|
|
67
78
|
skillsmanager registry create --backend gdrive
|
|
68
79
|
|
|
80
|
+
# Create a registry in a GitHub repo (creates repo if it doesn't exist)
|
|
81
|
+
skillsmanager registry create --backend github --repo <owner/repo>
|
|
82
|
+
|
|
69
83
|
# Show all registries and their collection references
|
|
70
84
|
skillsmanager registry list
|
|
71
85
|
|
|
72
86
|
# Search a backend for registries owned by the current user
|
|
73
87
|
skillsmanager registry discover --backend gdrive
|
|
88
|
+
skillsmanager registry discover --backend github
|
|
74
89
|
|
|
75
90
|
# Add a collection reference to the registry
|
|
76
91
|
skillsmanager registry add-collection <name>
|
|
77
92
|
|
|
78
|
-
# Push local registry and collections to Google Drive
|
|
93
|
+
# Push local registry and collections to Google Drive (safe to re-run — skips already-synced collections)
|
|
79
94
|
skillsmanager registry push --backend gdrive
|
|
80
95
|
|
|
81
|
-
#
|
|
96
|
+
# Push local registry and collections to GitHub (safe to re-run — skips already-synced collections)
|
|
97
|
+
skillsmanager registry push --backend github --repo <owner/repo>
|
|
98
|
+
|
|
99
|
+
# Remove a collection reference from the registry (keeps data)
|
|
100
|
+
skillsmanager registry remove-collection <name>
|
|
101
|
+
|
|
102
|
+
# Remove and permanently delete the collection and all its skills
|
|
103
|
+
skillsmanager registry remove-collection <name> --delete
|
|
104
|
+
|
|
105
|
+
# Create a new collection (local by default)
|
|
82
106
|
skillsmanager collection create [name]
|
|
83
107
|
|
|
108
|
+
# Create a collection in a GitHub repo
|
|
109
|
+
skillsmanager collection create [name] --backend github --repo <owner/repo>
|
|
110
|
+
|
|
84
111
|
# Re-discover collections from storage
|
|
85
112
|
skillsmanager refresh
|
|
86
113
|
```
|
|
@@ -110,6 +137,9 @@ skillsmanager uninstall
|
|
|
110
137
|
**User asks to share a skill they created:**
|
|
111
138
|
1. Ensure the skill directory has a `SKILL.md` with `name` and `description` in YAML frontmatter
|
|
112
139
|
2. `skillsmanager add <path-to-skill-directory>`
|
|
140
|
+
3. Fetch the skill to make it immediately available to the agent:
|
|
141
|
+
- For all projects: `skillsmanager fetch <skill-name> --agent claude`
|
|
142
|
+
- For current project only: `skillsmanager fetch <skill-name> --agent claude --scope project`
|
|
113
143
|
|
|
114
144
|
**User asks to update a skill:**
|
|
115
145
|
1. Edit the skill files locally
|
|
@@ -122,14 +152,29 @@ skillsmanager uninstall
|
|
|
122
152
|
1. `skillsmanager setup google` (one-time, human-only)
|
|
123
153
|
2. `skillsmanager registry push --backend gdrive`
|
|
124
154
|
|
|
155
|
+
**User wants to store skills in a GitHub repo:**
|
|
156
|
+
1. `skillsmanager collection create <name> --backend github --repo <owner/repo>` — creates the GitHub repo if needed, and auto-registers the collection in the existing registry (or creates a local registry if none exists)
|
|
157
|
+
2. `skillsmanager add <path> --collection <name>` — upload the skill into that collection
|
|
158
|
+
|
|
159
|
+
**User wants to discover GitHub-hosted collections:**
|
|
160
|
+
1. `skillsmanager registry discover --backend github`
|
|
161
|
+
|
|
125
162
|
**User wants to see what registries and collections exist:**
|
|
126
163
|
1. `skillsmanager registry list`
|
|
127
164
|
|
|
165
|
+
**User asks to delete/remove a single skill:**
|
|
166
|
+
1. `skillsmanager skill delete <skill-name>`
|
|
167
|
+
2. If the skill lives in multiple collections, add `--collection <name>` to target the right one
|
|
168
|
+
|
|
169
|
+
**User wants to remove a collection:**
|
|
170
|
+
1. `skillsmanager registry remove-collection <name>` (removes reference only, data is kept)
|
|
171
|
+
2. `skillsmanager registry remove-collection <name> --delete` (permanently deletes collection and skills)
|
|
172
|
+
|
|
128
173
|
## Architecture
|
|
129
174
|
|
|
130
175
|
- **Registry** (`SKILLS_REGISTRY.yaml`): root index pointing to all collections across backends
|
|
131
176
|
- **Collection** (`SKILLS_COLLECTION.yaml`): folder of skills with an index file
|
|
132
|
-
- **Backends**: `local` (default, `~/.skillsmanager/`)
|
|
177
|
+
- **Backends**: `local` (default, `~/.skillsmanager/`), `gdrive` (Google Drive), and `github` (GitHub repo via `gh` CLI)
|
|
133
178
|
- **Cache**: skills are cached at `~/.skillsmanager/cache/<uuid>/` and symlinked to agent directories
|
|
134
179
|
- **Symlinks**: all agents share one cached copy — updating the cache updates all agents
|
|
135
180
|
|