fix: kanban-handler SKILL.md — replace nonexistent GET /api/kanban/t_xxx with POST :9580/kanban/show + comment/update examples
This commit is contained in:
@@ -33,21 +33,33 @@ description: "Handler session protocol for processing Kanban task notifications.
|
|||||||
|
|
||||||
### Step 2 — 拉卡片详情
|
### Step 2 — 拉卡片详情
|
||||||
|
|
||||||
|
kanban 读写 API 在 246 的 `kanban_api.py`(:9580)。拉详情用 POST(读操作也是 POST):
|
||||||
|
|
||||||
```
|
```
|
||||||
GET /api/kanban/t_xxxxx
|
POST http://192.168.1.246:9580/kanban/show
|
||||||
|
Body: {"id": "t_xxxxx"}
|
||||||
```
|
```
|
||||||
返回:title + body + comments + status
|
返回:title + body + comments + status
|
||||||
|
|
||||||
|
> ⚠️ `GET /api/kanban/t_xxx` 不存在(那是 dashboard :5803 的只读列表,按 ID 查单卡要用上面的 POST /kanban/show)。全部 kanban_api 端点都是 POST。
|
||||||
|
|
||||||
### Step 3 — 三叉判断
|
### Step 3 — 三叉判断
|
||||||
|
|
||||||
**A. 这是我的活,body 描述清晰**
|
**A. 这是我的活,body 描述清晰**
|
||||||
→ 直接执行
|
→ 直接执行
|
||||||
→ 完成后评论卡片 + 更新 `status=done`
|
→ 完成后评论卡片 + 更新 `status=done`:
|
||||||
|
```
|
||||||
|
POST http://192.168.1.246:9580/kanban/comment Body: {"id": "t_xxxxx", "body": "已完成: ...", "author": "<你的名字>"}
|
||||||
|
POST http://192.168.1.246:9580/kanban/update Body: {"id": "t_xxxxx", "status": "done"}
|
||||||
|
```
|
||||||
→ 分配类任务 → 简短 DM 汇报摘要
|
→ 分配类任务 → 简短 DM 汇报摘要
|
||||||
|
|
||||||
**B. 需要更多信息**
|
**B. 需要更多信息**
|
||||||
→ 评论卡片提问
|
→ 评论卡片提问 + 更新 `status=blocked`:
|
||||||
→ 更新 `status=blocked`
|
```
|
||||||
|
POST http://192.168.1.246:9580/kanban/comment Body: {"id": "t_xxxxx", "body": "需要确认: ...", "author": "<你的名字>"}
|
||||||
|
POST http://192.168.1.246:9580/kanban/update Body: {"id": "t_xxxxx", "status": "blocked"}
|
||||||
|
```
|
||||||
→ 不 DM
|
→ 不 DM
|
||||||
|
|
||||||
**C. 不是我的领域**
|
**C. 不是我的领域**
|
||||||
|
|||||||
Reference in New Issue
Block a user