Task Management Command
Usage: /task <subcommand> [args]
Subcommands
/task add "title" - Create Task
Create a new task in .cleo-web/todo.json:
- •Generate unique task ID (format: T001, T002, etc.)
- •Add task with:
- •
id: Generated ID - •
title: Provided title - •
status: "pending" - •
createdAt: Current timestamp
- •
- •Save to todo.json (atomic write)
- •Confirm creation
/task list - List Tasks
Display all tasks from .cleo-web/todo.json:
- •Read todo.json
- •Group by status (active, pending, done)
- •Show formatted list:
code
📋 Tasks (3 active, 5 pending, 12 done) Active: - [T015] Optimize homepage meta tags - [T018] Add FAQ schema to blog posts Pending: - [T020] Write about page content - [T021] Fix mobile navigation
/task complete <id> - Mark Complete
Complete a task by ID:
- •Find task by ID in todo.json
- •Update status to "done"
- •Add completedAt timestamp
- •Save to todo.json (atomic write)
- •Confirm completion
Data Storage
Tasks stored in .cleo-web/todo.json:
json
{
"_meta": {
"schemaVersion": "1.0.0",
"framework": "astro"
},
"tasks": [
{
"id": "T001",
"title": "Task title",
"status": "pending",
"createdAt": "2024-01-01T00:00:00Z"
}
]
}
Arguments
$ARGUMENTS