为你的 Clawdbot 智能体构建并运行一个看板风格的任务管理仪表板。
此技能创建一个本地 Web 仪表板,让你能够:
- 在看板中管理任务(待办 → 进行中 → 已完成 → 已归档)
- 实时监控智能体状态(在线/思考中/就绪)
- 为智能体留下便签,供其在心跳检查时查看
- 查看操作日志和快速访问交付成果
运行安装脚本以安装并启动仪表板:
bash /path/to/skills/dashboard/setup.sh
或者让你的智能体运行它:
设置并启动我的 Clawdbot 仪表板
# Ubuntu/Debian
apt-get install -y python3-flask python3-flask-cors
# 或使用 pip
pip3 install flask flask-cors
mkdir -p ~/clawd-dashboard/{templates,static/css,static/js,data}
从技能的 src/ 目录复制以下文件:
- app.py → ~/clawd-dashboard/
- templates/index.html → ~/clawd-dashboard/templates/
- static/css/style.css → ~/clawd-dashboard/static/css/
- static/js/dashboard.js → ~/clawd-dashboard/static/js/
cd ~/clawd-dashboard
python3 app.py
仪表板运行在 http://localhost:5050
| 变量 | 默认值 | 描述 |
|---|---|---|
CLAWD_WORKSPACE |
/root/clawd |
智能体工作空间路径 |
DASHBOARD_PORT |
5050 |
仪表板运行端口 |
编辑 app.py 以进行自定义:
- 交付成果:修改 get_deliverables() 函数以添加你自己的文件夹快捷方式
- 智能体 ID:如果你的智能体不叫 "clawd",请更改 get_agent_status() 中的会话键模式
data/tasks.jsonclawdbot status --jsondata/notes.jsondata/action_log.json要在注销后保持仪表板运行:
# 使用 systemd(推荐)
cat > /etc/systemd/system/clawd-dashboard.service << 'EOF'
[Unit]
Description=Clawd 仪表板
After=network.target
[Service]
Type=simple
WorkingDirectory=/root/clawd-dashboard
ExecStart=/usr/bin/python3 app.py
Restart=always
Environment=CLAWD_WORKSPACE=/root/clawd
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable clawd-dashboard
systemctl start clawd-dashboard
clawdbot status --json 是否正常工作data/ 目录是否存在且可写/tmp/dashboard.log 中的错误信息python3 app.py 然后编辑 app.run() 行pkill -f "python3 app.py"clawd-dashboard/
├── app.py # Flask 后端(API + 路由)
├── data/
│ ├── tasks.json # 看板任务
│ ├── notes.json # 给智能体的便签
│ └── action_log.json # 活动历史
├── static/
│ ├── css/
│ │ └── style.css # 深色主题样式
│ └── js/
│ └── dashboard.js # 前端逻辑
└── templates/
└── index.html # 主页面模板
灵感来源于 Nate Herk 的 Clawdbot 视频中的 "Klaus Dashboard"。