@jarel/myskills 0.1.0-alpha.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 +80 -0
- package/dist/index.js +17956 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# MySkills CLI
|
|
2
|
+
|
|
3
|
+
Command-line client for MySkills.
|
|
4
|
+
|
|
5
|
+
Package:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
@jarel/myskills
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Command:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
myskills
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Responsibilities:
|
|
18
|
+
|
|
19
|
+
- login/logout/whoami
|
|
20
|
+
- create and validate skill packages
|
|
21
|
+
- scan packages before submission
|
|
22
|
+
- search and inspect authorized skills
|
|
23
|
+
- install/export/update/rollback packages
|
|
24
|
+
- submit drafts
|
|
25
|
+
- support maintainer/admin workflows through role-gated API calls
|
|
26
|
+
|
|
27
|
+
CLI tokens should be stored in the platform secret store where possible.
|
|
28
|
+
|
|
29
|
+
## Current Slice
|
|
30
|
+
|
|
31
|
+
Implemented commands:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
myskills version
|
|
35
|
+
myskills --version
|
|
36
|
+
myskills validate --path <file-directory-or-zip>
|
|
37
|
+
myskills scan --path <file-directory-or-zip>
|
|
38
|
+
myskills search [query] [--api-url <url>]
|
|
39
|
+
myskills info <skill-slug> [--api-url <url>]
|
|
40
|
+
myskills login [--api-url <url>] [--email <email>]
|
|
41
|
+
myskills logout [--api-url <url>] [--token <token>]
|
|
42
|
+
myskills whoami [--api-url <url>] [--token <token>]
|
|
43
|
+
myskills submit --path <file-directory-or-zip> [--api-url <url>] [--token <token>]
|
|
44
|
+
myskills review submissions [--api-url <url>] [--token <token>]
|
|
45
|
+
myskills review action <submission-id> --action <approve|publish> [--reason <text>]
|
|
46
|
+
myskills export <skill-slug> --version <version> --platform <platform> --output <dir>
|
|
47
|
+
myskills install <skill-slug> [--version <version>] [--platform <platform>] [--dir <install-root>]
|
|
48
|
+
myskills list [--dir <install-root>]
|
|
49
|
+
myskills update [skill-slug] [--version <version>] [--platform <platform>] [--dir <install-root>]
|
|
50
|
+
myskills rollback <skill-slug> [--dir <install-root>]
|
|
51
|
+
myskills token create --name <name> --scope <scope> [--scope <scope>]
|
|
52
|
+
myskills token list
|
|
53
|
+
myskills token revoke <token-id>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Public Alpha Install
|
|
57
|
+
|
|
58
|
+
The first public alpha package is distributed through npm under the `alpha` tag:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npm install -g @jarel/myskills@alpha
|
|
62
|
+
myskills --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Update the CLI with:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install -g @jarel/myskills@alpha
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`validate`, `scan`, and `submit` accept a manifest file, package directory, or local `.zip` package. `login` prompts for the password, handles MFA challenges with a TOTP or recovery code prompt, and stores the returned session token by normalized API URL. Token resolution is `--token`, then `MYSKILLS_TOKEN`, then the stored login token. The default token store writes `tokens.json` under `MYSKILLS_CONFIG_DIR`, `MYSKILLS_TOKEN_FILE`, or the user config directory with user-only file permissions. `logout` revokes stored session tokens and clears the local entry; stored API tokens are removed locally and must be revoked with `token revoke`.
|
|
72
|
+
|
|
73
|
+
`submit` validates and scans locally before sending package directories as normalized text entries or `.zip` packages as base64 archive uploads for server-side extraction. `export` downloads server-authorized bundle content, verifies byte size and SHA-256 against release metadata, and writes normalized package paths under the requested output directory. `install` uses the same verified bundle path, writes into `--dir`, `MYSKILLS_INSTALL_DIR`, or the user data directory, and records local state in `.myskills-app/installed.json`; `update` preserves a rollback snapshot before replacing files, and `rollback` restores the most recent snapshot. `token create` prints the plaintext API token only once and does not overwrite the stored login session. Platform keychain storage, browser login, platform-specific install adapters, and archive creation are still planned.
|
|
74
|
+
|
|
75
|
+
Common scopes:
|
|
76
|
+
|
|
77
|
+
- `skills:read` for MCP registry discovery.
|
|
78
|
+
- `profile:read` for `whoami`.
|
|
79
|
+
- `skills:submit` for author submissions.
|
|
80
|
+
- `review:read` and `review:write` for maintainer review workflows.
|