Install
openclaw skills install okr-work-managerKPI/OKR 工作管理系统。支持季度/年度 OKR 目标设置,通过自然语言记录工作日志 自动追踪目标进度,生成周报、月报、季报、年报,实现目标管理+工作记录+进度追踪+复盘总结的完整闭环。
openclaw skills install okr-work-manager将零散的工作日志转化为结构化的 OKR 管理,实现从目标设置到成果总结的完整数据闭环。
数据存放在 {workspace}/.okr-work-manager/ 目录下:
.okr-work-manager/
├── daily/ # 工作日志 (YYYY-MM-DD.json)
├── plans/ # 周计划 (YYYY-Www.json)
├── weekly/ # 周报 (YYYY-Www-report.json)
├── monthly/ # 月报 (YYYY-MM-report.json)
├── quarterly/ # 季报 (YYYY-QX-report.json)
├── yearly/ # 年报 (YYYY-report.json)
├── okr_config.json # OKR 配置
└── okr_progress.json # OKR 进度
完整 JSON schema 参见 data-schema.md
通过 Agent Gateway Cron 实现定期报告生成。
Agent 通过 cron.add 创建 3 个隔离式 cron 任务:
{
"name": "okr:weekly-report",
"schedule": { "kind": "cron", "expr": "0 18 * * 5", "tz": "Asia/Shanghai" },
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"message": "执行本周工作周报。读取 {workspace}/.okr-work-manager/daily/ 本周日志和 plans/ 本周计划,汇总工时、标签、OKR 贡献,保存到 weekly/ 目录。参考 skills/okr-work-manager/references/data-schema.md",
"model": "haiku"
},
"delivery": { "mode": "announce" }
}
{
"name": "okr:monthly-report",
"schedule": { "kind": "cron", "expr": "0 20 28 * *", "tz": "Asia/Shanghai" },
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"message": "执行本月 OKR 对齐分析月报。读取 {workspace}/.okr-work-manager/ 本月全部日志,对比 okr_config.json 分析对齐度和进度预警,保存到 monthly/ 目录。参考 skills/okr-work-manager/references/data-schema.md",
"model": "haiku"
},
"delivery": { "mode": "announce" }
}
CLI 方式(将 {cli} 替换为实际命令):
{cli} cron add \
--name "okr:weekly-report" \
--cron "0 18 * * 5" \
--tz "Asia/Shanghai" \
--session isolated \
--message "执行本周工作周报..." \
--model haiku --announce
| 任务 | 默认时间 | cron 表达式 | 说明 |
|---|---|---|---|
| 周报 | 每周五 18:00 | 0 18 * * 5 | 工作日结束前 |
| 月报 | 每月 28 日 20:00 | 0 20 28 * * | 月底提前 |
| 季报/年报 | 不自动执行 | — | 由用户手动触发 |
周报改成每周五 17 点
月报改成每月最后一天
暂停自动周报
恢复周报
weekly/YYYY-Www-report.jsonmonthly/YYYY-MM-report.jsonquarterly/YYYY-QX-report.jsonyearly/YYYY-report.json| 分析类型 | 对齐分析 | 进度预警 | OKR 提炼 | 趋势分析 | 调整建议 |
|---|---|---|---|---|---|
| 周报 | - | - | - | - | - |
| 月报 | OKR 对齐 | 超前/落后 | - | - | 下月 |
| 季报 | OKR 对齐 | OKR 完成 | 智能提炼 | - | 下季度 |
| 年报 | 季度-年度 | 全年完成 | OKR 建议 | 季度趋势 | 下一年度 |
| 模式 | 说明 |
|---|---|
| 主动设置 | 用户在季度/年度开始前设置目标,实时追踪进度 |
| 智能提炼 | 季报/年报基于工作数据自动生成 OKR 建议 |
| 类型 | 格式 | 示例 |
|---|---|---|
| 季度 OKR | q_{year}-Q{quarter}_{index} | q_2026-Q1_1 |
| 年度 OKR | y_{year}_{index} | y_2026_1 |
"设置 Q1 OKR:1.完成架构升级(200h)- 核心模块重构(100h)...""查看 Q1 OKR 进度"无外部依赖。Agent 直接读写 JSON 文件。
| 版本 | 日期 | 变更 |
|---|---|---|
| 2.0.0 | 2026-03-31 | 重构为分层文档架构;补全月报/季报/年报/进度 JSON schema;统一路径为 {workspace};增加 Gateway Cron 调度;增加标准 frontmatter 字段 |
| 1.0.0 | 2026-03-27 | Agent 纯驱动重构:移除 Python 脚本,单 SKILL.md |