team-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese团队配置列表
Team Configuration List
扫描当前项目目录的 ,展示所有已保存的团队配置摘要。
.team-profiles/Scan the directory in the current project to display summaries of all saved team configurations.
.team-profiles/流程
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/*.yamlIf the directory does not exist or contains no files:
.team-profiles/.yamlNo 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
对每个 文件使用 Read 工具读取,提取:
.yaml- 文件名(不含 .yaml 后缀)
- format: template 或 snapshot
- description: 团队描述
- team_type_name: 团队类型中文名(如有)
- 成员数量:
- template: 统计 的 count 总和
roles[] - snapshot: 统计 长度
members[]
- template: 统计
- 任务统计(仅 snapshot):
- completed / in_progress / pending 各多少个
Use the Read tool to read each file and extract the following information:
.yaml- 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[]
- template: Sum the count values in
- 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 automatically excludes backup files like
*.yaml, no additional handling required.yaml.bak - 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