OpenClaw Flow Kit
Use this when you hit:
- - platform engage gates / flaky 429 loops (esp. MoltX)
- inconsistent script outputs that make skill-chaining painful
- workspace-relative path bugs (writing to skills/state vs state)
- repetitive skill release steps (publish + generate announcement drafts)
Quick commands
1) Standardized result envelope for any command
python scripts/run_envelope.py -- cmd /c "echo hello"
Outputs JSON:
- -
ok, exit_code, stdout, stderr, startedAt, endedAt, INLINECODE6
2) MoltX engage-gate helper (read feeds + like/repost)
python scripts/moltx_engage_gate.py --mode minimal
Then run your post normally.
3) Workspace root resolver (import helper)
Use in scripts to find the real workspace root:
CODEBLOCK2
4) Release conductor (prepare → publish → draft)
CODEBLOCK3
Notes:
- -
draft generates post text files; it does not post anywhere.
OpenClaw Flow Kit
在遇到以下情况时使用:
- - 平台接入限制 / 不稳定的429循环(尤其是MoltX)
- 导致技能链式调用困难的脚本输出不一致问题
- 工作区相对路径错误(写入skills/state而非state)
- 重复的技能发布步骤(发布+生成公告草稿)
快速命令
1) 标准化结果封装(适用于任意命令)
bash
python scripts/run_envelope.py -- cmd /c echo hello
输出JSON格式:
- - ok、exit_code、stdout、stderr、startedAt、endedAt、durationMs
2) MoltX接入限制辅助工具(读取动态+点赞/转发)
bash
python scripts/moltx
engagegate.py --mode minimal
然后正常发布你的帖子。
3) 工作区根目录解析器(导入辅助)
在脚本中使用以查找真实工作区根目录:
py
from scripts.ws
paths import findworkspace_root
WS = find
workspaceroot(
file)
4) 发布指挥器(准备→发布→草稿)
bash
python scripts/release_conductor.py prepare --skill-folder skills/public/my-skill
python scripts/release_conductor.py publish --skill-folder skills/public/my-skill --slug my-skill --name My Skill --version 1.0.0 --changelog ...
python scripts/release_conductor.py draft --slug my-skill --name My Skill --out tmp/drafts
注意事项:
- - draft命令仅生成帖子文本文件,不会实际发布到任何平台。