← 返回 Skills 市场
maverick-software

Agent Team Organization

作者 maverick-software · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
227
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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 parentId for 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.list
  • teams.get
  • teams.create
  • teams.update
  • teams.delete

Keep validation inside the teams handler:

  • team names unique, case-insensitive
  • agentIds must exist in current agent list
  • parentId must 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

  1. Add/update src/gateway/team-registry.ts
  2. Add/update src/gateway/server-methods/teams.ts
  3. Register methods in gateway method lists/scopes
  4. Add UI types for TeamRecord / TeamsListResult
  5. Add teams state to app.ts and app-view-state.ts
  6. Add teams controller for load/select behavior
  7. Add views/teams.ts renderer
  8. Add navigation/i18n wiring for the Teams tab
  9. Build the UI after changes
  10. 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:

  1. inspect ~/.openclaw/workspace/teams/teams.json
  2. confirm whether parentId is written to disk
  3. inspect the compiled gateway/runtime bundle, not just source files
  4. 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
安全使用建议
This skill is coherent with building and debugging a Teams UI backed by a local JSON registry. Before using the troubleshooting steps that touch runtime bundles or patch active artifacts, ensure you have appropriate system access, a backup of the compiled bundle and teams.json, and that only trusted operators perform live bundle edits and gateway restarts. Confirm file permissions and consider testing rebuilds in a staging environment rather than patching production bundles directly.
功能分析
Type: OpenClaw Skill Name: agent-team-organization Version: 1.0.1 The skill contains instructions in SKILL.md and references/runtime-troubleshooting.md that direct the AI agent to inspect and potentially 'patch' compiled runtime bundles if source changes do not persist in the local registry (~/.openclaw/workspace/teams/teams.json). While these instructions are framed as a troubleshooting step for a specific data persistence bug, directing an AI to modify active execution artifacts (compiled code) is a high-risk capability that could be used to bypass source control or inject unauthorized logic, though no explicit malicious intent or exfiltration was found.
能力评估
Purpose & Capability
Name/description describe a Teams UI and file-backed registry; the SKILL.md, data model, registry path (~/.openclaw/workspace/teams/teams.json), gateway methods, and UI file map all align with that purpose. No unrelated binaries or environment variables are requested.
Instruction Scope
Instructions stay on-topic (UI, gateway RPCs, JSON registry). They explicitly direct the operator to read and write the registry file and to inspect compiled runtime bundles. The guidance to 'patch the active bundle if necessary' and to restart the gateway implies modifying live runtime artifacts and requires elevated filesystem/process permissions; this is plausible for a developer-facing troubleshooting guide but should be performed only by trusted operators and with backups.
Install Mechanism
Instruction-only skill with no install spec and no external downloads or binaries. Lowest-risk installation footprint.
Credentials
No environment variables, credentials, or external service tokens are requested. File paths referenced (user workspace JSON) are appropriate for a local registry feature and consistent with the described functionality.
Persistence & Privilege
Skill is not forced-always and can be invoked by users. It does not request persistent privileges or modify other skills' configs. The recommended operational steps (rebuild, restart gateway, patch bundle) imply system-level actions but are described as part of a developer workflow rather than automatic behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-team-organization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-team-organization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Add runtime troubleshooting reference covering parentId save regression, compiled gateway bundle mismatches, verification steps, and regression checks for nested teams.
v1.0.0
Initial release: OpenClaw Teams page skill covering team registry, nested parent/child teams, collapsible tree UI, and Teams page file structure documentation.
元数据
Slug agent-team-organization
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

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。

💬 留言讨论