openclaw-workflowskill 0.3.2 → 0.3.4
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 -6
- package/lib/adapters.ts +3 -4
- package/lib/openclaw-context.md +9 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,7 +26,11 @@ Requires [OpenClaw](https://openclaw.ai).
|
|
|
26
26
|
|
|
27
27
|
### 1. Set your profile to Coding
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
```bash
|
|
30
|
+
openclaw config set tools.profile coding
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The `coding` profile grants the agent filesystem access, which is required to read and write workflow files. For more granular access configuration, refer to the [OpenClaw documentation](https://docs.openclaw.ai/).
|
|
30
34
|
|
|
31
35
|
### 2. Install the plugin
|
|
32
36
|
|
|
@@ -34,13 +38,24 @@ In OpenClaw settings, change your profile from `messaging` (the default) to `cod
|
|
|
34
38
|
openclaw plugins install openclaw-workflowskill
|
|
35
39
|
```
|
|
36
40
|
|
|
37
|
-
### 3.
|
|
41
|
+
### 3. Configure
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
openclaw config set plugins.allow '["openclaw-workflowskill"]'
|
|
45
|
+
openclaw config set tools.alsoAllow '["openclaw-workflowskill"]'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The first command allowlists the plugin so the gateway loads it. The second makes its tools available in every session — including cron jobs — so agents can invoke `workflowskill_run` to execute workflows autonomously.
|
|
49
|
+
|
|
50
|
+
### 4. Restart the gateway
|
|
38
51
|
|
|
39
52
|
```bash
|
|
40
53
|
openclaw gateway restart
|
|
41
54
|
```
|
|
42
55
|
|
|
43
|
-
|
|
56
|
+
The gateway loads plugins and config at startup. A restart is required to pick up the plugin installation and config changes from the previous steps.
|
|
57
|
+
|
|
58
|
+
### 5. Verify
|
|
44
59
|
|
|
45
60
|
```bash
|
|
46
61
|
openclaw plugins list
|
|
@@ -52,7 +67,7 @@ openclaw skills list
|
|
|
52
67
|
|
|
53
68
|
> **Note:** `workflowskill_llm` uses your Anthropic credentials from the main agent — no separate API key configuration needed.
|
|
54
69
|
|
|
55
|
-
###
|
|
70
|
+
### 6. Create a workflow
|
|
56
71
|
|
|
57
72
|
Just tell the agent what you want to automate:
|
|
58
73
|
|
|
@@ -64,7 +79,7 @@ Just tell the agent what you want to automate:
|
|
|
64
79
|
>
|
|
65
80
|
> Run complete: 4 AI stories found, summary drafted. Ready to schedule — want me to set up a daily cron at 8 AM?
|
|
66
81
|
|
|
67
|
-
###
|
|
82
|
+
### 7. Schedule it
|
|
68
83
|
|
|
69
84
|
Ask the agent to set up a cron job, or add one manually at `~/.openclaw/cron/jobs.json`:
|
|
70
85
|
|
|
@@ -80,6 +95,14 @@ Ask the agent to set up a cron job, or add one manually at `~/.openclaw/cron/job
|
|
|
80
95
|
|
|
81
96
|
Your agent will use `"model": "haiku"` for cron jobs, ensuring execution is cheap and lightweight.
|
|
82
97
|
|
|
98
|
+
> **Important:** Plugin tools are not available in sessions by default. Before scheduling, ensure `tools.alsoAllow` includes `openclaw-workflowskill`:
|
|
99
|
+
>
|
|
100
|
+
> ```bash
|
|
101
|
+
> openclaw config set tools.alsoAllow '["openclaw-workflowskill"]'
|
|
102
|
+
> ```
|
|
103
|
+
>
|
|
104
|
+
> Without this, cron sessions cannot invoke `workflowskill_run` and will fail silently.
|
|
105
|
+
|
|
83
106
|
## Tools
|
|
84
107
|
|
|
85
108
|
Registers four tools with the OpenClaw agent:
|
|
@@ -177,9 +200,12 @@ To test changes, link the plugin locally and restart the OpenClaw gateway:
|
|
|
177
200
|
```bash
|
|
178
201
|
openclaw plugins install --link "$(pwd)"
|
|
179
202
|
openclaw gateway restart
|
|
180
|
-
openclaw tools invoke workflowskill_validate '{"content": "..."}'
|
|
181
203
|
```
|
|
182
204
|
|
|
205
|
+
Then verify tools work by asking the agent:
|
|
206
|
+
|
|
207
|
+
> Validate this workflow: `inputs: { url: { type: string } }`
|
|
208
|
+
|
|
183
209
|
## License
|
|
184
210
|
|
|
185
211
|
MIT
|
package/lib/adapters.ts
CHANGED
|
@@ -10,12 +10,11 @@ export interface GatewayConfig {
|
|
|
10
10
|
timeoutMs?: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// Only workflowskill_run is truly recursive — a workflow step calling it
|
|
14
|
+
// would launch another workflow with the same adapter, risking infinite loops.
|
|
15
|
+
// The other plugin tools (validate, runs, llm) are leaf operations and safe.
|
|
14
16
|
const SELF_REFERENCING_TOOLS = new Set([
|
|
15
|
-
'workflowskill_validate',
|
|
16
17
|
'workflowskill_run',
|
|
17
|
-
'workflowskill_runs',
|
|
18
|
-
'workflowskill_llm',
|
|
19
18
|
]);
|
|
20
19
|
|
|
21
20
|
/** ToolAdapter that delegates to the Gateway HTTP API via POST /tools/invoke. */
|
package/lib/openclaw-context.md
CHANGED
|
@@ -25,3 +25,12 @@ Always set `"model": "haiku"` on cron payloads — cron runs are lightweight orc
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
|
+
|
|
29
|
+
> **Important:** Plugin tools are not available in sessions by default.
|
|
30
|
+
> Before scheduling, ensure `tools.alsoAllow` includes `openclaw-workflowskill`:
|
|
31
|
+
>
|
|
32
|
+
> ```bash
|
|
33
|
+
> openclaw config set tools.alsoAllow '["openclaw-workflowskill"]'
|
|
34
|
+
> ```
|
|
35
|
+
>
|
|
36
|
+
> Without this, cron sessions cannot invoke `workflowskill_run` and will fail silently.
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "openclaw-workflowskill",
|
|
3
3
|
"name": "WorkflowSkill",
|
|
4
4
|
"description": "Author, validate, run, and review WorkflowSkill YAML workflows",
|
|
5
|
-
"version": "0.3.
|
|
5
|
+
"version": "0.3.4",
|
|
6
6
|
"skills": ["skills/workflowskill-author"],
|
|
7
7
|
"configSchema": {
|
|
8
8
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-workflowskill",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "WorkflowSkill plugin for OpenClaw — author, validate, run, and review YAML workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"workflowskill": "^0.3.
|
|
38
|
+
"workflowskill": "^0.3.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^25.3.0",
|