FunBI 任务与进度管理
SkillProductivityFunBI task and progress management guide. Consult when using the Task tool to create work orders, delegate across agents, and manage dependencies, or when using TodoWrite to show progress of work executed directly by the main agent. Trigger scenarios: multi-step direct execution, subagent delegation
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the FunBI 任务与进度管理 skill
What this skill tells your AI
The instructions your AI receives, as published by onweekendd/screenwright in servers/server/agent-workspace/skills/common/sw-task-management/SKILL.md and read by ahel’s review.
首先选择正确的工具
| 场景 | 使用 |
|---|---|
| 主 agent 自己完成多步骤工作,需要展示进度 | todoWrite |
工作将委派给 ask_swExecutorAgent | Task V2 |
| 需要 owner、依赖、并发或跨 agent 上下文 | Task V2 |
| 单一简单操作、纯问答或只读查询 | 两者都不用 |
核心区别:
- TodoWrite 是进度清单:服务于主 agent 直接执行;全量替换,同时最多一个
in_progress,全部完成后自动清空。 - Task V2 是施工任务账本:服务于委派协作;按字段更新,支持
taskListId、owner、blocks/blockedBy和metadata。 - 两者都不会自动执行工作。Task 创建后仍需调用
ask_swExecutorAgent才会真正派发。 - 不要在 Todo 和 Task 中逐条复制同一批步骤。混合流程中,Todo 只跟踪主流程阶段,Task 跟踪实际委派单元。
共同状态规则
- 通过
claim_task认领 Task 时会原子写入owner + in_progress;Todo 或未认领流程仍需在开始实际工作前标记in_progress。 - 完成后立即更新状态,不要批量补记。
- 测试失败、实现不完整、存在错误或必要验证尚未通过时,不得标记
completed。 - 遇到阻塞时保留未完成状态,并记录阻塞原因或新增前置任务。
Task V2 快速参考
创建
{
"taskData": {
"subject": "配置 chart_001 的数据过滤器",
"description": "绑定 filter_dateRange,并将 openFilter 设置为 true",
"status": "pending",
"metadata": {
"task_kind": "modify",
"screenId": "screen_42",
"target_files": ["/workspace/screen_42/component/chart_001.json"],
"expected_state": ["openFilter 为 true"],
"context": {
"current_openFilter": false
},
"skill_ref": "sw-data-flow"
}
}
}
create_task 返回 { id, taskListId }。委派时必须把 taskListId 原样放入 <delegation><task_list_id>。
更新
{
"taskId": "7",
"taskListId": "主 agent 创建任务时返回的 taskListId",
"updates": {
"status": "in_progress"
}
}
- 子 agent 调用
claim_task、get_task、update_task、list_tasks时必须传taskListId。 updates是字段级更新;但metadata、blocks、blockedBy字段各自会整体替换,修改前先读再合并。- Task 状态为
pending / in_progress / completed / failed / cancelled。failed可以使用同一 task ID 重试,completed和cancelled不可直接重新认领。删除使用delete_task,不存在deleted状态。 claim_task成功时自动增加attemptCount并清除旧lastError;执行失败时应写入failed + lastError。
TodoWrite 快速参考
{
"todos": [
{
"content": "Read the current component configuration",
"status": "in_progress",
"activeForm": "Reading the current component configuration"
},
{
"content": "Update the component binding",
"status": "pending",
"activeForm": "Updating the component binding"
},
{
"content": "Verify the updated data flow",
"status": "pending",
"activeForm": "Verifying the updated data flow"
}
]
}
- 每次调用传完整
todos数组,不存在增量 add/remove。 - 同一列表最多一个
in_progress。 content描述目标,activeForm描述正在进行的动作。- 所有 todo 完成后工具自动清空活动列表。
详细参考
| 文件 | 何时查阅 |
|---|---|
| references/task-v2-guide.md | Task Schema、委派、认领、依赖、metadata 和跨 thread 流程;create / modify 两类任务的完整字段表;从 create_task 到 ask_swExecutorAgent 再到校验收尾的端到端示例 |
| references/todo-v1-guide.md | Todo 选择边界、全量替换、状态规则、自动清空和验证提醒 |
Signals
- GitHub stars
- 31
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
sw-task-management- Source
- github.com/onweekendd/screenwright