Lark okr

From jingsongliujing/Feishu-CLI-Web · View interactive version

Lark okr is an AI agent skill from the GitHub repository jingsongliujing/Feishu-CLI-Web. 飞书 OKR:管理目标与关键结果。查看和编辑 OKR 周期、目标(Objective)、关键结果(Key Result)、对齐关系、量化指标和进展记录。当用户需要查看或创建 OKR、管理目标和关键结果、查看对齐关系时使用。

How to use this skill

Skill file

okr (v2)

CRITICAL — 开始前 MUST 先用 Read 工具读取 CODE0,其中包含认证、权限处理

Shortcuts(推荐优先使用)

Shortcut 是对常用操作的高级封装(lark-cli okr +<verb> [flags])。有 Shortcut 的操作优先使用。

| Shortcut | 说明 |

|--------------------------------------------------------------|--------------------------|

| CODE0 | 获取特定用户的 OKR 周期列表,可以按时间筛选 |

| CODE0 | 获取特定 OKR 中所有目标和关键结果的内容 |

| CODE0 | 获取目标或关键结果的所有进展记录列表 |

| CODE0 | 根据 ID 获取单条 OKR 进展记录 |

| CODE0 | 为目标或关键结果创建进展记录 |

| CODE0 | 更新指定 ID 的进展记录内容 |

| CODE0 | 删除指定 ID 的进展记录(不可恢复) |

| CODE0 | 上传图片用于 OKR 进展记录的富文本内容 |

格式说明

API Resources

lark-cli schema okr.<resource>.<method>   # 调用 API 前必须先查看参数结构
lark-cli okr <resource> <method> [flags] # 调用 API

重要:使用原生 API 时,必须先运行 schema 查看 --data / --params 参数结构,不要猜测字段格式!

alignments

categories

cycles

cycle.objectives

indicators

key_results

key_result.indicators

objectives

objective.alignments

objective.indicators

objective.key_results

权限表

| 方法 | 所需 scope |

|-----------------------------------|-----------------------------|

| alignments.delete | okr:okr.content:writeonly |

| alignments.get | okr:okr.content:readonly |

| categories.list | okr:okr.setting:read |

| cycles.list | okr:okr.period:readonly |

| cycles.objectives_position | okr:okr.content:writeonly |

| cycles.objectives_weight | okr:okr.content:writeonly |

| cycle.objectives.create | okr:okr.content:writeonly |

| cycle.objectives.list | okr:okr.content:readonly |

| indicators.patch | okr:okr.content:writeonly |

| key_results.delete | okr:okr.content:writeonly |

| key_results.get | okr:okr.content:readonly |

| key_results.patch | okr:okr.content:writeonly |

| key_result.indicators.list | okr:okr.content:readonly |

| objectives.delete | okr:okr.content:writeonly |

| objectives.get | okr:okr.content:readonly |

| objectives.key_results_position | okr:okr.content:writeonly |

| objectives.key_results_weight | okr:okr.content:writeonly |

| objectives.patch | okr:okr.content:writeonly |

| objective.alignments.create | okr:okr.content:writeonly |

| objective.alignments.list | okr:okr.content:readonly |

| objective.indicators.list | okr:okr.content:readonly |

| objective.key_results.create | okr:okr.content:writeonly |

| objective.key_results.list | okr:okr.content:readonly |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.