← 返回 Skills 市场
spzwin

cms-config-myclaw

作者 spzwin · GitHub ↗ · v1.0.5 · MIT-0
cross-platform ⚠ suspicious
139
总下载
1
收藏
1
当前安装
6
版本数
在 OpenClaw 中安装
/install cms-config-myclaw
功能描述
一键交互式配置自己的 OpenClaw(龙虾)机器人,把公司内部 xg_cwork_im channel 绑定到指定 agent。
使用说明 (SKILL.md)

cms-config-myclaw

版本: v1.0.5

这个 skill 只做一件事:

  1. 配置并绑定自己的 xg_cwork_im 机器人到某个 OpenClaw agent

在这个 skill 里,用户提到“龙虾”或“虾”时,都默认等同于 OpenClaw

这个 skill 的默认形态必须是 CLI 交互式向导。 也就是说,用户应该是跟着终端一步一步完成配置,而不是直接丢一段 JSON 或让 AI 静默改配置。

什么时候使用

  • “配置我的虾”
  • “配置我的龙虾”
  • “配置我的 OpenClaw 机器人”
  • “把龙虾接到公司内部通道上”
  • “把 xg_cwork_im 绑定到某个 agent”
  • “重建我的龙虾机器人配置”

绑定的意义

绑定不只是把一段配置写进 openclaw.json

真正的作用是:

  • 把公司内部的 xg_cwork_im channel 接入 OpenClaw
  • 为你创建或更新一个工作协同机器人
  • 把这台机器人的消息路由到你指定的 agent
  • 让你后续可以直接在互动页面里给这个 agent 发消息

用户选择哪个 agent,后续这台机器人收到的消息就会交给哪个 agent 处理。

换句话说:

  • 机器人负责“收消息”
  • xg_cwork_im 插件负责“把公司内部工作平台里的消息接进 OpenClaw”
  • binding 负责“决定这些消息最终交给哪个 agent”

如果没有绑定,机器人虽然存在,但 OpenClaw 不知道该把消息交给谁。

用户视角怎么理解这件事

从用户视角看,这不是在“配一堆技术参数”,而是在做一件更直白的事:

“我想把公司内部的这个 channel 接到我本地的 OpenClaw 上,这样我就可以通过公司内部的互动页面,远程和某个 agent 说话。”

所以整个 skill 的目标其实是把下面这条链路打通:

登录 appKey -> cms-auth-skills -> access-token -> 创建机器人 -> 返回 robot appKey + agentId -> 写入 channels/accounts/bindings -> 重启 Gateway -> 打开互动页面发消息

配置前用户需要准备什么

首要前置条件:必须事先安装并固定以下插件:

openclaw plugins install @xgjktech/xg_cwork_im --pin
openclaw plugins install clawhub:dynamic-session-context

除此之外,用户还需要准备:

  1. 一个可用的工作协同登录 appKey
  2. 想绑定到哪个 agent
  3. 想给机器人起什么名字

其中:

  • 这里向用户索要的 appKey 只用于登录鉴权、换取 access-token
  • 创建机器人成功后,接口会返回另一份 robot appKey,实际写入 channels.xg_cwork_im.accounts
  • 如果上下文或已有参数里已经有登录 appKey,默认直接复用
  • avatargroupLabelremark 都不是必要输入,统一使用默认空值

CLI 交互应该怎么引导

向导应该始终按下面这种节奏引导用户:

  1. 先告诉用户“这是什么、为什么要绑定、完成后能怎么用”
  2. 再列出全部 agent,让用户选择
  3. 再收集登录 appKey 和机器人名称
  4. 在真正写入前展示执行摘要,并解释本次绑定会产生什么效果
  5. 配置写入完成后,先告诉用户“已经配置完成”,再提示即将重启 Gateway
  6. 重启后明确告诉用户去打开互动链接,并建议发一条测试消息验证

用户实际怎么用

典型使用方式是:

  1. 运行 setup_myclaw.py
  2. 按提示选择一个 agent
  3. 输入或复用登录 appKey
  4. 输入机器人名称
  5. 确认执行
  6. 等待脚本自动完成注册、插件检查、配置写入和 Gateway 重启
  7. 打开脚本输出的公司内部互动链接
  8. 在公司内部互动页面里给机器人发一条测试消息,确认回复来自你绑定的 agent

用户完成后怎么用

配置成功后,脚本会输出一个互动链接:

https://sg-al-cwork-web.mediportal.com.cn/xg-claw/web/dist/?xgToken=xxx

用户打开这个链接后,就可以直接进入公司内部互动页面,给自己的机器人发送消息。 这一步的实际意义是:通过公司内部的 channel,远程和本地 OpenClaw 上的目标 agent 互动。

