Search

PythonReactSEOPDF
OpenClaw

openclaw-agent-builder

Use when creating OpenClaw agents, configuring workspaces, multi-agent routing, session isolation, or channel bindings.

a125917710 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install a12591771/openclaw-agent-builder

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

OpenClaw Agent Builder

为 OpenClaw 创建和配置 AI Agent 的完整指南。OpenClaw 使用基于工作空间的 Agent 架构,每个 Agent 拥有独立的会话、配置和上下文文件。

核心架构

~/.openclaw/
├── openclaw.json          # 主配置文件
├── agents/                # Agent 会话存储
│   ├── <agentId>/
│   │   ├── agent/         # Agent 配置
│   │   └── sessions/      # 会话历史 (JSONL)
│   └── main/              # 默认主 Agent
├── workspace/             # 主工作空间
│   ├── AGENTS.md          # 工作流指令
│   ├── SOUL.md            # 角色人格定义
│   ├── TOOLS.md           # 工具使用说明
│   ├── USER.md            # 用户配置
│   ├── MEMORY.md          # 长期记忆 (仅主会话)
│   ├── memory/            # 每日记忆文件
│   └── .learnings/        # 学习日志
└── skills/                # 技能目录

何时使用

场景 方案
需要专用 Agent 处理特定领域任务 创建新 Agent
需要隔离会话历史 使用多 Agent 路由
不同任务需要不同模型/工具配置 配置 Agent 专属设置
团队协作需要独立上下文 创建团队 Agent
多人共用 Gateway 但需要私密对话 配置 dmScope: per-channel-peer
同一用户跨频道保持会话连续 配置 identityLinks
飞书/钉钉群需要绑定特定 Agent 配置 bindings + requireMention

可选机制选择器

不是每个 Agent 都需要以下所有机制。根据实际需求选择:

机制 使用时机 配置位置
Bindings 需要精确控制消息路由到哪个 Agent bindings[]
dmScope 多人使用同一个聊天账号,需要隔离私密对话 session.dmScope
identityLinks 同一用户在多个频道联系你,希望共享会话 session.identityLinks
sendPolicy 阻止某些会话类型的消息发送(如 cron 任务不回复) session.sendPolicy
session.maintenance 高频率会话,需要自动清理过期会话 session.maintenance
threadBindings Discord/Slack 线程需要独立会话 session.threadBindings
sandbox 运行不受信代码或需要安全隔离 agents[].sandbox
tools allow/deny 限制 Agent 可使用的工具(如家庭 Agent 不允许...

Source information

Source
github
Repository
openclaw/skills
Path
skills/a12591771/openclaw-agent-builder
Version
—
Commit
3d99cabeca2d8debc0da0ccbecc38522f1eaa67a
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# OpenClaw Agent Builder

为 OpenClaw 创建和配置 AI Agent 的完整指南。OpenClaw 使用基于工作空间的 Agent 架构,每个 Agent 拥有独立的会话、配置和上下文文件。

## 核心架构

```
~/.openclaw/
├── openclaw.json          # 主配置文件
├── agents/                # Agent 会话存储
│   ├── <agentId>/
│   │   ├── agent/         # Agent 配置
│   │   └── sessions/      # 会话历史 (JSONL)
│   └── main/              # 默认主 Agent
├── workspace/             # 主工作空间
│   ├── AGENTS.md          # 工作流指令
│   ├── SOUL.md            # 角色人格定义
│   ├── TOOLS.md           # 工具使用说明
│   ├── USER.md            # 用户配置
│   ├── MEMORY.md          # 长期记忆 (仅主会话)
│   ├── memory/            # 每日记忆文件
│   └── .learnings/        # 学习日志
└── skills/                # 技能目录
```

## 何时使用

| 场景 | 方案 |
|------|------|
| 需要专用 Agent 处理特定领域任务 | 创建新 Agent |
| 需要隔离会话历史 | 使用多 Agent 路由 |
| 不同任务需要不同模型/工具配置 | 配置 Agent 专属设置 |
| 团队协作需要独立上下文 | 创建团队 Agent |
| 多人共用 Gateway 但需要私密对话 | 配置 `dmScope: per-channel-peer` |
| 同一用户跨频道保持会话连续 | 配置 `identityLinks` |
| 飞书/钉钉群需要绑定特定 Agent | 配置 `bindings` + `requireMention` |

## 可选机制选择器

**不是每个 Agent 都需要以下所有机制**。根据实际需求选择:

| 机制 | 使用时机 | 配置位置 |
|------|---------|---------|
| **Bindings** | 需要精确控制消息路由到哪个 Agent | `bindings[]` |
| **dmScope** | 多人使用同一个聊天账号,需要隔离私密对话 | `session.dmScope` |
| **identityLinks** | 同一用户在多个频道联系你,希望共享会话 | `session.identityLinks` |
| **sendPolicy** | 阻止某些会话类型的消息发送(如 cron 任务不回复) | `session.sendPolicy` |
| **session.maintenance** | 高频率会话,需要自动清理过期会话 | `session.maintenance` |
| **threadBindings** | Discord/Slack 线程需要独立会话 | `session.threadBindings` |
| **sandbox** | 运行不受信代码或需要安全隔离 | `agents[].sandbox` |
| **tools allow/deny** | 限制 Agent 可使用的工具(如家庭 Agent 不允许...

Related skills

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.