task-director
Task Director — turn complex tasks into movie storyboards. Create a plan, review it, then execute step by step with fallback support. Pause, retry, skip anytime.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/besty0121/task-director任务导演 / Task Director
把复杂任务编排成电影剧本。先看分镜,确认后再开机。
No more "run and pray". Plan first, execute with confidence.
核心理念
普通 Agent 的工作方式:
用户:部署这个项目
Agent:冲!(5分钟后报错)啊... 从头再来...
用任务导演的 Agent:
用户:部署这个项目
Agent:我给你写了个分镜,你看看?
🎬 第一幕:环境检查(预计 30s)
🎬 第二幕:安装依赖(预计 2min)
🎬 第三幕:构建部署(预计 5min)
🎭 备选:先本地测试
🎬 杀青:验证服务能访问
用户:第三幕的备选方案换成本地构建
Agent:好的,改了。开机?
用户:开机!
Agent:🎬 Action! 第一幕...
命令参考
DIRECTOR = python <skill_dir>/scripts/director.py
创建剧本
$DIRECTOR create --title "部署全栈项目" --scenes scenes.json
scenes.json 格式:
[
{
"name": "环境准备",
"description": "检查并配置运行环境",
"estimated_time": "1 min",
"shots": [
{
"action": "检查 Node.js 版本",
"command": "node --version"
},
{
"action": "安装项目依赖",
"command": "npm install",
"fallback": {
"action": "使用 yarn 安装",
"command": "yarn install"
}
}
]
},
{
"name": "构建部署",
"shots": [
{
"action": "执行构建",
"command": "npm run build"
}
]
}
]
Shot 的字段:
action(必填): 要做什么command(可选): 具体命令fallback(可选): 失败后的备选方案
查看剧本
$DIRECTOR show # 显示当前活跃的剧本
$DIRECTOR show --id movie_xxx # 按 ID 查看
批准剧本
$DIRECTOR approve
状态从 draft → approved,可以开始执行了。
开机拍摄(执行下一步)
$DIRECTOR action
输出下一个待执行的 shot 信息(JSON 格式),Agent 根据这个信息去实际执行。
指定某一幕某个镜头:
$DIRECTOR action --scene 2 --shot 1
记录结果
Agent 执行完后,回报结果:
# 成功
$DIRECTOR result --id movie_xxx --outcome done --output "v18.0.0"
# 失败
$DIRECTOR result --id movie_xxx --outcome ng --output "npm ERR! code ERESOLVE"
# 用备选方案成功
$DIRECTOR result --id movie_xxx --outcome done --fallback --output "yarn install success"
暂停 / 继续
$DIRECTOR cut # 暂停(导演喊卡)
$DIRECTOR action # 继续拍摄
跳过镜头
$DIRECTOR skip --scene 1 --shot 3 --reason "不需要这一步"
杀青
$DIRECTOR wrap
显示最终统计:耗时、完成率、失败数。
查看所有剧本
$DIRECTOR list
Agent 工作流
创建剧本(Agent 自动生成)
import json
scenes = [
{
"name": "环境检查",
"estimated_time": "30s",
"shots": [
{"action": "检查 Python 版本", "command": "python --version"},
{"action": "检查依赖是否安装", "command": "pip list | grep flask"},
]
},
{
"name": "启动服务",
"estimated_time": "10s",
"shots": [
{
"action": "启动 Flask 服务",
"command": "python app.py",
"fallback": {
"action": "使用 gunicorn 启动",
"command": "gunicorn app:app"
}
},
]
},
{
"name": "验证",
"estimated_time": "5s",
"shots": [
{"action": "检查端口是否监听", "command": "curl http://localhost:5000/health"},
]
},
]
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-besty0121-task-director": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
Agent Migration Pack
将AI Agent完整迁移到新环境或分享给其他用户的标准化工具包,包含身份、记忆、技能、风格等完整信息,支持状态迁移
social-vault
社交平台账号凭证管理器。提供登录态获取、AES-256-GCM 加密存储、定时健康监测和自动续期。Use when managing social media account credentials, importing cookies, checking login status, or automating session refresh. Also covers platform adapter creation and browser fingerprint management.
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
daily-report-generator
Automatically generate daily/weekly work reports from git commits, calendar events, and task lists. Use when you need to quickly create professional work reports without manual effort.
onlyclaw-social-commerce
在只来龙虾平台以龙虾身份自动发帖带货、读取帖子、检索帖子、点赞评论,支持关联商品/店铺/Skill、封面与视频(先上传再发帖),实现 AI Agent 24h 社交电商自动运营