with one click
tb-create-task
在 TeamBition 项目中创建新任务
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
在 TeamBition 项目中创建新任务
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
同步 TeamBition 项目元数据到本地缓存(模板、状态、成员、标签等)
查询项目成员列表
查询项目工作流状态列表
分配任务负责人
更新任务参与者
更新任务的工作流状态
Based on SOC occupation classification
| name | tb-create-task |
| description | 在 TeamBition 项目中创建新任务 |
| allowed-tools | Bash(node *), Read, Edit |
缓存优先:模板、工作流状态、标签从 .teambition.cache.md 读取。如果缓存不存在,提示先执行 /tb-sync。
重要:必须严格按步骤执行,不得跳过任何步骤。
读取 .teambition.md 中的常用项目。用 AskUserQuestion(单选)让用户选择。
不得跳过。 读取 .teambition.cache.md 中该项目的"### 模板"表格。
只展示 Taskflow ID 不为 - 的模板。
用 AskUserQuestion(单选)选择。label: 模板名称,description: Template ID。
不得跳过。 读取 .teambition.cache.md 中该项目的"### 工作流状态"表格。
只展示工作流 ID 等于步骤 2 选中模板的 Taskflow ID 的状态。
用 AskUserQuestion(单选)选择。label: 状态名称,description: 状态 ID。
在对话中问用户(自由文本):
请提供以下信息:
- 任务标题(必填,支持多个,每行一个或分号分隔)
- 任务备注(选填,所有任务共用)
- 截止日期(选填,如 2026-04-30 或 "下周五",所有任务共用)
用 AskUserQuestion(单选),option: 无(0) / 低(1) / 中(2) / 高(3)。
不得跳过。 读取 .teambition.cache.md 中该项目的"### 标签"表格。
用 AskUserQuestion(multiSelect)让用户选择标签(可选多个)。每个 option:
如果用户不需要标签,可以选择 Other 并输入"无"。
对每个标题执行:
node ${CLAUDE_SKILL_DIR}/scripts/tb-api.mjs create-task --projectId <ID> --content "<标题>" --note "<备注>" --priority <N> --dueDate <ISO> --templateId <步骤2的ID>
如果步骤 3 选的不是第一个 start 状态,对每个新任务执行:
node ${CLAUDE_SKILL_DIR}/scripts/tb-api.mjs update-task-status --taskId <ID> --projectId <ID> --statusId <步骤3的ID>
如果步骤 6 选择了标签(非"无"),对每个新任务执行:
node ${CLAUDE_SKILL_DIR}/scripts/tb-api.mjs update-task-tags --taskId <ID> --tagIds <id1,id2,...>
用 Edit 追加到 .teambition.md 最近任务表格。
以表格展示所有创建结果:标题、Task ID、状态、优先级、标签、截止日期。