Loading...
Loading...
This skill should be used when users mention tasks, todos, work items, Obsidian notes, or need to manage their personal task list. It integrates with the TaskNotes CLI (tn) to list, create, update, complete, and organize tasks stored in Obsidian. Triggers on keywords like "task", "todo", "任务", "工作", "待办", "Obsidian", or when users ask about their schedule, deadlines, or what they need to do.
npx skill4agent add oldwinter/skills tasknotestn# List active tasks (default limit: 20)
tn list --limit 10
# Today's tasks
tn list --today
# Overdue tasks
tn list --overdue
# Completed tasks
tn list --completed
# JSON output (for parsing)
tn list --json --limit 10--filter# By status
tn list --filter "status:in-progress"
tn list --filter "status:done"
# By priority
tn list --filter "priority:high"
# By context (工作/学习/生活)
tn list --filter "contexts:@工作"
# By project
tn list --filter "projects:拓扑灵犀"
# Combined filters
tn list --filter "priority:high AND status:in-progress"
tn list --filter "(status:in-progress OR status:open) AND contexts:@工作"
# Date-based
tn list --filter "due:before:2026-01-25"tn search "关键词"tn createdue:todaytn update# 推荐方式:分两步创建
tn create "完成项目报告"
tn update "Calendar/Tasks/完成项目报告.md" --due tomorrow --priority high
# 或者一行完成(先创建再更新)
tn create "开会讨论需求" && tn update "Calendar/Tasks/开会讨论需求.md" --scheduled 2026-01-25# 可能导致 "due:tomorrow priority:high" 被写入标题
tn create "完成项目报告 due:tomorrow priority:high"Calendar/Tasks/任务名.md# Update status
tn update "Calendar/Tasks/任务名.md" --status in-progress
tn update "Calendar/Tasks/任务名.md" --status done
# Update priority
tn update "Calendar/Tasks/任务名.md" --priority high
# Update dates
tn update "Calendar/Tasks/任务名.md" --due 2026-01-30
tn update "Calendar/Tasks/任务名.md" --scheduled 2026-01-25
# Update title
tn update "Calendar/Tasks/任务名.md" --title "新的任务标题"
# Manage tags/contexts/projects
tn update "Calendar/Tasks/任务名.md" --add-tags "urgent,important"
tn update "Calendar/Tasks/任务名.md" --add-contexts "@工作"
tn update "Calendar/Tasks/任务名.md" --add-projects "项目名"tn complete "Calendar/Tasks/任务名.md"tn toggle "Calendar/Tasks/任务名.md"tn delete "Calendar/Tasks/任务名.md" --forcetn archive "Calendar/Tasks/任务名.md"# Overall statistics
tn stats
# List projects
tn projects list
# Show project details
tn projects show "项目名"
# Project statistics
tn projects stats "项目名" --period month# Start timer for a task
tn timer start --task "Calendar/Tasks/任务名.md"
# Stop timer
tn timer stop
# Check timer status
tn timer status
# View time log
tn timer log --period today
tn timer log --period week# Start pomodoro session
tn pomodoro start --task "Calendar/Tasks/任务名.md"
tn pomodoro start --duration 25
# Control pomodoro
tn pomodoro pause
tn pomodoro resume
tn pomodoro stop
# View stats
tn pomodoro status
tn pomodoro stats --week
tn pomodoro sessions --limit 10| Property | Operators | Example |
|---|---|---|
| status | is, is-not | |
| priority | is, is-not | |
| tags | contains | |
| contexts | contains | |
| projects | contains | |
| due | before, after, on-or-before | |
| scheduled | before, after | |
| title | contains | |
| archived | checked, not-checked | |
tn list --todaytn list --overduein-progresspendingtn complete <taskId>tn statstn projects list2>/dev/null--json/Users/cdd/Documents/notes/oldwinter-notes