Skip to content

Commit fecb115

Browse files
docs(calendar): clarify identity selection by event ownership
Reframe the identity section around event ownership: use `--as user` for the logged-in user's own events and `--as bot` for events the bot creates or participates in, with matching `+agenda` examples.
1 parent 3d2c10c commit fecb115

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

skills/lark-calendar/SKILL.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ metadata:
1616

1717
## 身份
1818

19-
日程操作默认使用 `--as user`(查看和管理当前用户的日程)。`--as bot` 只能访问 bot 自己的(空)日历,会拿到空结果——不要用 bot 身份查用户日程。
19+
**日程归属**选身份:
2020

21-
```bash
22-
# BAD — bot 身份查用户日程,返回空列表
23-
lark-cli calendar +agenda --as bot
21+
- 查看/管理登录用户本人的日程 → `--as user`(默认,绝大多数场景)。
22+
- 查看/管理 bot 自己创建/拥有的日程 → `--as bot`
2423

25-
# GOOD — user 身份查日程
24+
```bash
25+
# 用户本人日程 → user
2626
lark-cli calendar +agenda --as user
27+
# bot 自建或参与的日程 → bot
28+
lark-cli calendar +agenda --as bot
2729
```
2830

2931
## Shortcuts

0 commit comments

Comments
 (0)