一键导入
team-create
// Create a collaborative agent team with roles, personalities, and skills. Use when: user says "create team", "build a team", "新建团队", "创建团队", "组建团队", "搭建团队". Do NOT use for managing existing teams or assigning tasks to teams.
// Create a collaborative agent team with roles, personalities, and skills. Use when: user says "create team", "build a team", "新建团队", "创建团队", "组建团队", "搭建团队". Do NOT use for managing existing teams or assigning tasks to teams.
| name | team-create |
| description | Create a collaborative agent team with roles, personalities, and skills. Use when: user says "create team", "build a team", "新建团队", "创建团队", "组建团队", "搭建团队". Do NOT use for managing existing teams or assigning tasks to teams. |
| user-invocable | true |
| allowed-tools | ["Read","Write","Edit","Bash","Glob","Grep","AskUserQuestion","WebSearch"] |
| argument-hint | [team-name] |
Interactive workflow for building a collaborative agent team.
A Team is an installable package — it bundles multiple OpenClaw Agents, each with its own identity (agent.md), personality (soul.md), and skill dependencies (skills.json), all self-contained and portable.
~/.agents/teams/{team-name}/
├── team.md # Team metadata + positioning
└── agents/
├── manager/ # MANDATORY — coordinator, never does work itself
│ ├── agent.md
│ ├── soul.md
│ └── skills.json # Skill dependencies (empty for coordinator)
├── {agent-slug}/
│ ├── agent.md # Agent identity + description
│ ├── soul.md # Personality, tone, working style
│ └── skills.json # This agent's skill dependencies with install sources
└── ...
---
name: {team-name}
description: "{one-line team purpose}"
version: "1.0.0"
agents:
- id: manager
name: "{Manager Display Name}"
role: coordinator
- id: {agent-slug}
name: "{Display Name}"
role: worker
---
{Markdown body: team mission, positioning, collaboration model between agents}
Each agent maps to an OpenClaw Agent. Defines WHO this agent is — identity and responsibilities only. No skill references here.
---
id: {agent-slug}
agentId: ""
name: "{Display Role Name}"
description: "{What this agent is responsible for}"
---
{Markdown body: role positioning, core responsibilities, how this agent
collaborates with other agents in the team}
id: internal role slug within the team, defined at creation time, immutableagentId: real OpenClaw Agent ID assigned by the system, backfilled at install time, left empty at creationDefines HOW this agent communicates and thinks — its personality.
# {Role Name} — Soul
## Personality
{Communication style, tone, attitude.}
## Working Style
{How this agent approaches tasks, priorities, decision-making.}
## Principles
{Core beliefs that guide decisions.}
Each agent has its OWN skills.json declaring its skill dependencies with
install sources. Format mirrors .skill-lock.json for compatibility.
{
"version": 1,
"skills": {
"{skill-id}": {
"source": "{owner/repo}",
"sourceType": "github",
"skillPath": "skills/{skill-id}/SKILL.md"
}
}
}
sourceType values:
"github" — install from GitHub repo (requires source as owner/repo)"cloud-hub" — install from OpenClaw Cloud Hub (requires source as hub skill ID)"local" — already available locally, no installation neededEvery team MUST have a manager agent with these properties:
managercoordinator in team.md"skills": {})$ARGUMENTS contains a team name, use it; otherwise askresearch-team)~/.agents/teams/{team-name}/ does not existAsk the user:
What kind of team do you want to create? Describe its purpose and mission.
manager agent is always first in the agents list with role: coordinatorThe manager agent is auto-created. Ask the user for worker agents:
What roles does this team need? (e.g., frontend developer, tester, PM)
For each role:
frontend-dev)For each agent (including manager):
For each agent, build its own skills.json:
~/.agents/.skill-lock.json — if skill exists there, copy source info~/.agents/skills-lock.json — same~/.agents/teams/{team-name}/agents/{slug}/ for each agent (manager + workers)team.mdagent.md + soul.md + skills.jsonfind tree listingTeam created successfully!
━━━━━━━━━━━━━━━━━━━━━━━━━
📁 ~/.agents/teams/{team-name}/
├── team.md — {description}
└── agents/
├── manager/
│ ├── agent.md — Coordinator
│ ├── soul.md
│ └── skills.json — 0 skills
├── {agent-1}/
│ ├── agent.md — {role}
│ ├── soul.md
│ └── skills.json — {N} skills
└── ...
Total: {N} agents (1 manager + {N-1} workers)
Per-agent skills:
• manager: (coordinator — no skills)
• {agent-1}: {skill-1}, {skill-2}, ...
• {agent-2}: {skill-1}, {skill-3}, ...
Merged skill manifest ({N} unique):
• {skill-1} — {sourceType}: {source}
• {skill-2} — {sourceType}: {source}
...
When a team is installed, the installer should:
agents/*/skills.json to collect every agent's skill dependencies~/.agents/skills/agent.md and soul.md to each agent's workspace via agents.files.setmanager agent — it is the coordinator entry point