新增 `dws skill setup` 交互式安装命令,支持单产品(mono)和多产品(multi,标记为试验版)两种 skill 布局,并与开源 dws v1.0.30 命令对齐。 主要变更: - 骨架:skills/ 拆为 skills/mono/ 和 skills/multi/(29 个产品 skill),git rename 保留历史 - 命令:新增 `skill setup` cobra 子命令,支持 --mode、--target、--source、--yes,huh 交互 - multi 模式支持 -s/--skill、-x/--exclude 按产品选择 - 覆盖全部 14 个 agent home 目录(与 install.sh 一致) - 发布:install.sh / install.ps1 / post-goreleaser.sh 改读 skills/mono;dws-skills.zip 同时包含 mono 和 multi 内容;~/.dws 本地缓存 - 内容对齐:删除 8 个仅内部使用的产品 skill、dingtalk-a2a;修正 mono/multi 共 15+ 处命令引用以匹配 OSS dws v1.0.30;chat skill 从 dws-wukong 回移更新 - 漂移清理:物理删除 skill 文档中 OSS 未暴露的命令,true-fail 命令转为 caveat;--help diff 100% 覆盖审计 - 测试:新增 Layer A 静态命令调度验证 + Layer B 端到端 mock 调度验证 - 同步 main:drive 9 个命令同步到 mono/multi skill
2.6 KiB
2.6 KiB
任务管理
SKILL.md 中 #2 仅内联 lite:
create-todo、list-todo、get-todo-detail、update-todo-status、query-todo-by-topic。其中list-todo统一覆盖 open/completed/all(--status false|true或不传),update-todo-status统一覆盖 complete/reopen(--status true|false)。下列 recipe 已迁出速查表,命中时读本文件对应行。重型 full 见下表「行动指南」。命令细节见 todo.md。
Recipe 速查(非 SKILL lite)
| Recipe | 步骤(命令均须 --format json,下略) |
|---|---|
create-priority-todo |
1. 确定执行者(同 SKILL.md 中 create-todo 步骤 1)2. todo task create --title "<标题>" --executors <userId>[,<userId2>...] --priority <10/20/30/40>(可选 --due "<截止ISO>";10低/20普通/30较高/40紧急)→ 取 todoTaskId |
create-recurring-todo |
1. 确定执行者(同 create-todo 步骤 1)2. todo task create --title "<标题>" --executors <userId> --due "<首次截止ISO>" --recurrence "DTSTART:<UTC时间>\nRRULE:FREQ=DAILY;INTERVAL=1"(--due 必填;仅支持按天循环,见 todo.md)→ 取 todoTaskId |
reschedule-todo |
1. todo task list --status false → 取 todoTaskId2. todo task update --task-id <todoTaskId> --due "<新截止时间>" |
Full / 组合(固定路线)
| Recipe | 行动指南(固定路线) |
|---|---|
| generate-progress-report | 1. 按「多源并行采集」(见 dws-shared/references/best_practices/_common/conventions.md)执行2. 交叉比对各源数据 3. doc create --name "<报告名>" --content "<报告内容>" |
| batch-create-todo | 1. 按「多源并行采集」(见 dws-shared/references/best_practices/_common/conventions.md)执行 → 从结果提取任务条目2. 每条: aisearch person --keyword "<姓名>" --dimension name → 取 userId3. 优先:将待办写入 todos.json(格式见 todo_batch_create.py),执行 python scripts/todo_batch_create.py todos.json备选:逐条 todo task create --title "<标题>" --executors <userId> → 汇总回显单批超 30 条须用户确认 |
| assign-and-notify | 1. aisearch person --keyword "<姓名>" --dimension name → 取 userId2. todo task create --title "<标题>" --executors <userId> → 取 todoTaskId3. chat search --query "<群名>" → 取 openConversationId → chat message send --group <openConversationId> --text "<通知内容>" 通知 |