360 Secure SkillHub
360 安全技能中心

Agent Creation

核心功能:根据用户需求生成OpenClaw智能体的标识、身份及定义其个性的SOUL.md配置,通过命令完成智能体创建、身份设置,替换配置文件并初始化记忆结构。典型场景:用户提及“创建智能体”“配置智能体身份”等需求时自动触发。输入为用户的创建需求,输出为符合规范的智能体工作区,支持自定义模型参数。

openlark
openlark
热度 40.90
最近更新 2026-05-11 17:37:15
分类:开发依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:自动化脚本 / 工作流 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add agent-creation
Metadata
name
agent-creation
description
Create a new OpenClaw agent with a workspace directory and SOUL.md configuration. Use when you need to create a new agent, set up an agent workspace, configure SOUL.md, or initialize agent memory structure.

Agent Creation Skill

This skill is used to create a new OpenClaw agent with the correct workspace structure.

Trigger Conditions

This skill is automatically activated when users mention keywords such as "create agent", "new agent", "agent add", "configure agent", "set up agent identity", etc.

Creation Process

Step 1: Generate Agent Information

Generate the following information based on the user's input:

Item Description
Agent Name Unique identifier, lowercase English, hyphen-separated
Identity Name Friendly name visible to users
SOUL.md Defines the agent's personality, communication style, and boundaries; affects interaction style

Step 2: Create Agent Using Commands

openclaw agents add <agent-name> --workspace ~/.openclaw/workspace-<agent-name>
openclaw agents set-identity --agent <agent-name> --name "<identity-name>"

Optional parameters:

  • --model <model-id>: Specify a default model for this agent

Step 3: Replace SOUL.md File

After successfully creating the agent via the command, replace the SOUL.md file content in the agent directory.

SOUL.md Template:

# SOUL.md — <identity-name>(<agent-name>)

## Identity
<agent identity description>

## Core Responsibilities
- <responsibility 1>
- <responsibility 2>
- <responsibility 3>

## Capability Boundaries
- <boundary 1>
- <boundary 2>

## Workflow
- <workflow step 1>
- <workflow step 2>

## Response Style
- <style element 1>
- <style element 2>

## Self-Introduction
When users ask questions like "Who are you?" or "What can you do?", respond in this style:

"<self-introduction template>"

Step 4: Set Up Memory Structure

Create a memory/YYYY-MM-DD.md file in the agent directory.

Important Notes

  • Agent Naming: Use lowercase letters and hyphens; avoid spaces and special characters
  • SOUL.md Required: Every agent must have this file
  • Directory Location: Place uniformly under ~/.openclaw/workspace-<agent-name>

Example

Create a customer service assistant agent that is professional, patient, and good at communication