tasknotes
23
总安装量
15
周安装量
#16341
全站排名
安装命令
npx skills add https://github.com/oldwinter/skills --skill tasknotes
Agent 安装分布
gemini-cli
12
claude-code
12
codex
12
opencode
12
github-copilot
11
Skill 文档
TaskNotes CLI Skill
Manage tasks in Obsidian using the TaskNotes CLI (tn) tool.
When to Use
Activate this skill when users:
- Ask about their tasks, todos, or work items
- Want to see what they need to do today or this week
- Need to create, update, or complete tasks
- Mention keywords: task, todo, ä»»å¡, å·¥ä½, å¾ å, Obsidian, æ¥ç¨, deadline, overdue
- Ask questions like “æä»å¤©è¦åä»ä¹”, “æä»ä¹ä»»å¡”, “帮æççå·¥ä½è¿åº¦”
Core Commands
List Tasks
# 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 Tasks
Use --filter for advanced queries:
# 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"
Available Statuses: open, deep-research, plan-mode, in-progress, done, pending
Available Priorities: none, low, normal, high
Available Contexts: @@å¦ä¹ , @@å·¥ä½, @@çæ´», @work, @cleanup
Search Tasks
tn search "å
³é®è¯"
Create Tasks
â ï¸ éè¦: tn create çèªç¶è¯è¨è§£æåè½ä¸ç¨³å®ï¼å¯è½ä¼æ due:today çå
³é®åç´æ¥åå
¥æ é¢èé frontmatterã
æ¨èåæ³: å
å建任å¡ï¼ä»
æ é¢ï¼ï¼ç¶åç¨ tn 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"
Update Tasks
Task IDs are file paths like 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 "项ç®å"
Complete Tasks
tn complete "Calendar/Tasks/ä»»å¡å.md"
Toggle Task Status
tn toggle "Calendar/Tasks/ä»»å¡å.md"
Delete Tasks
tn delete "Calendar/Tasks/ä»»å¡å.md" --force
Archive Tasks
tn archive "Calendar/Tasks/ä»»å¡å.md"
Statistics & Projects
# Overall statistics
tn stats
# List projects
tn projects list
# Show project details
tn projects show "项ç®å"
# Project statistics
tn projects stats "项ç®å" --period month
Time Tracking
# 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
Pomodoro Timer
# 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
Filter Syntax Reference
| Property | Operators | Example |
|---|---|---|
| status | is, is-not | status:in-progress |
| priority | is, is-not | priority:high |
| tags | contains | tags:urgent |
| contexts | contains | contexts:@å·¥ä½ |
| projects | contains | projects:项ç®å |
| due | before, after, on-or-before | due:before:2026-01-25 |
| scheduled | before, after | scheduled:after:2026-01-20 |
| title | contains | title:contains:"ä¼è®®" |
| archived | checked, not-checked | archived:not-checked |
Logical Operators: AND, OR, parentheses for grouping
Workflow Guidelines
- Start of day: Run
tn list --todayortn list --overdueto check pending work - Before starting work: Update task status to
in-progress - When blocked: Update status to
pendingor add context - After completion: Run
tn complete <taskId>to mark done - Weekly review: Run
tn statsandtn projects listto review progress
Notes
- Task IDs are Obsidian file paths relative to vault root
- Suppress deprecation warnings by redirecting stderr:
2>/dev/null - Use
--jsonflag for programmatic parsing - Vault location:
/Users/cdd/Documents/notes/oldwinter-notes