@hasna/skills 0.1.31 → 0.1.32
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 +35 -15
- package/bin/index.js +524 -272
- package/bin/mcp.js +49 -30
- package/dist/cli/onboarding.d.ts +13 -0
- package/dist/index.js +39 -23
- package/dist/lib/config.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,13 @@ Requires [Bun](https://bun.sh/) 1.0+.
|
|
|
19
19
|
# Browse skills interactively
|
|
20
20
|
skills
|
|
21
21
|
|
|
22
|
+
# Hosted setup is the recommended interactive path
|
|
23
|
+
skills setup --mode hosted
|
|
24
|
+
skills auth login
|
|
25
|
+
|
|
26
|
+
# Local-only setup stays available and does not require an account
|
|
27
|
+
skills setup --mode local
|
|
28
|
+
|
|
22
29
|
# Optionally pin a skill preference in this project
|
|
23
30
|
skills pin image
|
|
24
31
|
|
|
@@ -28,8 +35,7 @@ skills setup agents
|
|
|
28
35
|
# See what a skill needs
|
|
29
36
|
skills info image
|
|
30
37
|
|
|
31
|
-
# Premium skills run
|
|
32
|
-
skills auth login
|
|
38
|
+
# Premium skills run through the configured hosted API
|
|
33
39
|
skills run image "a cat sitting on a windowsill"
|
|
34
40
|
|
|
35
41
|
# Free/local skills can still use your own provider keys when documented
|
|
@@ -39,21 +45,25 @@ OPENAI_API_KEY=... skills run brand-style-guide ./brand-notes.md
|
|
|
39
45
|
|
|
40
46
|
## Remote-Only Premium Skills
|
|
41
47
|
|
|
42
|
-
Premium skills are SaaS runs. The CLI and MCP server submit them to the
|
|
43
|
-
|
|
44
|
-
commands. They do not fall back to bundled local execution when auth is
|
|
45
|
-
or the platform is unavailable.
|
|
48
|
+
Premium skills are hosted SaaS runs. The CLI and MCP server submit them to the
|
|
49
|
+
configured hosted API, create local run metadata, and then expose status and
|
|
50
|
+
artifact commands. They do not fall back to bundled local execution when auth is
|
|
51
|
+
missing or the platform is unavailable.
|
|
46
52
|
|
|
47
53
|
Use `SKILLS_API_KEY` or `skills auth login` for premium hosted execution:
|
|
48
54
|
|
|
49
55
|
```bash
|
|
56
|
+
skills setup --mode hosted
|
|
50
57
|
skills auth login
|
|
51
58
|
skills run image "editorial product photo on a white sweep"
|
|
52
59
|
skills runs status <run-id>
|
|
53
60
|
skills exports download <run-id>
|
|
54
61
|
```
|
|
55
62
|
|
|
56
|
-
`
|
|
63
|
+
`skills auth login` uses browser/device-code auth by default. Email code login
|
|
64
|
+
is still available with `skills auth login --email you@example.com`.
|
|
65
|
+
|
|
66
|
+
`SKILLS_API_KEY` is the hosted account credential. It is not a provider
|
|
57
67
|
credential. Provider keys such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or
|
|
58
68
|
`GEMINI_API_KEY` remain supported only for free/local OSS skills whose
|
|
59
69
|
requirements explicitly document local provider use.
|
|
@@ -67,6 +77,8 @@ requirements explicitly document local provider use.
|
|
|
67
77
|
| `skills pin --category "Development Tools"` | | Pin all skills in a category |
|
|
68
78
|
| `skills unpin <name>` | | Remove a project pin |
|
|
69
79
|
| `skills pins list` | | List pinned skills |
|
|
80
|
+
| `skills setup --mode hosted` | | Configure hosted mode with a compatible API origin |
|
|
81
|
+
| `skills setup --mode local` | | Configure local-only mode without hosted credentials |
|
|
70
82
|
| `skills setup agents` | | Register the Skills MCP server with all supported agents |
|
|
71
83
|
| `skills list` | `ls` | List available skills (filter with `-c`, `--pinned`, `-t`, `--brief`) |
|
|
72
84
|
| `skills search <query>` | `s` | Search by name, description, or tags |
|
|
@@ -84,7 +96,11 @@ requirements explicitly document local provider use.
|
|
|
84
96
|
| `skills doctor` | | Check env vars, system deps, and pinned skill health |
|
|
85
97
|
| `skills test [name]` | | Test skill readiness (env, system, npm deps) |
|
|
86
98
|
| `skills outdated` | | Compare pinned vs registry versions |
|
|
87
|
-
| `skills auth
|
|
99
|
+
| `skills auth login` | | Sign in to the hosted API with browser/device-code auth or email code |
|
|
100
|
+
| `skills billing status` | | Show hosted account plan and balance |
|
|
101
|
+
| `skills billing checkout` | | Create a hosted subscription checkout session |
|
|
102
|
+
| `skills billing portal` | | Create a hosted customer portal session |
|
|
103
|
+
| `skills credits buy <amount>` | | Create a hosted credit-pack checkout session |
|
|
88
104
|
| `skills setup-info` | | Version, pinned skills, agent configs, paths |
|
|
89
105
|
| `skills export` | | Export pinned skills as JSON |
|
|
90
106
|
| `skills import <file>` | | Pin skills from a JSON export |
|
|
@@ -196,14 +212,18 @@ skills mcp --register claude # Auto-register with Claude Code
|
|
|
196
212
|
skills mcp --register all # Register with all supported agents
|
|
197
213
|
```
|
|
198
214
|
|
|
199
|
-
##
|
|
215
|
+
## Hosted Account
|
|
200
216
|
|
|
201
217
|
```bash
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
218
|
+
skills setup --mode hosted
|
|
219
|
+
skills auth login
|
|
220
|
+
skills billing status
|
|
205
221
|
```
|
|
206
222
|
|
|
223
|
+
Hosted account, billing, and credit management use the configured hosted API.
|
|
224
|
+
The public package only stores local configuration and CLI credentials; Stripe,
|
|
225
|
+
customer records, and hosted execution remain platform concerns.
|
|
226
|
+
|
|
207
227
|
## Dashboard
|
|
208
228
|
|
|
209
229
|
```bash
|
|
@@ -254,8 +274,8 @@ folders and agent-native skill folders are never used as skill libraries.
|
|
|
254
274
|
└── tmp/
|
|
255
275
|
```
|
|
256
276
|
|
|
257
|
-
Auth stays global in `~/.skills/auth.json`. Registry and doc caches
|
|
258
|
-
`~/.cache/skills` or the remote API, not inside project `.skills`.
|
|
277
|
+
Auth stays global in `~/.hasna/skills/auth.json`. Registry and doc caches
|
|
278
|
+
belong in `~/.cache/skills` or the remote API, not inside project `.skills`.
|
|
259
279
|
|
|
260
280
|
## Development
|
|
261
281
|
|
|
@@ -287,7 +307,7 @@ Project `.skills/` is reserved for runtime state and outputs.
|
|
|
287
307
|
## Data Directory
|
|
288
308
|
|
|
289
309
|
Global configuration is stored in `~/.hasna/skills/`. Auth is stored in
|
|
290
|
-
`~/.skills/auth.json`. Project runtime data is stored in `.skills/runs`,
|
|
310
|
+
`~/.hasna/skills/auth.json`. Project runtime data is stored in `.skills/runs`,
|
|
291
311
|
`.skills/exports`, `.skills/tmp`, and optional `.skills/project.json`.
|
|
292
312
|
|
|
293
313
|
## License
|