From 15a97696f73da47253d211b3b068afe170be4ed2 Mon Sep 17 00:00:00 2001 From: hmo Date: Thu, 6 Aug 2026 22:36:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20kanban-handler=20SKILL.md=20=E2=80=94=20?= =?UTF-8?q?replace=20nonexistent=20GET=20/api/kanban/t=5Fxxx=20with=20POST?= =?UTF-8?q?=20:9580/kanban/show=20+=20comment/update=20examples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/kanban-handler/SKILL.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/skills/kanban-handler/SKILL.md b/skills/kanban-handler/SKILL.md index 8b09428..e1978a2 100644 --- a/skills/kanban-handler/SKILL.md +++ b/skills/kanban-handler/SKILL.md @@ -33,21 +33,33 @@ description: "Handler session protocol for processing Kanban task notifications. ### 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 +> ⚠️ `GET /api/kanban/t_xxx` 不存在(那是 dashboard :5803 的只读列表,按 ID 查单卡要用上面的 POST /kanban/show)。全部 kanban_api 端点都是 POST。 + ### Step 3 — 三叉判断 **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 汇报摘要 **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 **C. 不是我的领域**