Files
add-todo-all/SKILL.md
2026-09-09 10:29:02 +08:00

41 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: 技能开发模板(通用业务版)
description: "OpenClaw 通用业务技能开发模板,供复制后定制新业务 skill。定制步骤见 development/DEVELOPMENT.md。"
version: 1.0.98
author: 深圳匠厂科技有限公司
metadata:
openclaw:
slug: add-todo-all
platform_kit_min_version: "1.2.11"
emoji: "📦"
category: "通用"
developer_ids:
- 78997 # 占位,请换成你的匠厂用户 ID
allowed-tools:
- bash
---
# 待办事项 (add-todo-all)
提供待办事项的创建、查看、修改、标记完成、删除、批量操作能力;支持设置截止时间、优先级、分类标签;可生成待办清单文本输出;不持久化跨会话存储,会话结束数据丢失。
## 关键模式映射
| 模板铁律 | 本 demo 落地 |
|----------|-------------|
| `cli → service → db → util` 四层 | [scripts/](scripts/) 完整复刻同结构 |
| 单业务内核、多入口 | `service/todo_service.py` 是唯一 CRUD 内核,CLI/Action/数据管理按钮都调它 |
| CLI 固定入口 | [scripts/main.py](scripts/main.py) + `cli/app.py` argparse 分发 |
| Action manifest 正交字段 | [assets/actions.json](assets/actions.json) 覆盖 6 placements × sync/async |
| 数据管理元数据 | [scripts/db/connection.py](scripts/db/connection.py) 建 `todos` + `_jiangchang_*` |
| 长任务 async 范式 | [service/task_service.py](scripts/service/task_service.py) `cmd_remind` 用 `job_context`/`emit`/`finish` |
## Agent 触发路由表
| 用户意图 | Agent 怎么做 | 进任务中心? |
|----------|--------------|--------------|
| 看版本 / 检查环境 | bash + 共享 Python `version` / `health` | 否 |
| 列出 / 统计 / 新增 / 完成 / 删除 | bash + `todo list/stats/add/done/delete` | 否(sync) |
| 扫描并提醒 | `run_skill_action` → `remind`(async) | **是** |