skilld 1.6.2 → 1.7.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 +29 -20
- package/dist/_chunks/agent.mjs +14 -4
- package/dist/_chunks/agent.mjs.map +1 -1
- package/dist/_chunks/assemble.mjs +1 -1
- package/dist/_chunks/author-group.mjs +17 -0
- package/dist/_chunks/author-group.mjs.map +1 -0
- package/dist/_chunks/author.mjs +11 -12
- package/dist/_chunks/author.mjs.map +1 -1
- package/dist/_chunks/cache.mjs +12 -2
- package/dist/_chunks/cache.mjs.map +1 -1
- package/dist/_chunks/cache2.mjs +1 -1
- package/dist/_chunks/cli-helpers.mjs +4 -120
- package/dist/_chunks/cli-helpers.mjs.map +1 -1
- package/dist/_chunks/config.mjs +119 -27
- package/dist/_chunks/config.mjs.map +1 -1
- package/dist/_chunks/core.mjs +2 -2
- package/dist/_chunks/embedding-cache2.mjs +1 -1
- package/dist/_chunks/index.d.mts +4 -1
- package/dist/_chunks/index.d.mts.map +1 -1
- package/dist/_chunks/index3.d.mts +81 -78
- package/dist/_chunks/index3.d.mts.map +1 -1
- package/dist/_chunks/install.mjs +22 -34
- package/dist/_chunks/install.mjs.map +1 -1
- package/dist/_chunks/list.mjs +1 -1
- package/dist/_chunks/lockfile.mjs +5 -1
- package/dist/_chunks/lockfile.mjs.map +1 -1
- package/dist/_chunks/prefix.mjs +108 -0
- package/dist/_chunks/prefix.mjs.map +1 -0
- package/dist/_chunks/prepare.mjs +6 -2
- package/dist/_chunks/prepare.mjs.map +1 -1
- package/dist/_chunks/prepare2.mjs +4 -4
- package/dist/_chunks/prepare2.mjs.map +1 -1
- package/dist/_chunks/prompts.mjs +4 -237
- package/dist/_chunks/prompts.mjs.map +1 -1
- package/dist/_chunks/search-helpers.mjs +99 -0
- package/dist/_chunks/search-helpers.mjs.map +1 -0
- package/dist/_chunks/search-interactive.mjs +2 -2
- package/dist/_chunks/search-interactive.mjs.map +1 -1
- package/dist/_chunks/search.mjs +219 -1
- package/dist/_chunks/search.mjs.map +1 -0
- package/dist/_chunks/skill.mjs +329 -0
- package/dist/_chunks/skill.mjs.map +1 -0
- package/dist/_chunks/skills.mjs +2 -2
- package/dist/_chunks/sources.mjs +1180 -987
- package/dist/_chunks/sources.mjs.map +1 -1
- package/dist/_chunks/sync-registry.mjs +59 -0
- package/dist/_chunks/sync-registry.mjs.map +1 -0
- package/dist/_chunks/sync-shared2.mjs +14 -12
- package/dist/_chunks/sync-shared2.mjs.map +1 -1
- package/dist/_chunks/sync.mjs +253 -158
- package/dist/_chunks/sync.mjs.map +1 -1
- package/dist/_chunks/sync2.mjs +1 -1
- package/dist/_chunks/uninstall.mjs +5 -4
- package/dist/_chunks/uninstall.mjs.map +1 -1
- package/dist/_chunks/upload.mjs +152 -0
- package/dist/_chunks/upload.mjs.map +1 -0
- package/dist/_chunks/validate.mjs +1 -1
- package/dist/_chunks/version.mjs +30 -0
- package/dist/_chunks/version.mjs.map +1 -0
- package/dist/_chunks/wizard.mjs +3 -2
- package/dist/_chunks/wizard.mjs.map +1 -1
- package/dist/agent/index.d.mts +3 -1
- package/dist/agent/index.d.mts.map +1 -1
- package/dist/agent/index.mjs +4 -3
- package/dist/cache/index.d.mts +2 -2
- package/dist/cache/index.mjs +3 -3
- package/dist/cli.mjs +48 -21
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/prepare.mjs +1 -1
- package/dist/sources/index.d.mts +2 -2
- package/dist/sources/index.mjs +2 -2
- package/dist/types.d.mts +2 -2
- package/package.json +12 -12
- package/dist/THIRD-PARTY-LICENSES.md +0 -38
- package/dist/_chunks/formatting.mjs +0 -82
- package/dist/_chunks/formatting.mjs.map +0 -1
- package/dist/_chunks/libs/@sinclair/typebox.mjs +0 -2304
- package/dist/_chunks/libs/@sinclair/typebox.mjs.map +0 -1
- package/dist/_chunks/rolldown-runtime.mjs +0 -11
- package/dist/_chunks/search2.mjs +0 -310
- package/dist/_chunks/search2.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ __Requires Node 22.6.0 or higher.__
|
|
|
51
51
|
Or add a specific package directly:
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
npx -y skilld add vue
|
|
54
|
+
npx -y skilld add npm:vue
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
If you need to re-configure skilld, just run `npx -y skilld config` to update your agent, model, or preferences.
|
|
@@ -59,10 +59,10 @@ If you need to re-configure skilld, just run `npx -y skilld config` to update yo
|
|
|
59
59
|
**No agent CLI?** No problem - choose "No agent" when prompted. You get a base skill immediately, plus portable prompts you can run in any LLM:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
npx -y skilld add vue
|
|
62
|
+
npx -y skilld add npm:vue
|
|
63
63
|
# Choose "No agent" -> base skill + prompts exported
|
|
64
64
|
# Paste prompts into ChatGPT/Claude web, save outputs, then:
|
|
65
|
-
npx -y skilld assemble
|
|
65
|
+
npx -y skilld author assemble
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
### Tips
|
|
@@ -143,8 +143,14 @@ Yes. Add `skilld prepare` to your prepare script. It restores references, auto-i
|
|
|
143
143
|
# Interactive mode - auto-discover from package.json
|
|
144
144
|
skilld
|
|
145
145
|
|
|
146
|
-
# Add skills for specific package(s)
|
|
147
|
-
skilld add vue nuxt pinia
|
|
146
|
+
# Add skills for specific package(s) — npm: prefix for registry packages
|
|
147
|
+
skilld add npm:vue npm:nuxt npm:pinia
|
|
148
|
+
|
|
149
|
+
# Add a pre-authored skill from a GitHub repo
|
|
150
|
+
skilld add gh:vercel-labs/agent-skills
|
|
151
|
+
|
|
152
|
+
# Add a skill for a Rust crate (crates.io)
|
|
153
|
+
skilld add crate:serde
|
|
148
154
|
|
|
149
155
|
# Update outdated skills
|
|
150
156
|
skilld update
|
|
@@ -156,13 +162,13 @@ skilld search "error" -p nuxt --filter '{"type":"issue"}'
|
|
|
156
162
|
skilld search --guide -p nuxt
|
|
157
163
|
|
|
158
164
|
# Target a specific agent
|
|
159
|
-
skilld add react --agent cursor
|
|
165
|
+
skilld add npm:react --agent cursor
|
|
160
166
|
|
|
161
167
|
# Install globally to ~/.claude/skills
|
|
162
|
-
skilld add zod --global
|
|
168
|
+
skilld add npm:zod --global
|
|
163
169
|
|
|
164
170
|
# Skip prompts
|
|
165
|
-
skilld add drizzle-orm --yes
|
|
171
|
+
skilld add npm:drizzle-orm --yes
|
|
166
172
|
|
|
167
173
|
# Check skill info
|
|
168
174
|
skilld info
|
|
@@ -180,8 +186,8 @@ skilld config
|
|
|
180
186
|
| Command | Description |
|
|
181
187
|
|---------|-------------|
|
|
182
188
|
| `skilld` | Interactive wizard (first run) or status menu (existing skills) |
|
|
183
|
-
| `skilld add <
|
|
184
|
-
| `skilld update [pkg]`
|
|
189
|
+
| `skilld add <source...>` | Add skills. Sources: `npm:<pkg>`, `crate:<name>`, `gh:<owner/repo>`, or bare names (deprecated) |
|
|
190
|
+
| `skilld update [pkg]` | Update outdated skills (all or specific) |
|
|
185
191
|
| `skilld search [query]` | Search indexed docs (`-p` package, `--filter` JSON, `--limit`, `--guide`) |
|
|
186
192
|
| `skilld list` | List installed skills (`--json` for machine-readable output) |
|
|
187
193
|
| `skilld info` | Show skill info and config |
|
|
@@ -190,15 +196,18 @@ skilld config
|
|
|
190
196
|
| `skilld remove` | Remove installed skills |
|
|
191
197
|
| `skilld uninstall` | Remove all skilld data |
|
|
192
198
|
| `skilld cache` | Cache management (clean expired LLM cache entries) |
|
|
193
|
-
| `skilld
|
|
194
|
-
| `skilld
|
|
199
|
+
| `skilld author package <pkg>` | Generate a portable package skill from docs |
|
|
200
|
+
| `skilld author publish` | Publish skills to skilld.dev |
|
|
201
|
+
| `skilld author eject <pkg>` | Eject skill as portable directory (no symlinks) |
|
|
202
|
+
| `skilld author validate <file>`| Validate a skill section |
|
|
203
|
+
| `skilld author assemble [dir]` | Merge LLM output files back into SKILL.md (auto-discovers) |
|
|
195
204
|
|
|
196
205
|
### Works Without an Agent CLI
|
|
197
206
|
|
|
198
207
|
No Claude, Gemini, or Codex CLI? Choose "No agent" when prompted. You get a base skill immediately, plus portable prompts you can run in any LLM to enhance it:
|
|
199
208
|
|
|
200
209
|
```bash
|
|
201
|
-
skilld add vue
|
|
210
|
+
skilld add npm:vue
|
|
202
211
|
# Choose "No agent" -> installs to .claude/skills/vue-skilld/
|
|
203
212
|
|
|
204
213
|
# What you get:
|
|
@@ -208,23 +217,23 @@ skilld add vue
|
|
|
208
217
|
|
|
209
218
|
# Run each PROMPT_*.md in ChatGPT/Claude web/any LLM
|
|
210
219
|
# Save outputs as _BEST_PRACTICES.md, _API_CHANGES.md, then:
|
|
211
|
-
skilld assemble
|
|
220
|
+
skilld author assemble
|
|
212
221
|
```
|
|
213
222
|
|
|
214
|
-
`skilld assemble` auto-discovers skills with pending output files. `skilld update` re-exports prompts for outdated packages.
|
|
223
|
+
`skilld author assemble` auto-discovers skills with pending output files. `skilld update` re-exports prompts for outdated packages.
|
|
215
224
|
|
|
216
225
|
### Eject
|
|
217
226
|
|
|
218
227
|
Export a skill as a portable, self-contained directory for sharing via git repos:
|
|
219
228
|
|
|
220
229
|
```bash
|
|
221
|
-
skilld eject vue # Default skill directory
|
|
222
|
-
skilld eject vue --name vue # Custom directory name
|
|
223
|
-
skilld eject vue --out ./skills/ # Custom path
|
|
224
|
-
skilld eject vue --from 2025-07-01 # Only recent releases/issues
|
|
230
|
+
skilld author eject vue # Default skill directory
|
|
231
|
+
skilld author eject vue --name vue # Custom directory name
|
|
232
|
+
skilld author eject vue --out ./skills/ # Custom path
|
|
233
|
+
skilld author eject vue --from 2025-07-01 # Only recent releases/issues
|
|
225
234
|
```
|
|
226
235
|
|
|
227
|
-
Share via `skilld add owner/repo` - consumers get fully functional skills with no LLM cost.
|
|
236
|
+
Share via `skilld add gh:owner/repo` - consumers get fully functional skills with no LLM cost.
|
|
228
237
|
|
|
229
238
|
### CLI Options
|
|
230
239
|
|
package/dist/_chunks/agent.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime.mjs";
|
|
2
1
|
import { n as sanitizeMarkdown } from "./sanitize.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { _ as writeSections, g as readCachedSection } from "./cache.mjs";
|
|
4
3
|
import { i as resolveSkilldCommand } from "./shared.mjs";
|
|
5
4
|
import { a as targets, t as detectInstalledAgents } from "./detect.mjs";
|
|
6
|
-
import { c as
|
|
7
|
-
import
|
|
5
|
+
import { c as wrapSection, n as SECTION_OUTPUT_FILES, o as getSectionValidator, r as buildAllSectionPrompts, t as SECTION_MERGE_ORDER } from "./prompts.mjs";
|
|
6
|
+
import "./skill.mjs";
|
|
8
7
|
import { homedir } from "node:os";
|
|
9
8
|
import { dirname, join } from "pathe";
|
|
10
9
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -18,8 +17,19 @@ import { promisify } from "node:util";
|
|
|
18
17
|
import { resolve as resolve$1 } from "node:path";
|
|
19
18
|
import { getEnvApiKey, getModel, getModels, getProviders, streamSimple } from "@mariozechner/pi-ai";
|
|
20
19
|
import { getOAuthApiKey, getOAuthProvider, getOAuthProviders } from "@mariozechner/pi-ai/oauth";
|
|
20
|
+
import { Type } from "typebox";
|
|
21
21
|
import { readFile } from "node:fs/promises";
|
|
22
22
|
import { parseSync } from "oxc-parser";
|
|
23
|
+
var __defProp = Object.defineProperty;
|
|
24
|
+
var __exportAll = (all, no_symbols) => {
|
|
25
|
+
let target = {};
|
|
26
|
+
for (var name in all) __defProp(target, name, {
|
|
27
|
+
get: all[name],
|
|
28
|
+
enumerable: true
|
|
29
|
+
});
|
|
30
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
23
33
|
var claude_exports = /* @__PURE__ */ __exportAll({
|
|
24
34
|
agentId: () => agentId$2,
|
|
25
35
|
buildArgs: () => buildArgs$2,
|