← 返回 Skills 市场
xf9070

agentCreate

作者 xf9070 · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ⚠ suspicious
359
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install agentcreate
功能描述
创建或卸载独立的 OpenClaw Agent,支持独立工作区、可选通道绑定(飞书/微信等)、模型选择。触发词:创建agent、new agent、创建机器人、agent setup、new bot、卸载agent、删除agent、remove agent
使用说明 (SKILL.md)

agentCreate

创建或卸载独立的 OpenClaw Agent。每个 Agent 拥有独立工作区、独立会话、独立模型,与主 Agent 完全隔离。

技术实现细节:

所有 CLI 操作必须通过 qclaw-openclaw skill 的 wrapper 脚本执行,禁止直接调用 openclaw 命令。


创建 Agent

收集信息(按顺序引导,每次只问必要项):

  1. Agent ID(英文,小写字母/数字/连字符,唯一)
  2. 通道绑定(可选):先运行 config get channels 列出已有通道和账号供选择;若新建账号,收集对应凭据;也可跳过不绑定
  3. 模型:运行 models list 获取实时列表供用户选择,默认 qclaw/modelroute
  4. 确认:展示汇总表,用户确认后再执行

执行前检查:

  • Agent ID 未被占用(agents list
  • 若绑定通道,账号已存在或已新建

详细命令见 references/create.md


卸载 Agent

  1. 列出所有 agent(agents list + agents bindings
  2. 用户选择目标 agent(禁止选择 main
  3. 展示 agent 信息,用户选择卸载模式:
    • 仅取消通道绑定(保留工作区和账号)
    • 完全卸载(删除 agent + 工作区 + 通道账号)
  4. 完全卸载需用户输入 yes 二次确认(不可恢复)

详细命令见 references/delete.md


核心约束

  • 禁止删除 main agent
  • 完全卸载时必须同步删除通道账号配置,否则消息可能 fallback 到 main agent
  • 删除账号配置必须用 Python 直接操作 openclaw.jsongateway config.patch 只能合并写入,无法删除 key)
  • 新增/修改配置通过 gateway config.patch 写入,禁止直接编辑配置文件
  • 修改配置前先备份当前值,失败时立即回滚
安全使用建议
This skill roughly does what it says (create/uninstall OpenClaw agents) but has red flags you should consider before installing or running it: 1) It references and edits local configuration and workspaces and asks you to provide channel credentials — only proceed if you trust the skill and its operator. 2) It uses a hardcoded filesystem path (/Users/honor/.qclaw/openclaw.json) and an application path under /Applications; verify these paths are correct for your system and not targeting another user's files. 3) The skill instructs direct edits (Python) to remove keys because gateway config.patch 'cannot delete keys' — prefer tools that safely remove keys or inspect the wrapper script and gateway behavior before running destructive operations. 4) Ask for the qclaw-openclaw wrapper script contents and verify it calls the real CLI safely; test operations in a backup or disposable environment first. 5) Do not supply channel credentials unless you know how they are stored and are prepared to rotate them if needed. If you want to proceed, request the owner/source code of the wrapper and confirm the paths and backup/rollback behavior.
功能分析
Type: OpenClaw Skill Name: agentcreate Version: 1.0.4 The skill bundle contains hardcoded absolute paths to a specific user's home directory (/Users/honor/.qclaw/openclaw.json in references/delete.md), which is a significant security and portability flaw. It also includes instructions for the AI agent to execute Python code to directly modify configuration files and handles sensitive credentials like Feishu appId and appSecret. While these actions are aligned with the stated purpose of managing OpenClaw agents, the lack of path sanitization and the direct file manipulation represent high-risk behaviors.
能力评估
Purpose & Capability
The skill's commands and flows (agents add/delete, binding channels, running doctor/health) align with creating and removing agents. However, it references a specific SKILL_DIR under /Applications and a hardcoded home path (/Users/honor/.qclaw/openclaw.json) that do not match a generic 'create/uninstall' skill and suggest assumptions about the host environment.
Instruction Scope
Runtime instructions direct the agent to list agents/models and to read/write local configuration and workspaces. They explicitly instruct collecting channel credentials from users and writing them into config (via gateway config.patch) and, crucially, direct a Python script to delete keys by editing /Users/honor/.qclaw/openclaw.json. That accesses and modifies local config (potentially containing secrets) and uses a hardcoded user path; these actions expand scope beyond mere orchestration and require filesystem and secret handling privileges.
Install Mechanism
Instruction-only skill with no install steps or external downloads. No install-related risk detected.
Credentials
The skill declares no required env vars or config paths, yet its instructions assume access to specific local files/paths and the ability to create/delete workspaces and edit openclaw.json (which may contain channel secrets like appSecret). The skill also tells the agent to 'collect corresponding credentials' — acceptable for channel setup but not declared or scoped, and the hardcoded /Users/honor path is disproportionate and suspicious.
Persistence & Privilege
Skill is not always:true and doesn't request persistent privileges across agents. However it instructs modifying system/service configuration (openclaw.json) and deleting agent workspaces — normal for agent management but high-impact operations. Combine with undeclared file access, this increases risk if the skill runs autonomously.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentcreate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentcreate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
修复:通道绑定改为可选;首次启用飞书需 doctor --fix;删除账号改用 Python 直接操作
v1.0.0
首次发布:OpenClaw Agent 创建与卸载工具,支持独立工作区、飞书通道绑定、模型选择
v1.0.3
路径更新到通用,使用 ~/.openclaw 和 os.path.expanduser
v1.0.2
修复路径硬编码问题,使用 ~/.openclaw 和 os.path.expanduser 兼容不同环境
v1.0.1
新增三种卸载模式,完全卸载时自动删除飞书账号避免fallback问题
元数据
Slug agentcreate
版本 1.0.4
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 5
常见问题

agentCreate 是什么?

创建或卸载独立的 OpenClaw Agent,支持独立工作区、可选通道绑定(飞书/微信等)、模型选择。触发词:创建agent、new agent、创建机器人、agent setup、new bot、卸载agent、删除agent、remove agent. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 359 次。

如何安装 agentCreate?

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

agentCreate 是免费的吗?

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

agentCreate 支持哪些平台?

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

谁开发了 agentCreate?

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

💬 留言讨论