@skunkceo/cli 1.0.2 → 1.0.6
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 +32 -16
- package/bin/setup.js +35 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,41 +1,57 @@
|
|
|
1
1
|
# Skunk CLI
|
|
2
2
|
|
|
3
|
-
Install and manage [Skunk Global](https://skunkglobal.com) skills for OpenClaw.
|
|
3
|
+
Install and manage [Skunk Global](https://skunkglobal.com) skills for [OpenClaw](https://openclaw.ai).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g @
|
|
8
|
+
npm install -g @skunkceo/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Quick Start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
skunk setup
|
|
15
|
+
```
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
This interactive wizard will:
|
|
18
|
+
1. Check your environment (Node.js, OpenClaw, WordPress Studio)
|
|
19
|
+
2. Install essential skills (WordPress, WooCommerce, SkunkCRM, SkunkForms, SkunkPages)
|
|
20
|
+
3. Guide you through next steps
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
skunk available
|
|
22
|
+
## Commands
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
skunk
|
|
24
|
+
```bash
|
|
25
|
+
skunk setup # Interactive setup wizard (start here!)
|
|
26
|
+
skunk install <skill> # Install a specific skill
|
|
27
|
+
skunk remove <skill> # Remove an installed skill
|
|
28
|
+
skunk list # List installed skills
|
|
29
|
+
skunk available # See all available skills
|
|
30
|
+
skunk help # Show help
|
|
25
31
|
```
|
|
26
32
|
|
|
27
|
-
## Available Skills
|
|
28
|
-
|
|
29
|
-
Browse all skills at: https://github.com/skunkceo/openclaw-skills
|
|
30
|
-
|
|
31
33
|
## What are Skills?
|
|
32
34
|
|
|
33
35
|
Skills teach OpenClaw how to use specific tools and services. Each skill contains instructions that help your AI assistant understand:
|
|
34
36
|
|
|
35
37
|
- What commands to run
|
|
36
|
-
- How to interpret results
|
|
38
|
+
- How to interpret results
|
|
37
39
|
- Best practices for the tool
|
|
38
40
|
|
|
41
|
+
After installing skills, restart OpenClaw to load them:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
openclaw gateway restart
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Available Skills
|
|
48
|
+
|
|
49
|
+
Browse all skills at: https://github.com/skunkceo/openclaw-skills
|
|
50
|
+
|
|
51
|
+
## Guide
|
|
52
|
+
|
|
53
|
+
Full guide: https://skunkglobal.com/guides/openclaw-wordpress
|
|
54
|
+
|
|
39
55
|
## Links
|
|
40
56
|
|
|
41
57
|
- [Skunk Global](https://skunkglobal.com)
|
package/bin/setup.js
CHANGED
|
@@ -179,6 +179,29 @@ async function main() {
|
|
|
179
179
|
process.exit(1);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
// OpenClaw
|
|
183
|
+
let openclawExists = commandExists('openclaw');
|
|
184
|
+
|
|
185
|
+
if (openclawExists) {
|
|
186
|
+
const openclawVersion = getVersion('openclaw');
|
|
187
|
+
success(`OpenClaw installed ${openclawVersion ? `(${openclawVersion})` : ''}`);
|
|
188
|
+
} else {
|
|
189
|
+
error('OpenClaw not found');
|
|
190
|
+
log('');
|
|
191
|
+
log(' OpenClaw is your AI assistant that uses these skills.');
|
|
192
|
+
log('');
|
|
193
|
+
log(' Follow the setup guide:');
|
|
194
|
+
log(` ${colors.cyan}https://skunkglobal.com/guides/openclaw-wordpress${colors.reset}`);
|
|
195
|
+
log('');
|
|
196
|
+
|
|
197
|
+
const proceed = await confirm('Continue installing skills anyway?', true);
|
|
198
|
+
if (!proceed) {
|
|
199
|
+
log('\n Run `skunk setup` again after installing OpenClaw.');
|
|
200
|
+
rl.close();
|
|
201
|
+
process.exit(0);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
182
205
|
// WordPress Studio
|
|
183
206
|
let studioExists = commandExists('studio');
|
|
184
207
|
|
|
@@ -188,20 +211,14 @@ async function main() {
|
|
|
188
211
|
} else {
|
|
189
212
|
warn('WordPress Studio not found');
|
|
190
213
|
log('');
|
|
191
|
-
log(' WordPress Studio is
|
|
214
|
+
log(' WordPress Studio is amazing for local WordPress development.');
|
|
215
|
+
log(' Your AI can create and manage sites through it.');
|
|
192
216
|
log('');
|
|
193
217
|
log(' Install it from: https://developer.wordpress.org/studio/');
|
|
194
218
|
log('');
|
|
195
219
|
log(' macOS: brew install --cask wordpress-studio');
|
|
196
220
|
log(' Other: Download from the website');
|
|
197
221
|
log('');
|
|
198
|
-
|
|
199
|
-
const proceed = await confirm('Continue setup anyway?', true);
|
|
200
|
-
if (!proceed) {
|
|
201
|
-
log('\n Run `skunk setup` again after installing WordPress Studio.');
|
|
202
|
-
rl.close();
|
|
203
|
-
process.exit(0);
|
|
204
|
-
}
|
|
205
222
|
}
|
|
206
223
|
|
|
207
224
|
// ─────────────────────────────────────────────────────────────────────────
|
|
@@ -239,23 +256,22 @@ async function main() {
|
|
|
239
256
|
// ─────────────────────────────────────────────────────────────────────────
|
|
240
257
|
step(3, totalSteps, 'Ready!');
|
|
241
258
|
log('');
|
|
242
|
-
log(` ${colors.green}
|
|
243
|
-
log('');
|
|
244
|
-
log(' Next steps:');
|
|
259
|
+
log(` ${colors.green}Skills installed!${colors.reset}`);
|
|
245
260
|
log('');
|
|
246
261
|
|
|
247
|
-
if (
|
|
248
|
-
log(
|
|
249
|
-
log(` ${colors.cyan}
|
|
262
|
+
if (openclawExists) {
|
|
263
|
+
log(` ${colors.yellow}Restart OpenClaw to load the new skills:${colors.reset}`);
|
|
264
|
+
log(` ${colors.cyan}openclaw gateway restart${colors.reset}`);
|
|
265
|
+
log('');
|
|
266
|
+
log(' Then start chatting:');
|
|
250
267
|
log('');
|
|
251
|
-
log(
|
|
252
|
-
log(` ${colors.cyan}"Install WooCommerce"${colors.reset}`);
|
|
268
|
+
log(` ${colors.cyan}"Create a new WordPress site called my-store"${colors.reset}`);
|
|
269
|
+
log(` ${colors.cyan}"Install WooCommerce and set up a UK store"${colors.reset}`);
|
|
253
270
|
log(` ${colors.cyan}"Install SkunkCRM"${colors.reset}`);
|
|
254
271
|
log(` ${colors.cyan}"Create a contact form"${colors.reset}`);
|
|
255
272
|
} else {
|
|
256
|
-
log('
|
|
257
|
-
log('
|
|
258
|
-
log(' 3. Chat with your AI to set up plugins');
|
|
273
|
+
log(' After installing OpenClaw, run `skunk setup` again');
|
|
274
|
+
log(' to verify everything is ready.');
|
|
259
275
|
}
|
|
260
276
|
|
|
261
277
|
log('');
|