Agent Team Organization
/install agent-team-organization
Agent Team Organization
Build and maintain the OpenClaw Teams page as a lightweight team registry plus Control UI tree view.
Scope
Use this skill for:
- adding or editing the Teams tab in Control UI
- implementing named agent teams backed by a file registry
- supporting parent/child team nesting
- rendering the team list as an indented collapsible tree
- fixing team save/load issues between UI and gateway
- documenting the UI structure and file map for the Teams feature
Core design
Keep the feature simple:
- Store teams in a dedicated JSON registry instead of
agents.list - Reference agents by
agentIds[] - Support optional
parentIdfor hierarchy - Keep team CRUD isolated from broader config editing
- Make the UI readable first: tree list on the left, team editor on the right
Data model
Use this shape for each team:
type TeamRecord = {
id: string;
name: string;
description?: string;
parentId?: string;
agentIds: string[];
createdAt: string;
updatedAt: string;
};
Registry file:
~/.openclaw/workspace/teams/teams.json
UI pattern
Default page layout:
- Left column: team tree
- Right column: selected team editor
Expected behavior:
- top-level teams render normally
- child teams render under the parent with slight indentation
- parent rows expose a collapse/expand toggle
- selecting a team loads its editor state on the right
- parent selector supports nesting and unnesting
- prevent invalid nesting:
- no self-parenting
- no cycles
- no nesting under descendants
Gateway pattern
Expose dedicated methods:
teams.listteams.getteams.createteams.updateteams.delete
Keep validation inside the teams handler:
- team names unique, case-insensitive
agentIdsmust exist in current agent listparentIdmust exist when set- deleting a parent should unnest children rather than orphaning broken references
- deleting an agent should remove that agent from all teams
Implementation checklist
- Add/update
src/gateway/team-registry.ts - Add/update
src/gateway/server-methods/teams.ts - Register methods in gateway method lists/scopes
- Add UI types for
TeamRecord/TeamsListResult - Add teams state to
app.tsandapp-view-state.ts - Add teams controller for load/select behavior
- Add
views/teams.tsrenderer - Add navigation/i18n wiring for the Teams tab
- Build the UI after changes
- If save behavior is wrong, verify the live runtime bundle is actually carrying the new handler logic
Debugging rule
If the UI seems correct but saved team hierarchy disappears after clicking Save:
- inspect
~/.openclaw/workspace/teams/teams.json - confirm whether
parentIdis written to disk - inspect the compiled gateway/runtime bundle, not just source files
- restart the gateway after updating runtime artifacts
References
For the page structure and file map, read:
references/ui-structure.md
For live gateway/runtime mismatches where the UI looks right but parentId or other team fields disappear on save, read:
references/runtime-troubleshooting.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-team-organization - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-team-organization触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Agent Team Organization 是什么?
Create and maintain a Teams management page for OpenClaw Control UI, including named agent teams, parent/child nesting, indented tree rendering, collapsible... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 227 次。
如何安装 Agent Team Organization?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-team-organization」即可一键安装,无需额外配置。
Agent Team Organization 是免费的吗?
是的,Agent Team Organization 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Team Organization 支持哪些平台?
Agent Team Organization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Team Organization?
由 maverick-software(@maverick-software)开发并维护,当前版本 v1.0.1。