skilld 2.3.0 → 3.0.0-beta.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 +106 -376
- package/bin/skilld.mjs +56 -0
- package/loader/resolve-artifact.mjs +37 -0
- package/package.json +23 -53
- package/dist/_chunks/add.mjs +0 -95
- package/dist/_chunks/add.mjs.map +0 -1
- package/dist/_chunks/agent-prompt.mjs +0 -90
- package/dist/_chunks/agent-prompt.mjs.map +0 -1
- package/dist/_chunks/agent.mjs +0 -1817
- package/dist/_chunks/agent.mjs.map +0 -1
- package/dist/_chunks/args.mjs +0 -49
- package/dist/_chunks/args.mjs.map +0 -1
- package/dist/_chunks/assemble.mjs +0 -126
- package/dist/_chunks/assemble.mjs.map +0 -1
- package/dist/_chunks/author.mjs +0 -432
- package/dist/_chunks/author.mjs.map +0 -1
- package/dist/_chunks/cache.mjs +0 -367
- package/dist/_chunks/cache.mjs.map +0 -1
- package/dist/_chunks/cache2.mjs +0 -151
- package/dist/_chunks/cache2.mjs.map +0 -1
- package/dist/_chunks/changes-digest.mjs +0 -49
- package/dist/_chunks/changes-digest.mjs.map +0 -1
- package/dist/_chunks/changes.mjs +0 -23
- package/dist/_chunks/changes.mjs.map +0 -1
- package/dist/_chunks/client.mjs +0 -182
- package/dist/_chunks/client.mjs.map +0 -1
- package/dist/_chunks/core.mjs +0 -13
- package/dist/_chunks/detect.mjs +0 -614
- package/dist/_chunks/detect.mjs.map +0 -1
- package/dist/_chunks/detect2.mjs +0 -2
- package/dist/_chunks/eject.mjs +0 -69
- package/dist/_chunks/eject.mjs.map +0 -1
- package/dist/_chunks/embedding-cache.mjs +0 -2
- package/dist/_chunks/embedding-cache2.mjs +0 -61
- package/dist/_chunks/embedding-cache2.mjs.map +0 -1
- package/dist/_chunks/env.mjs +0 -19
- package/dist/_chunks/env.mjs.map +0 -1
- package/dist/_chunks/index-identity.mjs +0 -365
- package/dist/_chunks/index-identity.mjs.map +0 -1
- package/dist/_chunks/index-identity2.mjs +0 -2
- package/dist/_chunks/install-many.mjs +0 -542
- package/dist/_chunks/install-many.mjs.map +0 -1
- package/dist/_chunks/install.mjs +0 -259
- package/dist/_chunks/install.mjs.map +0 -1
- package/dist/_chunks/intro.mjs +0 -63
- package/dist/_chunks/intro.mjs.map +0 -1
- package/dist/_chunks/list.mjs +0 -102
- package/dist/_chunks/list.mjs.map +0 -1
- package/dist/_chunks/lockfile.mjs +0 -174
- package/dist/_chunks/lockfile.mjs.map +0 -1
- package/dist/_chunks/login.mjs +0 -247
- package/dist/_chunks/login.mjs.map +0 -1
- package/dist/_chunks/logout.mjs +0 -27
- package/dist/_chunks/logout.mjs.map +0 -1
- package/dist/_chunks/map.mjs +0 -11
- package/dist/_chunks/map.mjs.map +0 -1
- package/dist/_chunks/markdown.mjs +0 -101
- package/dist/_chunks/markdown.mjs.map +0 -1
- package/dist/_chunks/menu.mjs +0 -33
- package/dist/_chunks/menu.mjs.map +0 -1
- package/dist/_chunks/model-picker.mjs +0 -61
- package/dist/_chunks/model-picker.mjs.map +0 -1
- package/dist/_chunks/monorepo.mjs +0 -74
- package/dist/_chunks/monorepo.mjs.map +0 -1
- package/dist/_chunks/package-json.mjs +0 -84
- package/dist/_chunks/package-json.mjs.map +0 -1
- package/dist/_chunks/paths.mjs +0 -47
- package/dist/_chunks/paths.mjs.map +0 -1
- package/dist/_chunks/pipeline.mjs +0 -993
- package/dist/_chunks/pipeline.mjs.map +0 -1
- package/dist/_chunks/pool.mjs +0 -2
- package/dist/_chunks/pool2.mjs +0 -121
- package/dist/_chunks/pool2.mjs.map +0 -1
- package/dist/_chunks/portable.mjs +0 -152
- package/dist/_chunks/portable.mjs.map +0 -1
- package/dist/_chunks/prepare-hook.mjs +0 -2
- package/dist/_chunks/prepare-hook2.mjs +0 -61
- package/dist/_chunks/prepare-hook2.mjs.map +0 -1
- package/dist/_chunks/prepare.mjs +0 -113
- package/dist/_chunks/prepare.mjs.map +0 -1
- package/dist/_chunks/prepare2.mjs +0 -80
- package/dist/_chunks/prepare2.mjs.map +0 -1
- package/dist/_chunks/prompts.mjs +0 -1252
- package/dist/_chunks/prompts.mjs.map +0 -1
- package/dist/_chunks/pull.mjs +0 -190
- package/dist/_chunks/pull.mjs.map +0 -1
- package/dist/_chunks/regex.mjs +0 -19
- package/dist/_chunks/regex.mjs.map +0 -1
- package/dist/_chunks/retriv.mjs +0 -2
- package/dist/_chunks/retriv2.mjs +0 -177
- package/dist/_chunks/retriv2.mjs.map +0 -1
- package/dist/_chunks/sanitize.mjs +0 -260
- package/dist/_chunks/sanitize.mjs.map +0 -1
- package/dist/_chunks/search-helpers.mjs +0 -88
- package/dist/_chunks/search-helpers.mjs.map +0 -1
- package/dist/_chunks/search-interactive.mjs +0 -249
- package/dist/_chunks/search-interactive.mjs.map +0 -1
- package/dist/_chunks/search.mjs +0 -247
- package/dist/_chunks/search.mjs.map +0 -1
- package/dist/_chunks/semver.mjs +0 -2831
- package/dist/_chunks/semver.mjs.map +0 -1
- package/dist/_chunks/skill-installer.mjs +0 -2
- package/dist/_chunks/skill-installer2.mjs +0 -163
- package/dist/_chunks/skill-installer2.mjs.map +0 -1
- package/dist/_chunks/skills.mjs +0 -187
- package/dist/_chunks/skills.mjs.map +0 -1
- package/dist/_chunks/store.mjs +0 -107
- package/dist/_chunks/store.mjs.map +0 -1
- package/dist/_chunks/sync.mjs +0 -1009
- package/dist/_chunks/sync.mjs.map +0 -1
- package/dist/_chunks/sync2.mjs +0 -2
- package/dist/_chunks/telemetry.mjs +0 -26
- package/dist/_chunks/telemetry.mjs.map +0 -1
- package/dist/_chunks/uninstall.mjs +0 -214
- package/dist/_chunks/uninstall.mjs.map +0 -1
- package/dist/_chunks/update.mjs +0 -133
- package/dist/_chunks/update.mjs.map +0 -1
- package/dist/_chunks/upload.mjs +0 -155
- package/dist/_chunks/upload.mjs.map +0 -1
- package/dist/_chunks/validate.mjs +0 -60
- package/dist/_chunks/validate.mjs.map +0 -1
- package/dist/_chunks/version.mjs +0 -19
- package/dist/_chunks/version.mjs.map +0 -1
- package/dist/_chunks/watch.mjs +0 -2
- package/dist/_chunks/watch2.mjs +0 -118
- package/dist/_chunks/watch2.mjs.map +0 -1
- package/dist/_chunks/whoami.mjs +0 -21
- package/dist/_chunks/whoami.mjs.map +0 -1
- package/dist/_chunks/wizard.mjs +0 -2
- package/dist/_chunks/wizard2.mjs +0 -200
- package/dist/_chunks/wizard2.mjs.map +0 -1
- package/dist/_chunks/yaml.mjs +0 -33
- package/dist/_chunks/yaml.mjs.map +0 -1
- package/dist/cli-entry.d.mts +0 -1
- package/dist/cli-entry.mjs +0 -5
- package/dist/cli-entry.mjs.map +0 -1
- package/dist/cli.d.mts +0 -1
- package/dist/cli.mjs +0 -1330
- package/dist/cli.mjs.map +0 -1
- package/dist/prepare.d.mts +0 -1
- package/dist/prepare.mjs +0 -84
- package/dist/prepare.mjs.map +0 -1
- package/dist/retriv/worker.d.mts +0 -37
- package/dist/retriv/worker.d.mts.map +0 -1
- package/dist/retriv/worker.mjs +0 -46
- package/dist/retriv/worker.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -4,443 +4,173 @@
|
|
|
4
4
|
[](https://npm.chart.dev/skilld)
|
|
5
5
|
[](https://github.com/skilld-dev/skilld/blob/main/LICENSE)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Search, install, and keep Agent Skills current.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
skilld v3 has two products:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
predict based on existing patterns.
|
|
11
|
+
- The native `skilld` CLI manages Skills.
|
|
12
|
+
- The JavaScript [`skilld-harness`](./packages/harness) package runs visible Skill generation and review instructions.
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
for more details.
|
|
14
|
+
The skilld CLI contains no Skill generation logic or Agent runtime.
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
## Install the skilld CLI
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<tbody>
|
|
23
|
-
<td align="center">
|
|
24
|
-
<sub>Made possible by my <a href="https://github.com/sponsors/harlan-zw">Sponsor Program 💖</a><br> Follow me <a href="https://twitter.com/harlan_zw">@harlan_zw</a> 🐦 - Join <a href="https://discord.gg/275MBUBvgP">Discord</a> for help</sub><br>
|
|
25
|
-
</td>
|
|
26
|
-
</tbody>
|
|
27
|
-
</table>
|
|
28
|
-
</p>
|
|
29
|
-
|
|
30
|
-
## Features
|
|
31
|
-
|
|
32
|
-
- 🌍 **Any Source: Opt-in** - Any NPM dependency or GitHub source, docs auto-resolved
|
|
33
|
-
- 📦 **Bleeding Edge Context** - Latest issues, discussions, and releases. Always use the latest best practices and avoid deprecated patterns.
|
|
34
|
-
- 📚 **Opt-in LLM Sections** - Enhance skills with LLM-generated `Best Practices`, `API Changes`, or your own custom prompts
|
|
35
|
-
- 🧩 **Use Any Agent** - Choose your agent: CLI , [pi](https://github.com/badlogic/pi-mono/tree/main/packages/ai) agents or no agent at all.
|
|
36
|
-
- 🔍 **Semantic Search** - Query indexed docs across all skills via [retriv](https://github.com/harlan-zw/retriv) embeddings
|
|
37
|
-
- 🧠 **Context-Aware** - Follows [Claude Code skill best practices](https://code.claude.com/docs/en/skills#add-supporting-files): SKILL.md stays under 500 lines, references are separate files the agent discovers on-demand - not inlined into context
|
|
38
|
-
- 🎯 **Safe & Versioned** - Prompt injection sanitization, version-aware caching, auto-updates on new releases
|
|
39
|
-
- 🤝 **Ecosystem** - Compatible with [`npx skills`](https://skills.sh/) and [skills-npm](https://github.com/antfu/skills-npm). Skilld auto-detects and uses skills-npm packages when available.
|
|
40
|
-
|
|
41
|
-
## Quick Start
|
|
42
|
-
|
|
43
|
-
Run skilld in a project to generate skills for your dependencies through a simple interactive wizard:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
npx -y skilld
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
__Requires Node 22.6.0 or higher.__
|
|
50
|
-
|
|
51
|
-
Or add a specific package directly:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
npx -y skilld add npm:vue
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
If you need to re-configure skilld, just run `npx -y skilld config` to update your agent, model, or preferences.
|
|
58
|
-
|
|
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
|
-
|
|
61
|
-
```bash
|
|
62
|
-
npx -y skilld add npm:vue
|
|
63
|
-
# Choose "No agent" -> base skill + prompts exported
|
|
64
|
-
# Paste prompts into ChatGPT/Claude web, save outputs, then:
|
|
65
|
-
npx -y skilld author assemble
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Tips
|
|
69
|
-
|
|
70
|
-
- **Be selective** - Only add skills for packages your agent struggles with. Not every dependency needs one.
|
|
71
|
-
- **LLM is optional** - Skills work without any LLM, but enhancing with one makes them significantly better.
|
|
72
|
-
- **Multi-agent** - Run `skilld install --agent gemini-cli` to sync skills to another agent. The doc cache is shared.
|
|
73
|
-
|
|
74
|
-
## Installation
|
|
75
|
-
|
|
76
|
-
### Global
|
|
77
|
-
|
|
78
|
-
Install globally to use `skilld` across all projects without `npx`:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
npm install -g skilld
|
|
82
|
-
# or
|
|
83
|
-
pnpm add -g skilld
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Then run `skilld` in any project directory.
|
|
87
|
-
|
|
88
|
-
### Per-Project
|
|
89
|
-
|
|
90
|
-
If you'd like to install skilld and track the lock file references, add it as a dev dependency:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npm install -D skilld
|
|
94
|
-
# or
|
|
95
|
-
yarn add -D skilld
|
|
96
|
-
# or
|
|
97
|
-
pnpm add -D skilld
|
|
18
|
+
```sh
|
|
19
|
+
npm install --global skilld
|
|
98
20
|
```
|
|
99
21
|
|
|
100
|
-
|
|
22
|
+
The npm package selects a native executable for the current system.
|
|
23
|
+
It has no JavaScript CLI engine or JavaScript fallback.
|
|
101
24
|
|
|
102
|
-
|
|
25
|
+
Install the skilld-maintained Skill for your Agent:
|
|
103
26
|
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
"scripts": {
|
|
107
|
-
"prepare": "skilld prepare"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
27
|
+
```sh
|
|
28
|
+
skilld install skilld --global
|
|
110
29
|
```
|
|
111
30
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## FAQ
|
|
115
|
-
|
|
116
|
-
### Why don't the skills run?
|
|
31
|
+
Use `--agent` when you want an explicit Agent target:
|
|
117
32
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
```md
|
|
121
|
-
Before modifying code, evaluate each installed skill against the current task.
|
|
122
|
-
For each skill, determine YES/NO relevance and invoke all YES skills before proceeding.
|
|
33
|
+
```sh
|
|
34
|
+
skilld install skilld --global --agent codex
|
|
123
35
|
```
|
|
124
36
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Context7 is an MCP that fetches raw doc chunks at query time. You get different results each prompt, no curation, and it requires their server. Skilld is local-first: it generates a SKILL.md that lives in your project, tied to your actual package versions. No MCP dependency, no per-prompt latency, and it goes further with LLM-enhanced sections, prompt injection sanitization, and semantic search.
|
|
128
|
-
|
|
129
|
-
### Will I be prompt injected?
|
|
130
|
-
|
|
131
|
-
Skilld pulls issues from GitHub which could be abused for potential prompt injection.
|
|
132
|
-
|
|
133
|
-
Skilld treats all data as untrusted, running in permissioned environments and using best practices to avoid injections.
|
|
134
|
-
However, always be cautious when using skills from untrusted sources.
|
|
135
|
-
|
|
136
|
-
### Do skills update when my deps update?
|
|
137
|
-
|
|
138
|
-
Yes. Add `skilld prepare` to your prepare script. It restores references, auto-installs shipped skills, and tells you when packages are outdated. Run `skilld update` to regenerate LLM enhancements.
|
|
139
|
-
|
|
140
|
-
## CLI Usage
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
# Interactive mode - auto-discover from package.json
|
|
144
|
-
skilld
|
|
145
|
-
|
|
146
|
-
# Add skills for specific package(s) — npm: prefix for registry packages
|
|
147
|
-
skilld add npm:vue npm:nuxt npm:pinia
|
|
148
|
-
|
|
149
|
-
# The same prefixes work in the interactive wizard's package prompt
|
|
150
|
-
|
|
151
|
-
# Add a pre-authored skill from a GitHub repo
|
|
152
|
-
skilld add gh:vercel-labs/agent-skills
|
|
153
|
-
|
|
154
|
-
# Add a skill for a Rust crate (crates.io)
|
|
155
|
-
skilld add crate:serde
|
|
156
|
-
|
|
157
|
-
# Update outdated skills
|
|
158
|
-
skilld update
|
|
159
|
-
skilld update tailwindcss
|
|
160
|
-
|
|
161
|
-
# Search docs across installed skills
|
|
162
|
-
skilld search "useFetch options" -p nuxt
|
|
163
|
-
skilld search "error" -p nuxt --filter '{"type":"issue"}'
|
|
164
|
-
skilld search "routing" --agents claude-code
|
|
165
|
-
skilld search --guide -p nuxt
|
|
37
|
+
## Use the skilld CLI
|
|
166
38
|
|
|
167
|
-
|
|
168
|
-
|
|
39
|
+
```sh
|
|
40
|
+
# Find a Skill
|
|
41
|
+
skilld search vue
|
|
169
42
|
|
|
170
|
-
# Install
|
|
171
|
-
skilld
|
|
43
|
+
# Install a Skill in the current project
|
|
44
|
+
skilld install skilld:skilld-dev/skills/vue
|
|
172
45
|
|
|
173
|
-
#
|
|
174
|
-
skilld add npm:drizzle-orm --yes
|
|
175
|
-
|
|
176
|
-
# Check skill info
|
|
177
|
-
skilld info
|
|
178
|
-
|
|
179
|
-
# List installed skills
|
|
46
|
+
# Inspect installed Skills
|
|
180
47
|
skilld list
|
|
181
|
-
skilld
|
|
182
|
-
|
|
183
|
-
# Manage settings
|
|
184
|
-
skilld config
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Commands
|
|
188
|
-
|
|
189
|
-
| Command | Description |
|
|
190
|
-
|---------|-------------|
|
|
191
|
-
| `skilld` | Interactive wizard (first run) or status menu (existing skills) |
|
|
192
|
-
| `skilld add <source...>` | Add skills. Sources: `npm:<pkg>`, `crate:<name>`, `gh:<owner/repo>`, or bare names (deprecated) |
|
|
193
|
-
| `skilld update [pkg]` | Update outdated skills (all or specific) |
|
|
194
|
-
| `skilld search [query]` | Search indexed docs (`-p` package, `--agents` filter, `--filter` JSON, `--limit`, `--guide`) |
|
|
195
|
-
| `skilld list` | List installed skills (`--json` for machine-readable output) |
|
|
196
|
-
| `skilld info` | Show skill info and config |
|
|
197
|
-
| `skilld config` | Configure agent, model, preferences |
|
|
198
|
-
| `skilld install` | Restore references from lockfile |
|
|
199
|
-
| `skilld remove` | Remove installed skills |
|
|
200
|
-
| `skilld uninstall` | Remove all skilld data |
|
|
201
|
-
| `skilld cache` | Cache management (clean expired LLM cache entries) |
|
|
202
|
-
| `skilld author package <pkg>` | Generate a portable package skill from docs |
|
|
203
|
-
| `skilld author publish` | Publish skills to skilld.dev |
|
|
204
|
-
| `skilld author eject <pkg>` | Eject skill as portable directory (no symlinks) |
|
|
205
|
-
| `skilld author validate <file>`| Validate a skill section |
|
|
206
|
-
| `skilld author assemble [dir]` | Merge LLM output files back into SKILL.md (auto-discovers) |
|
|
207
|
-
|
|
208
|
-
### Works Without an Agent CLI
|
|
209
|
-
|
|
210
|
-
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:
|
|
211
|
-
|
|
212
|
-
```bash
|
|
213
|
-
skilld add npm:vue
|
|
214
|
-
# Choose "No agent" -> installs to .claude/skills/vue-skilld/
|
|
215
|
-
|
|
216
|
-
# What you get:
|
|
217
|
-
# SKILL.md <- base skill (works immediately)
|
|
218
|
-
# PROMPT_*.md <- prompts to enhance it with any LLM
|
|
219
|
-
# references/ <- docs, issues, releases as real files
|
|
220
|
-
|
|
221
|
-
# Run each PROMPT_*.md in ChatGPT/Claude web/any LLM
|
|
222
|
-
# Save outputs as _BEST_PRACTICES.md, _API_CHANGES.md, then:
|
|
223
|
-
skilld author assemble
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
`skilld author assemble` auto-discovers skills with pending output files. `skilld update` re-exports prompts for outdated packages.
|
|
227
|
-
|
|
228
|
-
### Local Models (Ollama)
|
|
229
|
-
|
|
230
|
-
If [Ollama](https://ollama.com) is running, skilld auto-detects your locally-pulled text models and lists them in `skilld config` (and `-m ollama:<name>`):
|
|
231
|
-
|
|
232
|
-
```bash
|
|
233
|
-
skilld add npm:vue -m ollama:qwen2.5:14b-instruct
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
Generation runs locally: free, offline, no API key. Unlike the CLI and API backends, the Ollama path is one-shot (it does not explore reference files with tools), so all source material is inlined into a single prompt. Best paired with a capable instruct model.
|
|
237
|
-
|
|
238
|
-
| Env var | Default | Purpose |
|
|
239
|
-
|---------|---------|---------|
|
|
240
|
-
| `OLLAMA_HOST` | `http://localhost:11434` | Ollama daemon address |
|
|
241
|
-
| `OLLAMA_NUM_CTX` | `32768` | Context window; sized to fit the full prompt + output |
|
|
242
|
-
|
|
243
|
-
The large default context can exceed memory for big models on constrained hardware (Ollama returns a 500). Lower `OLLAMA_NUM_CTX` or pick a smaller model if generation fails to load.
|
|
244
|
-
|
|
245
|
-
### Embedding Model
|
|
246
|
-
|
|
247
|
-
Search covers skills installed for every agent in the project, deduplicated. Restrict it with `--agents`:
|
|
248
|
-
|
|
249
|
-
```bash
|
|
250
|
-
skilld search "routing" --agents claude-code
|
|
251
|
-
skilld search "routing" --agents claude-code,codex
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
`skilld search` is powered by a local embedding model. It runs offline through transformers.js. It needs no API key or network traffic after the first download. Pick one under **Embedding model** in `skilld config`:
|
|
255
|
-
|
|
256
|
-
| Model | Dimensions | Notes |
|
|
257
|
-
|-------|-----------:|-------|
|
|
258
|
-
| `bge-small-en-v1.5` | 384 | Default. Fastest to index, smallest download. |
|
|
259
|
-
| `bge-base-en-v1.5` | 768 | Balanced accuracy and speed. |
|
|
260
|
-
| `Xenova/bge-large-en-v1.5` | 1024 | Most accurate English retrieval, slowest to index. |
|
|
261
|
-
| `bge-m3` | 1024 | Multilingual, 8192-token context. |
|
|
262
|
-
|
|
263
|
-
Larger models retrieve more accurately but cost more time and memory when indexing. Locally-pulled [Ollama](#ollama-embedding-models) models can be used too. Export `SKILLD_EMBED_MODEL` to override the saved setting for every index and search command in the current shell:
|
|
48
|
+
skilld view vue
|
|
264
49
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
skilld
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
Search indexes must use one embedding model and device. Rebuild them after switching either setting:
|
|
50
|
+
# Keep Skills current
|
|
51
|
+
skilld verify vue
|
|
52
|
+
skilld upgrade vue
|
|
271
53
|
|
|
272
|
-
|
|
273
|
-
skilld
|
|
54
|
+
# Remove a Skill
|
|
55
|
+
skilld remove vue
|
|
274
56
|
```
|
|
275
57
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
58
|
+
Project installs update `.skills/skilld-lock.yaml` and the selected Agent targets.
|
|
59
|
+
Use `--global` for account level Agent targets.
|
|
60
|
+
Use `--mode copy` or `--mode symlink` to control target writes.
|
|
279
61
|
|
|
280
|
-
|
|
281
|
-
ollama pull qwen3-embedding
|
|
282
|
-
SKILLD_EMBED_MODEL=ollama:qwen3-embedding skilld add npm:vue
|
|
283
|
-
```
|
|
62
|
+
Run `skilld install` without a source to restore the lockfile state.
|
|
284
63
|
|
|
285
|
-
|
|
64
|
+
## Artifact delivery
|
|
286
65
|
|
|
287
|
-
|
|
66
|
+
The skilld CLI resolves remote Skills through the skilld.dev API.
|
|
67
|
+
GitHub remains the source of truth.
|
|
288
68
|
|
|
289
|
-
|
|
69
|
+
skilld.dev builds an immutable Artifact from an exact Git commit.
|
|
70
|
+
The CLI checks its digest, Artifact attestation, check results, and archive before installation.
|
|
290
71
|
|
|
291
|
-
|
|
72
|
+
Private Repository delivery requires both:
|
|
292
73
|
|
|
293
|
-
|
|
74
|
+
- `skilld auth login` for a skilld.dev account
|
|
75
|
+
- Access through the skilld GitHub App installation
|
|
294
76
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
| `auto` | Default. Lets transformers.js choose; CPU under Node. |
|
|
298
|
-
| `cpu` | Always available, predictable. |
|
|
299
|
-
| `webgpu` | Fastest on Apple Silicon in testing. |
|
|
300
|
-
| `coreml` | Apple Neural Engine. Measured slower than CPU for these models. |
|
|
77
|
+
Private Artifact responses use short lived, one time grants.
|
|
78
|
+
The API does not expose private storage addresses.
|
|
301
79
|
|
|
302
|
-
|
|
80
|
+
### Direct mode
|
|
303
81
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
| `bge-base-en-v1.5` | 198 | 68 | **580** |
|
|
308
|
-
| `Xenova/bge-large-en-v1.5` | 71 | 9 | **201** |
|
|
82
|
+
`--direct` fetches a public GitHub Repository without the skilld.dev API.
|
|
83
|
+
The installed Skill receives the `unverified` source status.
|
|
84
|
+
The user reviews the Skill before use.
|
|
309
85
|
|
|
310
|
-
|
|
86
|
+
Direct mode never handles private Repositories.
|
|
87
|
+
It never falls back to skilld.dev.
|
|
311
88
|
|
|
312
|
-
|
|
89
|
+
## Source status
|
|
313
90
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
```
|
|
91
|
+
- `verified`: skilld checked a skilld.dev Artifact and its attestation.
|
|
92
|
+
- `local`: the Skill came from a local directory or a bundled skilld-maintained Skill.
|
|
93
|
+
- `unverified`: direct mode fetched the Skill from public GitHub.
|
|
318
94
|
|
|
319
|
-
|
|
95
|
+
`verified` describes provenance checks.
|
|
96
|
+
It does not endorse the instructions inside a Skill.
|
|
320
97
|
|
|
321
|
-
|
|
98
|
+
## Account and configuration
|
|
322
99
|
|
|
323
|
-
|
|
100
|
+
```sh
|
|
101
|
+
skilld auth login
|
|
102
|
+
skilld auth status
|
|
103
|
+
skilld auth logout
|
|
324
104
|
|
|
325
|
-
|
|
326
|
-
skilld
|
|
327
|
-
skilld
|
|
328
|
-
skilld author eject vue --out ./skills/ # Custom path
|
|
329
|
-
skilld author eject vue --from 2025-07-01 # Only recent releases/issues
|
|
105
|
+
skilld config get agent.targets
|
|
106
|
+
skilld config set agent.targets codex,claude-code
|
|
107
|
+
skilld config list
|
|
330
108
|
```
|
|
331
109
|
|
|
332
|
-
|
|
110
|
+
Native builds store account credentials in the operating system keychain.
|
|
111
|
+
The CLI does not store tokens in environment variables or plain text files.
|
|
333
112
|
|
|
334
|
-
|
|
113
|
+
## Generate or review a Skill
|
|
335
114
|
|
|
336
|
-
|
|
337
|
-
|--------|-------|---------|-------------|
|
|
338
|
-
| `--global` | `-g` | `false` | Install globally to `~/<agent>/skills` |
|
|
339
|
-
| `--agent` | `-a` | auto-detect | Target specific agent (claude-code, cursor, etc.) |
|
|
340
|
-
| `--yes` | `-y` | `false` | Skip prompts, use defaults |
|
|
341
|
-
| `--force` | `-f` | `false` | Ignore all caches, re-fetch docs and regenerate |
|
|
342
|
-
| `--model` | `-m` | config default | LLM model for skill generation (sonnet, haiku, opus, etc.) |
|
|
343
|
-
| `--name` | `-n` | | Custom skill directory name (eject only) |
|
|
344
|
-
| `--out` | `-o` | | Output directory path override (eject only) |
|
|
345
|
-
| `--from` | | | Collect releases/issues/discussions from this date (YYYY-MM-DD, eject only) |
|
|
346
|
-
| `--debug` | | `false` | Save raw LLM output to logs/ for each section |
|
|
115
|
+
Skill generation lives outside the skilld CLI.
|
|
347
116
|
|
|
348
|
-
|
|
117
|
+
Use these skilld-maintained Skills directly with your Agent:
|
|
349
118
|
|
|
350
|
-
|
|
119
|
+
- [`generate-package-skill`](./skills/generate-package-skill)
|
|
120
|
+
- [`generate-project-skill`](./skills/generate-project-skill)
|
|
121
|
+
- [`review-skill`](./skills/review-skill)
|
|
122
|
+
- [`skilld`](./skills/skilld)
|
|
351
123
|
|
|
352
|
-
|
|
124
|
+
Direct Skill runs remain user reviewed.
|
|
125
|
+
The instructions and changes stay visible to the user.
|
|
353
126
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
```
|
|
127
|
+
Use [`skilld-harness`](./packages/harness) when an application or CI needs strict output checks.
|
|
128
|
+
The Harness runs the same visible Skill files through an AI SDK Harness.
|
|
357
129
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### Generate a skill
|
|
361
|
-
|
|
362
|
-
From your package root (or monorepo root):
|
|
363
|
-
|
|
364
|
-
```bash
|
|
365
|
-
npx skilld author
|
|
130
|
+
```sh
|
|
131
|
+
pnpm add skilld-harness @ai-sdk/harness ws zod
|
|
366
132
|
```
|
|
367
133
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
This creates a `skills/<your-package>/` directory with a `SKILL.md` and ejected reference files. It also adds `"skills"` to your `package.json` `files` array.
|
|
371
|
-
|
|
372
|
-
### How consumers get it
|
|
134
|
+
```ts
|
|
135
|
+
import { createSkillHarness } from 'skilld-harness'
|
|
373
136
|
|
|
374
|
-
|
|
137
|
+
const skillHarness = createSkillHarness({ harness, sandbox })
|
|
375
138
|
|
|
376
|
-
|
|
377
|
-
|
|
139
|
+
const result = await skillHarness.run({
|
|
140
|
+
_tag: 'PackageSkill',
|
|
141
|
+
source: { _tag: 'NpmPackage', spec: 'vue' },
|
|
142
|
+
destination: { rootDir: '.agents/skills', name: 'vue' },
|
|
143
|
+
})
|
|
378
144
|
```
|
|
379
145
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
```json
|
|
383
|
-
{
|
|
384
|
-
"scripts": {
|
|
385
|
-
"prepare": "skilld prepare"
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
`skilld prepare` auto-detects shipped skills in `node_modules` and symlinks them into the agent's skill directory. Compatible with [skills-npm](https://github.com/antfu/skills-npm).
|
|
391
|
-
|
|
392
|
-
### Options
|
|
393
|
-
|
|
394
|
-
| Flag | Alias | Default | Description |
|
|
395
|
-
|:----------|:-----:|:-------:|:------------|
|
|
396
|
-
| `--model` | `-m` | | LLM model for enhancement |
|
|
397
|
-
| `--out` | `-o` | | Output directory (single package only) |
|
|
398
|
-
| `--force` | `-f` | `false` | Clear cache and regenerate |
|
|
399
|
-
| `--yes` | `-y` | `false` | Skip prompts, use defaults |
|
|
400
|
-
| `--debug` | | `false` | Save raw LLM output to logs/ |
|
|
401
|
-
|
|
402
|
-
## The Landscape
|
|
403
|
-
|
|
404
|
-
Several approaches exist for steering agent knowledge. Each fills a different niche:
|
|
405
|
-
|
|
406
|
-
| Approach | Versioned | Curated | No Opt-in | Local | Any LLM |
|
|
407
|
-
|:---------|:---------:|:-------:|:---------:|:-----:|:-------:|
|
|
408
|
-
| **Manual rules** | - | yes | yes | yes | yes |
|
|
409
|
-
| **llms.txt** | ~ | - | - | - | yes |
|
|
410
|
-
| **MCP servers** | yes | - | - | - | - |
|
|
411
|
-
| **skills.sh** | - | ~ | yes | - | - |
|
|
412
|
-
| **skills-npm** | yes | yes | - | yes | - |
|
|
413
|
-
| **skilld** | yes | yes | yes | yes | yes |
|
|
414
|
-
|
|
415
|
-
> **Versioned** - tied to your installed package version. **Curated** - distilled best practices, not raw docs. **No Opt-in** - works without the package author doing anything. **Local** - runs on your machine, no external service dependency. **Any LLM** - works with any LLM, not just agent CLIs.
|
|
416
|
-
|
|
417
|
-
- **Manual rules** (CLAUDE.md, .cursorrules): full control, but you need to already know the best practices and maintain them across every dep.
|
|
418
|
-
- **[llms.txt](https://llmstxt.org/)**: standard convention for exposing docs to LLMs, but it's full docs not curated guidance and requires author adoption.
|
|
419
|
-
- **MCP servers** (Context7, etc.): live, version-aware responses, but adds per-request latency and the maintainer has to build and maintain a server.
|
|
420
|
-
- **[skills.sh](https://skills.sh/)**: easy skill sharing with a growing ecosystem, but community-sourced without version-awareness or author oversight.
|
|
421
|
-
- **[skills-npm](https://github.com/antfu/skills-npm)**: the ideal end-state: zero-token skills shipped by the package author, but requires every maintainer to opt in. Skilld auto-detects and uses skills-npm packages when available.
|
|
422
|
-
- **skilld**: generates version-aware skills from existing docs, changelogs, issues, and discussions. Works for any package without author opt-in.
|
|
146
|
+
See the [`skilld-harness` guide](./packages/harness/README.md) for its full contract.
|
|
423
147
|
|
|
424
|
-
##
|
|
148
|
+
## Upgrade from v2
|
|
425
149
|
|
|
426
|
-
|
|
150
|
+
v3 does not import v2 configuration or lockfiles.
|
|
151
|
+
Back up v2 state before replacing the CLI.
|
|
427
152
|
|
|
428
|
-
|
|
153
|
+
Follow the [v2 to v3 migration guide](./docs/migrate-v2-to-v3.md).
|
|
154
|
+
It maps removed commands and explains rollback limits.
|
|
429
155
|
|
|
430
|
-
|
|
156
|
+
## v3 development
|
|
431
157
|
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
|
|
158
|
+
```sh
|
|
159
|
+
pnpm install
|
|
160
|
+
pnpm test:run
|
|
161
|
+
pnpm lint
|
|
162
|
+
pnpm typecheck
|
|
163
|
+
pnpm build
|
|
435
164
|
```
|
|
436
165
|
|
|
437
|
-
|
|
166
|
+
The Rust workspace owns the skilld CLI.
|
|
167
|
+
`packages/harness` owns generation and review execution.
|
|
168
|
+
`packages/protocol` owns the skilld.dev wire contract.
|
|
169
|
+
`skills` owns the visible skilld-maintained Skills.
|
|
438
170
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
- [mdream](https://github.com/harlan-zw/mdream) - HTML to Markdown converter
|
|
442
|
-
- [retriv](https://github.com/harlan-zw/retriv) - Vector search with sqlite-vec
|
|
171
|
+
The WASIp2 build remains an internal proof.
|
|
172
|
+
Published packages use native executables only.
|
|
443
173
|
|
|
444
174
|
## License
|
|
445
175
|
|
|
446
|
-
|
|
176
|
+
[MIT](./LICENSE)
|
package/bin/skilld.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from 'node:child_process'
|
|
3
|
+
import { createRequire } from 'node:module'
|
|
4
|
+
import { constants } from 'node:os'
|
|
5
|
+
import { dirname, join } from 'node:path'
|
|
6
|
+
|
|
7
|
+
import { detectLibc, selectArtifact } from '../loader/resolve-artifact.mjs'
|
|
8
|
+
|
|
9
|
+
const require = createRequire(import.meta.url)
|
|
10
|
+
|
|
11
|
+
function resolvePackage(packageName, file) {
|
|
12
|
+
return Promise.resolve()
|
|
13
|
+
.then(() => join(dirname(require.resolve(`${packageName}/package.json`)), file))
|
|
14
|
+
.catch((error) => {
|
|
15
|
+
if (error?.code === 'MODULE_NOT_FOUND' || error?.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED')
|
|
16
|
+
return undefined
|
|
17
|
+
throw error
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async function main() {
|
|
22
|
+
const artifact = await selectArtifact({
|
|
23
|
+
arch: process.arch,
|
|
24
|
+
libc: process.platform === 'linux' ? detectLibc() : undefined,
|
|
25
|
+
platform: process.platform,
|
|
26
|
+
}, resolvePackage)
|
|
27
|
+
|
|
28
|
+
if (artifact._tag === 'Unavailable') {
|
|
29
|
+
process.stderr.write(`${artifact.message}\n`)
|
|
30
|
+
process.exitCode = 2
|
|
31
|
+
return
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const child = spawn(artifact.executable, process.argv.slice(2), {
|
|
35
|
+
cwd: process.cwd(),
|
|
36
|
+
env: process.env,
|
|
37
|
+
shell: false,
|
|
38
|
+
stdio: 'inherit',
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
for (const signal of ['SIGINT', 'SIGTERM'])
|
|
42
|
+
process.on(signal, () => child.kill(signal))
|
|
43
|
+
|
|
44
|
+
child.on('error', (error) => {
|
|
45
|
+
process.stderr.write(`SERVICE_UNAVAILABLE: ${error.message}\n`)
|
|
46
|
+
process.exitCode = 2
|
|
47
|
+
})
|
|
48
|
+
child.on('exit', (code, signal) => {
|
|
49
|
+
process.exitCode = code ?? 128 + (constants.signals[signal] ?? 0)
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
main().catch((error) => {
|
|
54
|
+
process.stderr.write(`SERVICE_UNAVAILABLE: ${error.message}\n`)
|
|
55
|
+
process.exitCode = 2
|
|
56
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const nativePackages = new Map([
|
|
2
|
+
['darwin:arm64', 'skilld-cli-darwin-arm64'],
|
|
3
|
+
['darwin:x64', 'skilld-cli-darwin-x64'],
|
|
4
|
+
['linux:arm64:gnu', 'skilld-cli-linux-arm64-gnu'],
|
|
5
|
+
['linux:arm64:musl', 'skilld-cli-linux-arm64-musl'],
|
|
6
|
+
['linux:x64:gnu', 'skilld-cli-linux-x64-gnu'],
|
|
7
|
+
['linux:x64:musl', 'skilld-cli-linux-x64-musl'],
|
|
8
|
+
['win32:arm64', 'skilld-cli-win32-arm64-msvc'],
|
|
9
|
+
['win32:x64', 'skilld-cli-win32-x64-msvc'],
|
|
10
|
+
])
|
|
11
|
+
|
|
12
|
+
export function detectLibc(report = process.report) {
|
|
13
|
+
const header = report?.getReport?.().header
|
|
14
|
+
return header?.glibcVersionRuntime ? 'gnu' : 'musl'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function nativePackage(runtime) {
|
|
18
|
+
const key = runtime.platform === 'linux'
|
|
19
|
+
? `${runtime.platform}:${runtime.arch}:${runtime.libc}`
|
|
20
|
+
: `${runtime.platform}:${runtime.arch}`
|
|
21
|
+
return nativePackages.get(key)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export async function selectArtifact(runtime, resolvePackage) {
|
|
25
|
+
const packageName = nativePackage(runtime)
|
|
26
|
+
if (packageName) {
|
|
27
|
+
const file = runtime.platform === 'win32' ? 'bin/skilld.exe' : 'bin/skilld'
|
|
28
|
+
const executable = await resolvePackage(packageName, file)
|
|
29
|
+
if (executable)
|
|
30
|
+
return { _tag: 'Native', executable }
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
_tag: 'Unavailable',
|
|
35
|
+
message: `UNSUPPORTED_HOST: no skilld CLI artifact is installed for ${runtime.platform} ${runtime.arch}`,
|
|
36
|
+
}
|
|
37
|
+
}
|