@yonpark/skillhub-cli 0.1.2 → 0.1.3

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 (2) hide show
  1. package/README.md +30 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,11 +22,17 @@ npm run build
22
22
  npm link # optional, to get a global `skillhub` command
23
23
  ```
24
24
 
25
- Alternatively, you can use `npx`:
25
+ Alternatively, you can run it without linking:
26
26
 
27
27
  ```bash
28
28
  npm run build
29
- npx skillhub-cli <command>
29
+ node bin/skillhub.js <command>
30
+ ```
31
+
32
+ If you published this package to npm, you can run it with `npx`:
33
+
34
+ ```bash
35
+ npx @yw9142/skillhub-cli <command>
30
36
  ```
31
37
 
32
38
  ## Commands
@@ -61,12 +67,14 @@ skillhub sync --strategy latest
61
67
  1. **Read local skills**
62
68
  - Runs `npx skills list -g` and parses the global skills:
63
69
  - For example:
70
+
64
71
  ```text
65
72
  Global Skills
66
73
 
67
74
  vercel-composition-patterns ~\.agents\skills\vercel-composition-patterns
68
75
  vercel-react-best-practices ~\.agents\skills\vercel-react-best-practices
69
76
  ```
77
+
70
78
  - Falls back to `npx skills generate-lock` + searching for a
71
79
  `skills-lock.json` file when necessary.
72
80
 
@@ -89,9 +97,11 @@ skillhub sync --strategy latest
89
97
 
90
98
  4. **Apply changes**
91
99
  - For skills that exist remotely but not locally, SkillHub runs:
100
+
92
101
  ```bash
93
- npx skills add vercel-labs/agent-skills --skill "<skill-name>" -g -y
102
+ npx skills add "<owner>/<repo>" --skill "<skill-name>" -g -y
94
103
  ```
104
+
95
105
  - For skills that exist locally but not in the Gist, the CLI updates
96
106
  `skillhub.json` in the Gist to reflect the union
97
107
 
@@ -106,16 +116,20 @@ Uploaded 0 changes, installed 4 skills (1 install failed – check logs)
106
116
 
107
117
  ## Gist Payload
108
118
 
109
- The Gist file `skillhub.json` currently uses a simple payload:
119
+ The Gist file `skillhub.json` stores both the skill name and its source repo
120
+ (so you can install skills from repos other than `vercel-labs/agent-skills`):
110
121
 
111
122
  ```json
112
123
  {
113
- "skills": ["vercel-composition-patterns", "vercel-react-best-practices"],
124
+ "skills": [
125
+ { "name": "vercel-composition-patterns", "source": "vercel-labs/agent-skills" },
126
+ { "name": "my-custom-skill", "source": "yw9142/my-agent-tools" }
127
+ ],
114
128
  "updatedAt": "2026-01-29T07:27:53.844Z"
115
129
  }
116
130
  ```
117
131
 
118
- - `skills`: list of skill names as reported by `skills list -g`
132
+ - `skills`: list of installed skills + where they came from (`owner/repo`)
119
133
  - `updatedAt`: ISO timestamp when the payload was last written
120
134
 
121
135
  This keeps the format easy to inspect and edit directly in GitHub if needed.
@@ -152,16 +166,20 @@ skillhub sync
152
166
 
153
167
  ## Notes and Limitations
154
168
 
155
- - The installer assumes your skills come from
156
- `vercel-labs/agent-skills` and calls:
169
+ - Local discovery uses `npx skills list -g` as the primary source. That output
170
+ usually does **not** include `owner/repo`, so SkillHub may fall back to a
171
+ default source (`vercel-labs/agent-skills`) unless it can infer a source from
172
+ `skills-lock.json`.
173
+ - For installs, SkillHub uses the stored `source` per skill:
174
+
157
175
  ```bash
158
- npx skills add vercel-labs/agent-skills --skill "<skill-name>" -g -y
176
+ npx skills add "<owner>/<repo>" --skill "<skill-name>" -g -y
159
177
  ```
160
- If a skill name doesn’t exist in that repo, the install will fail but
161
- the overall sync will continue.
178
+
179
+ If a skill name doesn’t exist in that repo, the install will fail but the
180
+ overall sync will continue.
162
181
  - The CLI currently focuses on **global** skills (`skills list -g`),
163
182
  not project-scoped skills.
164
183
  - Error messages try to surface both:
165
184
  - Which step failed (local list / lock file / install / Gist)
166
185
  - The underlying CLI output for easier debugging
167
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yonpark/skillhub-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "SkillHub CLI - sync skills with GitHub Gist",
5
5
  "bin": {
6
6
  "skillhub": "bin/skillhub.js"