team-list

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

团队配置列表

Team Configuration List

扫描当前项目目录的
.team-profiles/
,展示所有已保存的团队配置摘要。
Scan the
.team-profiles/
directory in the current project to display summaries of all saved team configurations.

流程

Workflow

步骤 1: 扫描配置目录

Step 1: Scan the Configuration Directory

使用 Glob 工具匹配
{当前工作目录}/.team-profiles/*.yaml
如果
.team-profiles/
目录不存在或没有
.yaml
文件:
当前项目没有保存的团队配置。

- /team-init  创建新团队(自动保存模板配置)
- /team-save  保存当前运行中的团队(保存快照配置)
结束。
Use the Glob tool to match
{current working directory}/.team-profiles/*.yaml
.
If the
.team-profiles/
directory does not exist or contains no
.yaml
files:
No saved team configurations found in the current project.

- /team-init  Create a new team (automatically saves template configuration)
- /team-save  Save the currently running team (saves snapshot configuration)
End the process.

步骤 2: 读取每个配置文件

Step 2: Read Each Configuration File

对每个
.yaml
文件使用 Read 工具读取,提取:
  • 文件名(不含 .yaml 后缀)
  • format: template 或 snapshot
  • description: 团队描述
  • team_type_name: 团队类型中文名(如有)
  • 成员数量:
    • template: 统计
      roles[]
      的 count 总和
    • snapshot: 统计
      members[]
      长度
  • 任务统计(仅 snapshot):
    • completed / in_progress / pending 各多少个
Use the Read tool to read each
.yaml
file and extract the following information:
  • File name (without the .yaml suffix)
  • format: template or snapshot
  • description: Team description
  • team_type_name: Chinese name of the team type (if available)
  • Member count:
    • template: Sum the count values in
      roles[]
    • snapshot: Count the length of
      members[]
  • Task statistics (snapshot only):
    • Number of completed / in_progress / pending tasks

步骤 3: 输出列表

Step 3: Output the List

.team-profiles/ 下共 {N} 个团队配置:

  {name1}  [template]  {team_type_name} - {description 前40字}
    成员: {count} 个角色

  {name2}  [snapshot]  {description 前40字}
    成员: {count} 个  |  任务: {completed}✓ {in_progress}⚡ {pending}○

  {name3}  [snapshot]  {description 前40字}
    成员: {count} 个  |  任务: {completed}✓ {in_progress}⚡ {pending}○

使用 /team-load {name} 加载指定配置。
Total {N} team configurations found under .team-profiles/:

  {name1}  [template]  {team_type_name} - {first 40 characters of description}
    Members: {count} roles

  {name2}  [snapshot]  {first 40 characters of description}
    Members: {count}  |  Tasks: {completed}✓ {in_progress}⚡ {pending}○

  {name3}  [snapshot]  {first 40 characters of description}
    Members: {count}  |  Tasks: {completed}✓ {in_progress}⚡ {pending}○

Use /team-load {name} to load the specified configuration.

注意事项

Notes

  • 只读取不修改任何文件
  • Glob 匹配
    *.yaml
    自动排除
    .yaml.bak
    备份文件,无需额外处理
  • 配置文件解析失败时跳过并提示(如 "⚠ {name}.yaml 格式异常,已跳过")
  • 按文件名字母序排列
  • Only read files, do not modify any files
  • Glob matching
    *.yaml
    automatically excludes backup files like
    .yaml.bak
    , no additional handling required
  • Skip and prompt if a configuration file fails to parse (e.g., "⚠ {name}.yaml format is invalid, skipped")
  • Sort by file name in alphabetical order