skilld 3.0.0 → 3.1.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.
- package/README.md +50 -15
- package/bin/skilld.mjs +9 -2
- package/loader/resolve-artifact.mjs +18 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -41,31 +41,43 @@ Skill authoring lives in visible [skilld-maintained Skills](#author-a-skill) and
|
|
|
41
41
|
|
|
42
42
|
## Get Started
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Run a Skill once. You need no install and no project files:
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Find a Skill, then run it for this session:
|
|
51
|
-
|
|
52
|
-
```sh
|
|
53
|
-
skilld search vue
|
|
54
|
-
skilld run skilld:antfu/skills/vue
|
|
47
|
+
npx skilld search vue
|
|
48
|
+
npx skilld run antfu/skills/vue
|
|
55
49
|
```
|
|
56
50
|
|
|
57
51
|
`skilld run` prints `SKILL.md` to stdout and writes no file.
|
|
58
52
|
Ask your Agent to run the command and follow the printed instructions.
|
|
59
53
|
If you run it yourself, pass the output to your Agent.
|
|
60
54
|
|
|
61
|
-
Install
|
|
55
|
+
Install a Skill only when you want it in every session:
|
|
62
56
|
|
|
63
57
|
```sh
|
|
64
|
-
skilld install
|
|
58
|
+
npx skilld install antfu/skills/vue
|
|
65
59
|
```
|
|
66
60
|
|
|
67
61
|
An install writes files. If an Agent runs the install, it asks you first.
|
|
68
62
|
|
|
63
|
+
### Run or install?
|
|
64
|
+
|
|
65
|
+
| | `skilld run` | `skilld install` |
|
|
66
|
+
| --- | --- | --- |
|
|
67
|
+
| Use it for | The task in front of you | Every session in this project |
|
|
68
|
+
| Files written | None | `.skills`, the lockfile, and Agent targets |
|
|
69
|
+
| Cleanup | None | `skilld remove` |
|
|
70
|
+
| Updates | Loads the source each time | `skilld update` |
|
|
71
|
+
| Skill scripts | Never printed or executed | On disk for the Skill to use |
|
|
72
|
+
|
|
73
|
+
Start with `skilld run`. Install when you reach for the same Skill again.
|
|
74
|
+
|
|
75
|
+
If you use skilld often, install the CLI globally:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
npm install --global skilld
|
|
79
|
+
```
|
|
80
|
+
|
|
69
81
|
Teach your Agent the CLI with the skilld-maintained `skilld` Skill:
|
|
70
82
|
|
|
71
83
|
```sh
|
|
@@ -84,8 +96,10 @@ skilld install skilld -g --agent all
|
|
|
84
96
|
|
|
85
97
|
### Selectors
|
|
86
98
|
|
|
87
|
-
`
|
|
99
|
+
`OWNER/REPOSITORY/SKILL` names one Skill in the registry.
|
|
100
|
+
`OWNER/REPOSITORY` names every Skill in one Repository.
|
|
88
101
|
`skilld search` prints the selector for each result.
|
|
102
|
+
skilld 3.0 printed `skilld:OWNER/REPOSITORY/SKILL` and `gh:OWNER/REPOSITORY`. The CLI still accepts both.
|
|
89
103
|
`skilld-dev/skills` is the Repository; `find-skill` is the Skill directory inside it.
|
|
90
104
|
|
|
91
105
|
### Supporting files
|
|
@@ -94,20 +108,41 @@ skilld names the supporting files a Skill carries and prints none of them.
|
|
|
94
108
|
Read one when the instructions call for it:
|
|
95
109
|
|
|
96
110
|
```sh
|
|
97
|
-
skilld run skilld
|
|
111
|
+
skilld run skilld-dev/skills/find-skill --revision <commit> --file agents/openai.yaml
|
|
98
112
|
```
|
|
99
113
|
|
|
100
114
|
Use the revision and file-read command from the initial output.
|
|
101
115
|
skilld never prints executable or binary files.
|
|
102
116
|
A Skill that must run its own script needs an install.
|
|
103
117
|
|
|
118
|
+
## Install without Node.js
|
|
119
|
+
|
|
120
|
+
macOS and Linux:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
curl -fsSL https://github.com/skilld-dev/skilld/releases/latest/download/install.sh | sh
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Windows PowerShell:
|
|
127
|
+
|
|
128
|
+
```powershell
|
|
129
|
+
irm https://github.com/skilld-dev/skilld/releases/latest/download/install.ps1 | iex
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
The script installs one native binary to `~/.skilld/bin`.
|
|
133
|
+
That install upgrades itself in the background after it verifies the signed release manifest.
|
|
134
|
+
Restart skilld to use the new version.
|
|
135
|
+
An npm install prints the upgrade command instead.
|
|
136
|
+
Set `SKILLD_NO_UPGRADE=1` to turn off upgrade checks.
|
|
137
|
+
See [SECURITY.md](./SECURITY.md#how-the-cli-upgrades-itself) for each check.
|
|
138
|
+
|
|
104
139
|
## Commands
|
|
105
140
|
|
|
106
141
|
```sh
|
|
107
142
|
# Find a Skill
|
|
108
143
|
skilld search <query>
|
|
109
144
|
|
|
110
|
-
# Run a Skill for this session only
|
|
145
|
+
# Run a Skill for this session only (start here)
|
|
111
146
|
skilld run <selector>
|
|
112
147
|
|
|
113
148
|
# Read one supporting file that Skill carries
|
|
@@ -118,7 +153,7 @@ skilld install <selector>
|
|
|
118
153
|
skilld install
|
|
119
154
|
|
|
120
155
|
# List every Skill a Repository, curator, or collection names
|
|
121
|
-
skilld run
|
|
156
|
+
skilld run anthropics/skills
|
|
122
157
|
skilld run @harlan-zw
|
|
123
158
|
skilld run @harlan-zw/agent-workflow-stack
|
|
124
159
|
|
package/bin/skilld.mjs
CHANGED
|
@@ -3,8 +3,9 @@ import { spawn } from 'node:child_process'
|
|
|
3
3
|
import { createRequire } from 'node:module'
|
|
4
4
|
import { constants } from 'node:os'
|
|
5
5
|
import { dirname, join } from 'node:path'
|
|
6
|
+
import { fileURLToPath } from 'node:url'
|
|
6
7
|
|
|
7
|
-
import { detectLibc, selectArtifact } from '../loader/resolve-artifact.mjs'
|
|
8
|
+
import { detectLauncher, detectLibc, selectArtifact } from '../loader/resolve-artifact.mjs'
|
|
8
9
|
|
|
9
10
|
const require = createRequire(import.meta.url)
|
|
10
11
|
|
|
@@ -33,7 +34,13 @@ async function main() {
|
|
|
33
34
|
|
|
34
35
|
const child = spawn(artifact.executable, process.argv.slice(2), {
|
|
35
36
|
cwd: process.cwd(),
|
|
36
|
-
env:
|
|
37
|
+
env: {
|
|
38
|
+
...process.env,
|
|
39
|
+
SKILLD_LAUNCHER: detectLauncher({
|
|
40
|
+
scriptPath: fileURLToPath(import.meta.url),
|
|
41
|
+
userAgent: process.env.npm_config_user_agent,
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
37
44
|
shell: false,
|
|
38
45
|
stdio: 'inherit',
|
|
39
46
|
})
|
|
@@ -35,3 +35,21 @@ export async function selectArtifact(runtime, resolvePackage) {
|
|
|
35
35
|
message: `UNSUPPORTED_HOST: no skilld CLI artifact is installed for ${runtime.platform} ${runtime.arch}`,
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Names the package runner that launched the loader, so the CLI prints the
|
|
41
|
+
* matching upgrade command. `SKILLD_LAUNCHER` only changes that wording.
|
|
42
|
+
*/
|
|
43
|
+
export function detectLauncher({ scriptPath, userAgent }) {
|
|
44
|
+
const path = scriptPath.replaceAll('\\', '/')
|
|
45
|
+
if (path.includes('/_npx/'))
|
|
46
|
+
return 'npx'
|
|
47
|
+
const agent = userAgent?.split('/')[0]
|
|
48
|
+
if (agent === 'pnpm' || path.includes('/pnpm/') || path.includes('/.pnpm/'))
|
|
49
|
+
return 'pnpm'
|
|
50
|
+
if (agent === 'bun' || path.includes('/.bun/'))
|
|
51
|
+
return 'bun'
|
|
52
|
+
if (agent === 'yarn' || path.includes('/yarn/'))
|
|
53
|
+
return 'yarn'
|
|
54
|
+
return 'npm'
|
|
55
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilld",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"description": "Search, run, install, and keep curated Agent Skills current",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"node": ">=22.0.0"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"skilld-cli-darwin-arm64": "3.
|
|
49
|
-
"skilld-cli-darwin-x64": "3.
|
|
50
|
-
"skilld-cli-linux-arm64-gnu": "3.
|
|
51
|
-
"skilld-cli-linux-arm64-musl": "3.
|
|
52
|
-
"skilld-cli-linux-x64-gnu": "3.
|
|
53
|
-
"skilld-cli-linux-x64-musl": "3.
|
|
54
|
-
"skilld-cli-win32-arm64-msvc": "3.
|
|
55
|
-
"skilld-cli-win32-x64-msvc": "3.
|
|
48
|
+
"skilld-cli-darwin-arm64": "3.1.0",
|
|
49
|
+
"skilld-cli-darwin-x64": "3.1.0",
|
|
50
|
+
"skilld-cli-linux-arm64-gnu": "3.1.0",
|
|
51
|
+
"skilld-cli-linux-arm64-musl": "3.1.0",
|
|
52
|
+
"skilld-cli-linux-x64-gnu": "3.1.0",
|
|
53
|
+
"skilld-cli-linux-x64-musl": "3.1.0",
|
|
54
|
+
"skilld-cli-win32-arm64-msvc": "3.1.0",
|
|
55
|
+
"skilld-cli-win32-x64-msvc": "3.1.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@antfu/eslint-config": "^9.5.1",
|