← Back to Skills Marketplace
xf9070

agentCreate

by xf9070 · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ⚠ suspicious
359
Downloads
0
Stars
1
Active Installs
5
Versions
Install in OpenClaw
/install agentcreate
Description
创建或卸载独立的 OpenClaw Agent,支持独立工作区、可选通道绑定(飞书/微信等)、模型选择。触发词:创建agent、new agent、创建机器人、agent setup、new bot、卸载agent、删除agent、remove agent
README (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 写入,禁止直接编辑配置文件
  • 修改配置前先备份当前值,失败时立即回滚
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agentcreate
  3. After installation, invoke the skill by name or use /agentcreate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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问题
Metadata
Slug agentcreate
Version 1.0.4
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 5
Frequently Asked Questions

What is agentCreate?

创建或卸载独立的 OpenClaw Agent,支持独立工作区、可选通道绑定(飞书/微信等)、模型选择。触发词:创建agent、new agent、创建机器人、agent setup、new bot、卸载agent、删除agent、remove agent. It is an AI Agent Skill for Claude Code / OpenClaw, with 359 downloads so far.

How do I install agentCreate?

Run "/install agentcreate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is agentCreate free?

Yes, agentCreate is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does agentCreate support?

agentCreate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created agentCreate?

It is built and maintained by xf9070 (@xf9070); the current version is v1.0.4.

💬 Comments