← 返回 Skills 市场
xiejinsong

create-team

作者 xiejinsong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install create-team
功能描述
Builds a runnable Claude Code Agent Teams skill package — produces SKILL.md as a lead-operator playbook, agents/<role>.md subagent definitions for runtime sp...
使用说明 (SKILL.md)

Create A Runnable Agent Team Skill

When To Use

Use this skill when the user needs a runnable team package that a Claude Code team lead can execute end-to-end:

  • Spawn teammates via Agent({subagent_type, team_name, name, prompt}) with prompts already templated
  • Seed tasks with blockedBy dependencies pre-mapped
  • Trust that file ownership across roles is conflict-free
  • Tear down the team cleanly when done

If the user only needs pretty role docs (no intent to actually run a team), this skill is overkill — write plain markdown instead.

Alignment With Agent Teams Runtime

Read ../agent-teams.md (or the live page at code.claude.com) for the runtime model. Key points this skill encodes:

  • Subagent definitions are reusable — teammates can be spawned with subagent_type: \x3Crole> if a definition exists at .claude/agents/\x3Crole>.md (project) or ~/.claude/agents/\x3Crole>.md (user). The definition's tools allowlist and model are honored at runtime.
  • 3–5 teammates, 5–6 tasks each — the documented sweet spot.
  • Avoid file conflicts — two teammates editing the same file overwrite each other; design Owned Paths so they don't overlap.
  • Lead is fixed for team lifetime — the SKILL.md plays the role of operating manual for that single lead.
  • Teardown order matters — shut down each teammate before TeamDelete, or you'll leak resources.

Output Structure

\x3Cskill-root>/                      # same as `name`, lowercase-hyphen
├── SKILL.md                       # lead's operating playbook
├── agents/                        # source of truth for subagent definitions
│   ├── \x3Crole-a>.md                #   frontmatter: name/description/tools/model
│   └── \x3Crole-b>.md
├── references/
│   ├── member.md                  # role index + suggested invocation order
│   ├── \x3Crole-a>.md                # 8-section role spec
│   └── \x3Crole-b>.md
└── hooks/                         # optional quality gates
    ├── teammate-idle.sh
    └── task-completed.sh

