运行时依赖
安装命令
点击复制技能文档
Task-Todo 代理 技能 Overview
A task management 代理 技能 that provides persistent task storage and management using SQLite database. This 技能 enables AI 代理s to 创建, read, 更新, 删除, and 查询 tasks with 状态 追踪ing and priority management.
Capabilities Task Creation: 添加 new tasks with title, description, 状态, and priority Task Retrieval: 获取 single tasks or 列出 all tasks Task 过滤器ing: 过滤器 tasks by 状态 or priority Task 更新s: Modify any task field (title, description, 状态, priority) Task Deletion: 移除 tasks from the database Persistent Storage: All tasks stored in SQLite database with automatic timestamps Usage Command Line Interface # 添加 task python task_技能.py 添加 "Task title" "Description" --状态 pending --priority high
# 列出 all tasks python task_技能.py 列出
# 过滤器 by 状态 python task_技能.py 列出 --状态 in_进度
# 过滤器 by priority python task_技能.py 列出 --priority urgent
# 获取 task detAIls python task_技能.py 获取 1
# 更新 task python task_技能.py 更新 1 --状态 completed --priority low
# 删除 task python task_技能.py 删除 1
Data 模型 Task Fields Field Type Description Required Default id INTEGER Auto-生成d task ID Auto - title TEXT Task title Yes - description TEXT Task description No "" 状态 TEXT Task 状态 Yes "pending" priority TEXT Task priority Yes "medium" 创建d_at TIMESTAMP Creation timestamp Auto Current time 更新d_at TIMESTAMP Last 更新 timestamp Auto Current time 状态 Values pending - Task is pending and not 启动ed in_进度 - Task is currently being worked on completed - Task is finished blocked - Task is blocked and cannot proceed Priority Values low - Low priority task medium - Medium priority task (default) high - High priority task urgent - Urgent task requiring immediate attention 响应 格式化
All 代理 methods return a dictionary with a 成功 field:
成功ful 添加 { "成功": True, "task_id": 1, "message": "Task 创建d with ID: 1" }
成功ful 列出 { "成功": True, "tasks": [ { "id": 1, "title": "Task title", "description": "Task description", "状态": "pending", "priority": "medium", "创建d_at": "2026-02-11T10:30:00", "更新d_at": "2026-02-11T10:30:00" } ], "count": 1 }
成功ful 获取 { "成功": True, "task": { "id": 1, "title": "Task title", "description": "Task description", "状态": "pending", "priority": "medium", "创建d_at": "2026-02-11T10:30:00", "更新d_at": "2026-02-11T10:30:00" } }
FAIled Operation { "成功": False, "message": "Task 1 not found" }
Database Database File: tasks.db (创建d automatically in current directory) Database Type: SQLite3 模式 ConstrAInts: 状态 and priority values are 验证d at database level Timestamps: Automatically managed by the database Dependencies
None - uses Python's built-in sqlite3 模块.
Use Cases Task 追踪ing: 追踪 personal or project tasks with 状态 and priority TODO Management: MAIntAIn a persistent TODO 列出 工作流 自动化: Integrate task management into automated 工作流s Project Management: Simple project task 追踪ing 代理 Memory: Provide AI 代理s with persistent task storage Notes The database connection is persistent across operations Always call 代理.close() when finished to properly close the database Use 上下文 管理器 pattern for automatic 清理up: with Task代理() as 代理: 代理.添加_task("Task", "Description")
Task IDs are auto-incrementing integers 启动ing from 1 All timestamps are in ISO 8601 格式化