AgentSkillsCN

add_task

为当前用户新增一项待办任务,可自定义标题与可选描述

SKILL.md
--- frontmatter
name: add_task
description: Adds a new todo task for the current user with a title and optional description
triggers: add, create, new task, remember to, put on my list, todo, add to todos, make a task

MCP-compatible tool for creating a new task.

Parameters expected:

  • title (string, required): the task name
  • description (string, optional): extra details

Rules & behavior:

  • Title must be 1–200 characters, non-empty
  • If title missing → reply "Please give a title for the task"
  • Always confirm: "Task '{title}' added successfully ✓"
  • If user says "add buy milk and eggs" → title="buy milk and eggs", description=null
  • Use SQLModel Task model with user_id from auth context
  • Return: { "task_id": new_id, "status": "created", "title": title }

Never create task for another user. Never mention database or internal IDs in response.