推荐用户配置完成后立刻做一次最小验证:

  1. 打开互动链接
  2. 发一条简单消息,比如“你好”
  3. 确认是否由目标 agent 正常回复

如果这一步正常,就说明整个绑定链路已经打通。

如果用户不知道第一句该发什么,可以建议动态一点的话术,而不是写死成某个固定角色:

  1. “你好,我现在正在验证你是否已经接到这个 agent,请先回复我一句。”
  2. “请告诉我,你现在对应的是哪个 agent。”
  3. “我刚完成绑定,请用一句简短的话确认你已经可以正常工作。”

用户视角里,后续不需要继续理解 channels、bindings、插件这些内部结构。 对用户来说,更自然的理解应该是:

“我已经把公司内部的这个 channel 接到了当前选择的 agent 上,后面我只需要打开互动链接和它说话。”

执行方式

主向导:

openclaw plugins install @xgjktech/xg_cwork_im --pin
openclaw plugins install clawhub:dynamic-session-context
python3 cms-config-myclaw/scripts/setup_myclaw.py

如果已经有可复用的登录 appKey,默认优先复用,不要重复追问。可以直接这样执行:

CMS_CONFIG_MYCLAW_APP_KEY=your_app_key python3 cms-config-myclaw/scripts/setup_myclaw.py

交互规则

  1. 默认只通过脚本执行,不默认手工改 openclaw.json
  2. 任何写操作前都必须向用户展示摘要并获得确认。
  3. 如果目标 agent 已有 xg_cwork_im account 或 binding,必须先展示旧状态,再确认是否覆盖。
  4. 这个 skill 依赖 cms-auth-skills,登录 appKey -> access-token 统一交给依赖 skill 处理。
  5. 当脚本已经列出全部 agent 后,后续说明里也必须继续完整列出,不要把候选缩成少数几个推荐项。
  6. 交互式向导默认只向用户询问必要信息:登录 appKey 和机器人名称;avatargroupLabelremark 使用默认空值。
  7. 如果上下文、已有记忆或已知参数里已经存在可用登录 appKey,默认直接复用;只有在没有现成 appKey,或用户明确要求更换时才再问。
  8. 不要把用户输入的登录 appKey 和创建机器人接口返回的 robot appKey 混为一谈;真正写入 channel account 的是后者。
  9. 每次执行时,都要让用户明确知道“当前进行到哪一步、下一步会发生什么”,保持 CLI 交互的连续感。
  10. 不要把引导文案写死到某个固定 agent、固定角色或固定业务场景上;应尽量围绕用户当前选择的 agent 动态说明。
  11. 对用户的解释重点应围绕“这是公司内部 channel 的接入与绑定”,而不是只围绕配置文件字段本身。

可选参数

