skilld 1.6.2 → 1.7.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.
Files changed (73) hide show
  1. package/README.md +29 -20
  2. package/dist/_chunks/agent.mjs +2 -1
  3. package/dist/_chunks/agent.mjs.map +1 -1
  4. package/dist/_chunks/assemble.mjs +1 -1
  5. package/dist/_chunks/author-group.mjs +17 -0
  6. package/dist/_chunks/author-group.mjs.map +1 -0
  7. package/dist/_chunks/author.mjs +8 -6
  8. package/dist/_chunks/author.mjs.map +1 -1
  9. package/dist/_chunks/cache.mjs +1 -1
  10. package/dist/_chunks/cache2.mjs +1 -1
  11. package/dist/_chunks/cli-helpers.mjs +3 -119
  12. package/dist/_chunks/cli-helpers.mjs.map +1 -1
  13. package/dist/_chunks/config.mjs +119 -27
  14. package/dist/_chunks/config.mjs.map +1 -1
  15. package/dist/_chunks/core.mjs +1 -1
  16. package/dist/_chunks/embedding-cache2.mjs +1 -1
  17. package/dist/_chunks/index.d.mts.map +1 -1
  18. package/dist/_chunks/index3.d.mts +79 -78
  19. package/dist/_chunks/index3.d.mts.map +1 -1
  20. package/dist/_chunks/install.mjs +85 -535
  21. package/dist/_chunks/install.mjs.map +1 -1
  22. package/dist/_chunks/install2.mjs +554 -0
  23. package/dist/_chunks/install2.mjs.map +1 -0
  24. package/dist/_chunks/lockfile.mjs +1 -0
  25. package/dist/_chunks/lockfile.mjs.map +1 -1
  26. package/dist/_chunks/package-registry.mjs +465 -0
  27. package/dist/_chunks/package-registry.mjs.map +1 -0
  28. package/dist/_chunks/prefix.mjs +108 -0
  29. package/dist/_chunks/prefix.mjs.map +1 -0
  30. package/dist/_chunks/prepare.mjs +6 -2
  31. package/dist/_chunks/prepare.mjs.map +1 -1
  32. package/dist/_chunks/prepare2.mjs +1 -1
  33. package/dist/_chunks/prompts.mjs +5 -99
  34. package/dist/_chunks/prompts.mjs.map +1 -1
  35. package/dist/_chunks/search-helpers.mjs +99 -0
  36. package/dist/_chunks/search-helpers.mjs.map +1 -0
  37. package/dist/_chunks/search-interactive.mjs +1 -1
  38. package/dist/_chunks/search-interactive.mjs.map +1 -1
  39. package/dist/_chunks/search.mjs +219 -1
  40. package/dist/_chunks/search.mjs.map +1 -0
  41. package/dist/_chunks/shared.mjs +1 -463
  42. package/dist/_chunks/shared.mjs.map +1 -1
  43. package/dist/_chunks/skills.mjs +1 -1
  44. package/dist/_chunks/sources.mjs +1177 -988
  45. package/dist/_chunks/sources.mjs.map +1 -1
  46. package/dist/_chunks/sync-registry.mjs +59 -0
  47. package/dist/_chunks/sync-registry.mjs.map +1 -0
  48. package/dist/_chunks/sync-shared2.mjs +10 -7
  49. package/dist/_chunks/sync-shared2.mjs.map +1 -1
  50. package/dist/_chunks/sync.mjs +208 -99
  51. package/dist/_chunks/sync.mjs.map +1 -1
  52. package/dist/_chunks/sync2.mjs +1 -1
  53. package/dist/_chunks/uninstall.mjs +3 -2
  54. package/dist/_chunks/uninstall.mjs.map +1 -1
  55. package/dist/_chunks/upload.mjs +152 -0
  56. package/dist/_chunks/upload.mjs.map +1 -0
  57. package/dist/_chunks/validate.mjs +1 -1
  58. package/dist/_chunks/version.mjs +30 -0
  59. package/dist/_chunks/version.mjs.map +1 -0
  60. package/dist/_chunks/wizard.mjs +2 -1
  61. package/dist/_chunks/wizard.mjs.map +1 -1
  62. package/dist/agent/index.mjs +2 -1
  63. package/dist/cache/index.mjs +1 -1
  64. package/dist/cli.mjs +48 -20
  65. package/dist/cli.mjs.map +1 -1
  66. package/dist/index.d.mts +1 -1
  67. package/dist/index.mjs +2 -2
  68. package/dist/sources/index.d.mts +2 -2
  69. package/dist/sources/index.mjs +3 -3
  70. package/dist/types.d.mts +1 -1
  71. package/package.json +11 -12
  72. package/dist/_chunks/search2.mjs +0 -310
  73. 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 <pkg...>` | Add skills for package(s), space or comma-separated |
184
- | `skilld update [pkg]` | Update outdated skills (all or specific) |
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 eject <pkg>` | Eject skill as portable directory (no symlinks) |
194
- | `skilld assemble [dir]` | Merge LLM output files back into SKILL.md (auto-discovers) |
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
 
@@ -3,7 +3,8 @@ import { n as sanitizeMarkdown } from "./sanitize.mjs";
3
3
  import { h as writeSections, m as readCachedSection } from "./cache.mjs";
4
4
  import { i as resolveSkilldCommand } from "./shared.mjs";
5
5
  import { a as targets, t as detectInstalledAgents } from "./detect.mjs";
6
- import { c as SECTION_OUTPUT_FILES, f as getSectionValidator, l as buildAllSectionPrompts, m as wrapSection, s as SECTION_MERGE_ORDER } from "./prompts.mjs";
6
+ import { i as buildAllSectionPrompts, l as wrapSection, n as SECTION_MERGE_ORDER, r as SECTION_OUTPUT_FILES, s as getSectionValidator } from "./prompts.mjs";
7
+ import "./install.mjs";
7
8
  import { t as Type } from "./libs/@sinclair/typebox.mjs";
8
9
  import { homedir } from "node:os";
9
10
  import { dirname, join } from "pathe";