crew
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCrew
AI团队成员管理
Routing — read the arguments first
命令路由 — 先读取参数
| Arguments | Action |
|---|---|
| none | Show roster |
| Scaffold a new crew member |
| Activate member, ask for task |
| Activate member with task |
| 参数 | 操作 |
|---|---|
| 无 | 显示成员名单 |
| 快速搭建新团队成员 |
| 激活成员,询问任务内容 |
| 激活成员并分配任务 |
No arguments — show roster
无参数 — 显示成员名单
- Use Glob to find all files (skip
.claude/team/*/SKILL.mditself).claude/team/SKILL.md - For each, read and
namefrom the frontmatterdescription - Read the last entry in their to show what they last worked on
history.md - Present a formatted roster
- After the roster, show available commands:
- — show roster
/crew - — activate a member
/crew [name] - — activate a member with a task
/crew [name] [task] - — scaffold a new member
/crew add [name] "[domain]"
- Ask which member to work with
- 使用Glob查找所有 文件(跳过
.claude/team/*/SKILL.md本身).claude/team/SKILL.md - 对每个文件,从文件头读取 和
name字段description - 读取其 中的最后一条记录,展示该成员最近的工作内容
history.md - 以格式化方式呈现成员名单
- 在名单后显示可用命令:
- — 显示成员名单
/crew - — 激活指定成员
/crew [名称] - — 激活成员并分配任务
/crew [名称] [任务] - — 快速搭建新成员
/crew add [名称] "[领域]"
- 询问用户要与哪个成员协作
add [name] "[domain]"
— scaffold a new member
add [name] "[domain]"add [名称] "[领域]"
— 快速搭建新成员
add [名称] "[领域]"If name or domain is missing, ask for them before proceeding.
如果缺少名称或领域信息,需先向用户询问补充。
1. Check if member already exists
1. 检查成员是否已存在
Use Glob to check if already exists.
.claude/team/{name}/If it does, stop and ask:
already exists as a crew member. Overwrite? This will replace{name},SKILL.md,context.md, andhistory.md— all existing context and history will be lost.decisions.md
Only proceed if the user explicitly confirms. If not, abort and suggest to activate the existing member.
/crew {name}使用Glob检查 目录是否已存在。
.claude/team/{name}/若已存在,停止操作并询问:
已作为团队成员存在。是否覆盖?此操作将替换{name}、SKILL.md、context.md和history.md— 所有现有上下文和历史记录都将丢失。decisions.md
仅当用户明确确认后才可继续。若用户拒绝,中止操作并建议使用 激活现有成员。
/crew {name}2. Create .claude/team/{name}/SKILL.md
.claude/team/{name}/SKILL.md2. 创建 .claude/team/{name}/SKILL.md
.claude/team/{name}/SKILL.mdmarkdown
---
name: {NAME}
description: Domain expert for {DOMAIN}.
user-invocable: false
---markdown
---
name: {NAME}
description: Domain expert for {DOMAIN}.
user-invocable: false
---{NAME} — {DOMAIN}
{NAME} — {DOMAIN}
On every task — before writing a single line of code
On every task — before writing a single line of code
- Read — understand the current state of the domain
.claude/team/{name}/context.md - Read — key architectural decisions, gotchas, things not to undo
.claude/team/{name}/decisions.md - Read the last entries in — recent work and what just changed
.claude/team/{name}/history.md - Read any relevant skill files for this domain (best practices, frameworks, etc.)
- Only then proceed with the task
- Read — understand the current state of the domain
.claude/team/{name}/context.md - Read — key architectural decisions, gotchas, things not to undo
.claude/team/{name}/decisions.md - Read the last entries in — recent work and what just changed
.claude/team/{name}/history.md - Read any relevant skill files for this domain (best practices, frameworks, etc.)
- Only then proceed with the task
On every task — after completing the work
On every task — after completing the work
- Update — reflect any changes to files, patterns, architecture, or configuration
context.md - Append to — add a dated entry with:
history.md- What was done and why
- Which files changed
- Run and record the commit ID and message
git log --oneline -1 - PR number if one exists
- Any decisions made and their rationale
- Any gotchas discovered
- Maintain the history window — if has more than 10 entries:
history.md- Extract any important decisions, gotchas, or patterns into before they are lost
decisions.md - Trim to the 10 most recent entries
history.md
- Extract any important decisions, gotchas, or patterns into
- If this task produced a key architectural decision or surfaced a non-obvious gotcha — add it to directly, even if no trimming is needed
decisions.md - Sign off — end your response with a single line:
— {name}, {domain}
undefined- Update — reflect any changes to files, patterns, architecture, or configuration
context.md - Append to — add a dated entry with:
history.md- What was done and why
- Which files changed
- Run and record the commit ID and message
git log --oneline -1 - PR number if one exists
- Any decisions made and their rationale
- Any gotchas discovered
- Maintain the history window — if has more than 10 entries:
history.md- Extract any important decisions, gotchas, or patterns into before they are lost
decisions.md - Trim to the 10 most recent entries
history.md
- Extract any important decisions, gotchas, or patterns into
- If this task produced a key architectural decision or surfaced a non-obvious gotcha — add it to directly, even if no trimming is needed
decisions.md - Sign off — end your response with a single line:
— {name}, {domain}
undefined3. Create .claude/team/{name}/context.md
.claude/team/{name}/context.md3. 创建 .claude/team/{name}/context.md
.claude/team/{name}/context.mdmarkdown
undefinedmarkdown
undefined{NAME} — Domain Context: {DOMAIN}
{NAME} — Domain Context: {DOMAIN}
Last updated: {TODAY'S DATE}
Last updated: {TODAY'S DATE}
What This Domain Does
What This Domain Does
[Describe what this domain is responsible for — 2-3 sentences]
[Describe what this domain is responsible for — 2-3 sentences]
Key Files
Key Files
| File | Role |
|---|---|
| What it does |
| File | Role |
|---|---|
| What it does |
Architecture
Architecture
[Describe the architecture — how data flows, what calls what]
[Describe the architecture — how data flows, what calls what]
Key Patterns
Key Patterns
[Document the patterns used in this domain]
[Document the patterns used in this domain]
Important Constraints & Gotchas
Important Constraints & Gotchas
[Things that are non-obvious, decisions that look wrong but aren't, things not to change]
[Things that are non-obvious, decisions that look wrong but aren't, things not to change]
Environment Variables
Environment Variables
[Any env vars this domain depends on]
[Any env vars this domain depends on]
Dependencies
Dependencies
[Key packages this domain uses]
undefined[Key packages this domain uses]
undefined4. Create .claude/team/{name}/history.md
.claude/team/{name}/history.md4. 创建 .claude/team/{name}/history.md
.claude/team/{name}/history.mdmarkdown
undefinedmarkdown
undefined{NAME} — Domain History: {DOMAIN}
{NAME} — Domain History: {DOMAIN}
Capped at 10 entries. When trimmed, important decisions and gotchas are extracted to first.
decisions.mdCapped at 10 entries. When trimmed, important decisions and gotchas are extracted to first.
decisions.md{TODAY'S DATE} — Initial setup
{TODAY'S DATE} — Initial setup
Added by: /crew add
Domain expert created for: {DOMAIN}
Fill in with the current state of the domain before assigning the first task.
context.mdundefinedAdded by: /crew add
Domain expert created for: {DOMAIN}
Fill in with the current state of the domain before assigning the first task.
context.mdundefined5. Create .claude/team/{name}/decisions.md
.claude/team/{name}/decisions.md5. 创建 .claude/team/{name}/decisions.md
.claude/team/{name}/decisions.mdmarkdown
undefinedmarkdown
undefined{NAME} — Decisions & Institutional Memory: {DOMAIN}
{NAME} — Decisions & Institutional Memory: {DOMAIN}
Evergreen knowledge extracted from history: architectural decisions, known gotchas, and things not to undo. Updated when important decisions are made or when history.md is trimmed.
Evergreen knowledge extracted from history: architectural decisions, known gotchas, and things not to undo. Updated when important decisions are made or when history.md is trimmed.
Key Decisions
Key Decisions
[Record important architectural choices and the reasoning behind them]
[Record important architectural choices and the reasoning behind them]
Known Gotchas
Known Gotchas
[Non-obvious behaviors, traps, and things that look wrong but aren't]
[Non-obvious behaviors, traps, and things that look wrong but aren't]
Things Not To Change
Things Not To Change
[Deliberate decisions that might look like bugs or bad patterns — with the reason why]
undefined[Deliberate decisions that might look like bugs or bad patterns — with the reason why]
undefined6. Confirm
6. 确认完成
Tell the user what was created, then ask what they'd like to work on.
Optionally suggest they can bootstrap context by sending {NAME} on an exploration task first, for example:
/crew {name} — look into the project and find areas relevant to your domain '{DOMAIN}'. Review the codebase and any relevant documentation, then create your context.md based on what you find.
告知用户已创建的内容,然后询问他们想要处理的任务。
可选建议用户可以先让{NAME}执行探索任务来初始化上下文,例如:
/crew {name} — 调研项目并找到与您的领域'{DOMAIN}'相关的内容。审查代码库和相关文档,然后基于发现的内容创建您的context.md。
[name]
or [name] [task]
— activate a member
[name][name] [task][名称]
或 [名称] [任务]
— 激活成员
[名称][名称] [任务]- Read
.claude/team/{name}/SKILL.md - Follow its instructions exactly
- Treat any remaining text as the task description
- If no task was provided, ask the user what they'd like to work on
- When the task is complete, sign off with a single line:
— {name}, {domain}
- 读取 文件
.claude/team/{name}/SKILL.md - 严格按照其中的说明执行
- 将剩余文本视为任务描述
- 若未提供任务,询问用户想要处理的内容
- 任务完成后,添加签名行:
— {name}, {domain}