python3 cms-config-myclaw/scripts/setup_myclaw.py --dry-run
python3 cms-config-myclaw/scripts/setup_myclaw.py --config-file /path/to/openclaw.json
安全使用建议
This skill appears to do what it says: create/update a private robot and bind the company xg_cwork_im channel to a chosen agent by editing your openclaw.json and restarting the Gateway. Before running it, review and accept these operational risks: (1) Inspect the cms-auth-skills login.py that the script will execute (resolve_cms_auth_login_script searches parent folders and runs that script). Make sure no malicious or unexpected login.py is present in your workspace. (2) The HTTP client disables TLS verification (verify=False) and suppresses warnings — on untrusted networks this could enable MITM attacks; confirm you are on a trusted corporate network or modify the code to enable verification. (3) The script will write to and restart your OpenClaw Gateway — back up your config (the script provides backups) and be ready to restore if needed. (4) If you rely on the optional CMS_CONFIG_MYCLAW_APP_KEY env var, be aware that value will be used to exchange for an access-token and sent to corporate auth endpoints. Recommended steps: review the two included Python scripts line-by-line (especially any local cms-auth-skills you have installed), run with --dry-run first, ensure openclaw binary and cms-auth-skills are the expected trusted versions, and keep a manual backup of ~/.openclaw/openclaw.json before performing the binding.
功能分析
Type: OpenClaw Skill Name: cms-config-myclaw Version: 1.0.5 The skill bundle is designed to configure a specific IM integration by modifying the 'openclaw.json' configuration file, installing plugins, and handling authentication credentials (appKey). While its behavior aligns with the stated purpose, it performs high-risk operations in 'scripts/setup_myclaw.py' and 'scripts/openclaw_config.py', including system command execution via subprocess and network requests to 'mediportal.com.cn' with SSL verification explicitly disabled (verify=False). These security vulnerabilities, combined with the automated modification of system-level configurations and plugin management, warrant a suspicious classification despite the lack of clear evidence of intentional malice.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description, SKILL.md and the included scripts all focus on creating a private robot, exchanging a login appKey for an access token, writing the returned robot appKey into ~/.openclaw/openclaw.json, and restarting the OpenClaw Gateway. The external endpoints, plugin checks, and config file operations are consistent with binding xg_cwork_im to a chosen agent.
Instruction Scope
Runtime instructions and scripts are scoped to the stated task: they prompt for an appKey and robot name, call the company robot-register API, update openclaw.json, and restart the gateway. Two notable behaviors to be aware of: (1) the script locates and executes a local cms-auth-skills login.py via subprocess (it searches parent directories for that file and runs it to obtain an access-token), and (2) HTTP requests are made with verify=False (TLS verification disabled) and related warnings are suppressed. Both are operational choices that increase risk (possible execution of an unexpected local script; susceptibility to MITM if run on untrusted networks) but are consistent with a corporate intranet usage scenario described by the skill.
Install Mechanism
There is no external download or install spec; the skill is instruction + local scripts. Nothing is fetched from arbitrary URLs during install. The scripts do call out to existing local binaries (openclaw) and a local cms-auth-skills script, which is consistent with the documented preconditions.
Credentials
The skill does not request unrelated environment secrets. It optionally accepts CMS_CONFIG_MYCLAW_APP_KEY (documented in SKILL.md) to prefill login appKey — the metadata lists no required env vars, which matches that it's optional. The script will pass the provided login appKey to the cms-auth-skills login flow and then transmit the resulting access-token to the company robot registration endpoint; this credential usage aligns with the stated purpose but means you are sending your login key/token to corporate endpoints, as intended.
Persistence & Privilege
The skill writes to the user's OpenClaw config (backs it up first) and restarts the Gateway. That is a high-impact action but is precisely the declared purpose (making the binding live). The skill is not always: true and does not attempt to alter other skills' configs beyond OpenClaw channel/plugin entries. You should expect and permit these changes only if you trust the environment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cms-config-myclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cms-config-myclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.5
自动升级发布:一键交互式配置自己的 OpenClaw(龙虾)机器人,把公司内部 xg_cwork_im channel 绑定到指定 agent。
v1.0.4
自动升级发布:一键交互式配置自己的 OpenClaw(龙虾)机器人,把公司内部 xg_cwork_im channel 绑定到指定 agent。
v1.0.3
cms-config-myclaw v1.0.3 - 移除“查看我已有的机器人”相关功能和脚本,专注仅支持 xg_cwork_im channel 绑定与机器人配置。 - 精简 skill 说明文档,聚焦单一用途:将公司内部 xg_cwork_im channel 绑定到指定 OpenClaw agent。 - 明确区分登录 appKey 和 robot appKey,规范交互文案及参数收集方式。 - 优化 CLI 向导流程说明,简化必选参数收集,去除不必要输入项与冗余功能描述。 - 删除无关文件和脚本以减少维护负担。
v1.0.2
更新到版本 1.6.0,修复了一些问题并优化了安装流程
v1.0.1
- Introduced dependency on cms-auth-skills for access-token management (updated SKILL.md). - Added scripts/http_support.py for HTTP-related functionality. - Removed obsolete files: TEST.txt, package.json, and scripts/auth_helper.py. - Updated documentation to reflect new dependency and updated the configuration/binding flow accordingly.
v1.0.0
Initial release of cms-config-myclaw. - Adds interactive CLI-based setup for configuring and binding OpenClaw (“龙虾”) robots to a user-selected agent. - Allows users to view their existing robots linked to the current account. - Guides users through agent selection, appKey input (with automatic reuse if available), and robot naming. - Provides execution summary and clear step-by-step feedback during configuration and binding. - Outputs a company-interaction link after setup for immediate testing and verification.
元数据
Slug cms-config-myclaw
版本 1.0.5
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 6
常见问题

cms-config-myclaw 是什么?

一键交互式配置自己的 OpenClaw(龙虾)机器人,把公司内部 xg_cwork_im channel 绑定到指定 agent。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 139 次。

如何安装 cms-config-myclaw?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cms-config-myclaw」即可一键安装,无需额外配置。

cms-config-myclaw 是免费的吗?

是的,cms-config-myclaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cms-config-myclaw 支持哪些平台?

cms-config-myclaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cms-config-myclaw?

由 spzwin(@spzwin)开发并维护,当前版本 v1.0.5。

💬 留言讨论