agents/*.md are source files. To make them runtime-discoverable, the lead either copies or symlinks them into .claude/agents/ (project scope) or ~/.claude/agents/ (user scope) — see Bootstrap step in the generated SKILL.md.

Workflow

1. Preflight (clarify with user)

Confirm before writing anything:

  • Team domain and closed loop — what end-to-end outcome the team owns.
  • Skill root and name — must match exactly; lowercase-hyphen (e.g. code-review-team).
  • Role count and slugs — target 3–5 roles; if the user wants 1–2 roles, recommend subagents instead; if >6, propose merging.
  • Roles can run truly in parallel? — if they all need the same files, this should be sequential, not a team.
  • Runtime preconditions — note in SKILL.md that the lead must verify Claude Code ≥2.1.32 and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.

2. Define each role (8 sections, not 4)

For every role, fill all 8 sections (full skeleton in references/templates.md):

# Section Purpose
1 Scope What the role delivers
2 Inputs What it needs from user/peers
3 Outputs Artifacts produced
4 Boundaries Explicit non-goals
5 Spawn Prompt Verbatim text the lead pastes into Agent({prompt})
6 Owned Paths File globs this role exclusively writes (cross-role overlap forbidden)
7 Task Template 3–6 typical tasks with blockedBy edges
8 Plan Approval true for risky/architectural roles, else false

3. Generate dual-track artifacts per role

  • agents/\x3Cslug>.md — subagent definition. Frontmatter: name, description, tools allowlist, model. Body = role's operating instructions (this is appended to the teammate's system prompt at spawn).
  • references/\x3Cslug>.md — full 8-section spec. This is for humans and for the lead to reference; not loaded into teammate context automatically.

Keep them in sync — drift between agents/ and references/ is the #1 failure mode.

4. Write SKILL.md as a lead playbook

Required sections (skeleton in references/templates.md):

  1. Preflight — env var check, version check, teammateMode choice
  2. Install agents — copy/symlink agents/*.md to .claude/agents/ so subagent_type works
  3. Bootstrap — concrete TeamCreate + per-role Agent calls with the spawn prompts wired up
  4. Task seedingTaskCreate calls with addBlockedBy mapped from each role's Task Template
  5. Steady state — when to SendMessage, how to handle plan_approval_request, when to wait
  6. Teardown — per-teammate shutdown_request loop, then TeamDelete
  7. Known Limits — fixed lead, no /resume of in-process teammates, permissions set at spawn

5. (Optional) Add hooks/

For quality gates — see references/templates.md "Hooks" section. Wire them via project .claude/settings.json. Examples:

  • TeammateIdle exit code 2 → block idle until tests pass
  • TaskCompleted exit code 2 → block completion if acceptance artifact missing

6. Self-check

Run references/checklist.md. The hardest constraint: Owned Paths must have zero cross-role overlap.

Key Design Rules

  1. Dual-track or nothing — every role gets both agents/\x3Cslug>.md and references/\x3Cslug>.md. One without the other is a half-built team.
  2. No file conflicts at design time — overlapping Owned Paths = guaranteed runtime overwrite. Refactor roles until disjoint.
  3. Spawn prompts are self-contained — a teammate doesn't read the references/ folder unless told to. The Spawn Prompt must include all task-specific context the teammate needs.
  4. Sized for runtime — 3–5 roles, 5–6 tasks per role. More = coordination overhead eats the gains (see agent-teams.md).
  5. Teardown is part of the spec — every team SKILL.md ends with a shutdown sequence. Skipping this leaks tmux sessions and team configs.

References

  • Skeletons (SKILL.md / agents/ / references/\x3Crole>.md / hooks): references/templates.md
  • Validation checklist (run before declaring done): references/checklist.md
  • Worked example: ../code-review-team/ — a 3-person parallel PR review team

Common Edge Cases

  • 1–2 roles — recommend subagents instead. Agent Teams overhead doesn't pay off below 3.
  • >6 roles — merge until ≤5; coordination overhead grows superlinearly.
  • Roles share files — split the file or merge the roles. Don't ship overlapping Owned Paths.
  • One role is the bottleneck — split its Task Template into more granular tasks (5–6/role rule), or split into two roles with a clean handoff.
  • User has existing role docs — normalize slugs/file names first, then backfill the 4 new sections (Spawn Prompt / Owned Paths / Task Template / Plan Approval) and generate agents/.
安全使用建议
Before using a generated team, review the generated subagent files, prefer project-scoped `.claude/agents/` over user-wide installation, keep tool allowlists and owned paths narrow, inspect any hooks before enabling them, and make sure you shut down teammates and delete the team when done.
功能分析
Type: OpenClaw Skill Name: create-team Version: 1.0.0 The 'create-team' skill is a meta-tool designed to generate structured configurations and playbooks for multi-agent teams within the Claude Code environment. It provides templates for agent definitions, role specifications, and shell-based quality hooks (e.g., running 'npm test' in 'hooks/teammate-idle.sh'). The instructions involve standard file operations like creating directories and symlinking configuration files to '.claude/agents/' or '~/.claude/agents/', which are consistent with the stated purpose of setting up a development environment for agentic workflows. No evidence of malicious intent, data exfiltration, or unauthorized execution was found across SKILL.md or the reference templates.
能力评估
Purpose & Capability
The stated purpose is to generate runnable multi-agent team skill packages, and the artifacts consistently describe that workflow. The capability is inherently higher-autonomy because it creates spawned teammates and task workflows.
Instruction Scope
The instructions include preflight clarification, owned-path boundaries, task dependencies, plan approval, and teardown. Scope depends on how the user fills in generated roles and tool allowlists.
Install Mechanism
There is no install script or code package. Generated teams may require user-directed copying or symlinking of subagent definitions into .claude/agents or ~/.claude/agents, and optional hook wiring in .claude/settings.json.
Credentials
The environment changes are proportionate to the purpose, but generated teams can include Bash/Edit/Write tools and optional shell hooks, so users should keep them scoped.
Persistence & Privilege
Generated subagent definitions can be installed at project or user scope and teams require explicit teardown. This is disclosed and aligned with the skill’s purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-team
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-team 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the create-team skill for building runnable Claude Code Agent Teams package. - Generates SKILL.md as a lead-operator playbook, agent definitions, and 8-section role specs. - Produces a standardized folder structure with agents/, references/, and optional hooks/. - Ensures dual-track documentation for every role: both agents/<role>.md and references/<role>.md. - Enforces key runtime design rules like disjoint file ownership (Owned Paths) and proper team teardown. - Includes detailed guidance on team structure, setup workflow, and common edge cases.
元数据
Slug create-team
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

create-team 是什么?

Builds a runnable Claude Code Agent Teams skill package — produces SKILL.md as a lead-operator playbook, agents/<role>.md subagent definitions for runtime sp... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。

如何安装 create-team?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-team」即可一键安装,无需额外配置。

create-team 是免费的吗?

是的,create-team 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

create-team 支持哪些平台?

create-team 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 create-team?

由 xiejinsong(@xiejinsong)开发并维护,当前版本 v1.0.0。

💬 留言讨论