@robosoft/skillhub-cli 0.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/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ Initial publishable release of SkillHub CLI.
6
+
7
+ ### Added
8
+
9
+ - `skillhub init`
10
+ - `skillhub install <skill[@version]>`
11
+ - `skillhub sync`
12
+ - `skillhub list`
13
+ - `skillhub remove <skill>`
14
+ - `skillhub create <skill>`
15
+ - `skillhub validate <skill|path>`
16
+ - `skillhub generate <skill> <template> <name>`
17
+ - Local demo registry with sample skills
18
+ - `AGENTS.md` and Cursor rule adapter generation
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SkillHub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,206 @@
1
+ # SkillHub CLI
2
+
3
+ Install reusable AI/project skills into any codebase, similar to installing packages with npm.
4
+
5
+ A SkillHub skill can include AI instructions, coding rules, templates, checklists, examples, and generator files.
6
+
7
+ ## Package Name
8
+
9
+ ```json
10
+ {
11
+ "name": "@robosoft/skillhub-cli",
12
+ "bin": {
13
+ "skillhub": "./bin/skillhub.mjs"
14
+ }
15
+ }
16
+ ```
17
+
18
+ The npm package is `@robosoft/skillhub-cli`, but the terminal command is still:
19
+
20
+ ```bash
21
+ skillhub
22
+ ```
23
+
24
+ ## Requirements
25
+
26
+ - Node.js 20+
27
+
28
+ ## Global Install After Publishing
29
+
30
+ ```bash
31
+ npm install -g @robosoft/skillhub-cli
32
+ skillhub --help
33
+ ```
34
+
35
+ ## Publish to npm
36
+
37
+ This zip is prepared for public npm publishing as `@robosoft/skillhub-cli`.
38
+
39
+ You must own or have access to the npm scope/organization `@robosoft`.
40
+
41
+ ```bash
42
+ npm login
43
+ npm whoami
44
+ npm org ls robosoft
45
+ npm pack --dry-run
46
+ npm publish --access public
47
+ ```
48
+
49
+ If you do not own the `@robosoft` npm scope, update the `name` field in `package.json` before publishing.
50
+
51
+ Example fallback:
52
+
53
+ ```json
54
+ {
55
+ "name": "@vikramrajput1987/skillhub-cli"
56
+ }
57
+ ```
58
+
59
+ ## Local Usage
60
+
61
+ From this folder:
62
+
63
+ ```bash
64
+ npm run skillhub -- --help
65
+ ```
66
+
67
+ Or run directly:
68
+
69
+ ```bash
70
+ node ./bin/skillhub.mjs --help
71
+ ```
72
+
73
+ ## Use in Any Project
74
+
75
+ Create SkillHub config inside your target project:
76
+
77
+ ```bash
78
+ skillhub init
79
+ ```
80
+
81
+ Install a skill from a local registry:
82
+
83
+ ```bash
84
+ skillhub install nextjs-clean-architecture --registry ./skillhub-registry
85
+ ```
86
+
87
+ Install a specific version:
88
+
89
+ ```bash
90
+ skillhub install shadcn-crud-generator@1.0.0 --registry ./skillhub-registry
91
+ ```
92
+
93
+ List installed skills:
94
+
95
+ ```bash
96
+ skillhub list
97
+ ```
98
+
99
+ Sync all skills from `skillhub.json`:
100
+
101
+ ```bash
102
+ skillhub sync
103
+ ```
104
+
105
+ Remove a skill:
106
+
107
+ ```bash
108
+ skillhub remove nextjs-clean-architecture
109
+ ```
110
+
111
+ Create a new skill package:
112
+
113
+ ```bash
114
+ skillhub create api-security-rules --category security --version 1.0.0
115
+ ```
116
+
117
+ Validate a skill:
118
+
119
+ ```bash
120
+ skillhub validate api-security-rules --registry ./skillhub-registry
121
+ ```
122
+
123
+ Generate code from an installed template:
124
+
125
+ ```bash
126
+ skillhub install shadcn-crud-generator --registry ./skillhub-registry
127
+ skillhub generate shadcn-crud-generator feature products --out src/features/products
128
+ ```
129
+
130
+ ## Demo Registry
131
+
132
+ This standalone project includes a demo local registry:
133
+
134
+ ```txt
135
+ skillhub-registry/
136
+ nextjs-clean-architecture/
137
+ shadcn-crud-generator/
138
+ accessibility-review/
139
+ ```
140
+
141
+ For testing inside this package:
142
+
143
+ ```bash
144
+ npm run demo:init
145
+ npm run demo:install
146
+ npm run demo:list
147
+ npm run demo:validate
148
+ ```
149
+
150
+ ## Project Output
151
+
152
+ After installing skills, the target project gets files like:
153
+
154
+ ```txt
155
+ .ai/skills/<skill-name>/
156
+ AGENTS.md
157
+ .cursor/rules/skillhub.mdc
158
+ skillhub.json
159
+ skillhub.lock.json
160
+ ```
161
+
162
+ ## Supported Commands
163
+
164
+ ```txt
165
+ skillhub init
166
+ skillhub install <skill[@version]>
167
+ skillhub sync
168
+ skillhub list
169
+ skillhub remove <skill>
170
+ skillhub create <skill>
171
+ skillhub validate <skill|path>
172
+ skillhub generate <skill> <template> <name>
173
+ ```
174
+
175
+ ## Remote Registry Contract
176
+
177
+ The CLI also supports remote registries:
178
+
179
+ ```bash
180
+ skillhub install nextjs-clean-architecture --registry https://your-registry.com/api
181
+ ```
182
+
183
+ Expected endpoint format:
184
+
185
+ ```txt
186
+ GET /skills/:name/:version
187
+ GET /skills/:name/latest
188
+ ```
189
+
190
+ Expected response:
191
+
192
+ ```json
193
+ {
194
+ "manifest": {
195
+ "name": "nextjs-clean-architecture",
196
+ "version": "1.0.0",
197
+ "entry": "SKILL.md"
198
+ },
199
+ "files": [
200
+ {
201
+ "path": "SKILL.md",
202
+ "content": "# Next.js Clean Architecture"
203
+ }
204
+ ]
205
+ }
206
+ ```