360 Secure SkillHub
360 安全技能中心

Tasktrove

该 Skill 通过自托管 Tasktrove 实例的 API 管理待办任务,支持列出今日/过期/本周任务、创建任务、按 ID 完成、搜索及直接调用 curl 进行增删改查。需配置 TASKTROVE_HOST,可选 TASKTROVE_TOKEN;提供 python3 脚本作为快捷命令。

分类:协作
willwebberley
willwebberley
热度 49.52
最近更新 2026-05-11 15:54:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add willwebberley/tasktrove
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
tasktrove
description
Manage todos via Tasktrove API. Use for listing, creating, completing, or updating tasks. Triggers on task/todo requests like "what's on my todo list", "add a task", "mark X done", "what's due today".

Tasktrove Todo Management

Manage tasks via a self-hosted Tasktrove instance. (GitHub)

Configuration

Set the following environment variable:

export TASKTROVE_HOST="http://your-server:3333"

Optionally, if your instance requires authentication:

export TASKTROVE_TOKEN="your-api-token"

Quick Reference

Using the CLI script

# List today's tasks
python3 scripts/tasks.py list --today

# List overdue tasks
python3 scripts/tasks.py list --overdue

# List this week's tasks
python3 scripts/tasks.py list --week

# Add a task
python3 scripts/tasks.py add "Task title" --due 2026-02-10 --priority 2

# Complete a task (use ID prefix from list output)
python3 scripts/tasks.py complete abc123

# Search tasks
python3 scripts/tasks.py search "keyword"

Direct API calls

List Tasks

curl -s "$TASKTROVE_HOST/api/v1/tasks"

Create Task

# Note: API requires all fields including id, completed, labels, etc.
curl -X POST "$TASKTROVE_HOST/api/v1/tasks" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "<uuid>",
    "title": "Task title",
    "priority": 4,
    "dueDate": "2026-02-06",
    "completed": false,
    "labels": [],
    "subtasks": [],
    "comments": [],
    "createdAt": "2026-02-06T12:00:00.000Z",
    "recurringMode": "dueDate"
  }'

Complete/Update Task

# Note: PATCH goes to collection endpoint with ID in body (not /tasks/{id})
curl -X PATCH "$TASKTROVE_HOST/api/v1/tasks" \
  -H "Content-Type: application/json" \
  -d '{"id": "<task-id>", "completed": true}'

Delete Task

curl -X DELETE "$TASKTROVE_HOST/api/v1/tasks/<task-id>"

Task Schema

Field Type Notes
id string UUID (required on create)
title string Required
description string Optional
completed boolean Default false
priority number 1 (highest) to 4 (lowest)
dueDate string YYYY-MM-DD format
projectId string UUID of project
labels string[] Array of label UUIDs
subtasks object[] Nested subtasks
recurring string RRULE format

Priority Levels

  • P1: Urgent/critical
  • P2: High priority
  • P3: Medium priority
  • P4: Low priority (default)

Notes

  • The Tasktrove UI supports natural language input, but the API expects structured JSON
  • PATCH operations use the collection endpoint with ID in the request body
  • POST requires all schema fields to be present