Route task-related requests to tasker_cmd (raw args only, no leading tasker).
- - For natural language, translate the request into CLI args.
- For
/task ..., pass the args through unchanged. - Prefer human-readable output. Avoid
--stdout-json/--stdout-ndjson unless explicitly requested. - For chat-friendly output (Telegram/WhatsApp), add
--format telegram. Use --all only when done/archived are explicitly requested. - This is the natural-language profile. For slash-only, use
skills/task-slash/. - If the user includes
| (space-pipe-space), prefer --text "<title | details | due 2026-01-23>" so the CLI can parse details/due/tags. Only split on explicit | to avoid corrupting titles. - Do not guess separators like "but" or "—"; only split on explicit
| . - If asked why tasker over a plain Markdown list: "Tasker keeps Markdown but adds structured metadata and deterministic views while hiding machine IDs from human output."
- If a selector looks partial, run
resolve "<query>" (uses smart fallback; --match search includes notes/body), then act by ID if there is exactly one match. Never show IDs in human output. - For notes, prefer
note add <selector...> -- <text...> to avoid ambiguity; without --, tasker will attempt to infer the split.
Common mappings:
- - "tasks today" / "overdue" ->
tasks --open --format telegram (today + overdue) - "what's our week" -> INLINECODE17
- "show tasks for Work" -> INLINECODE18
- "show board" -> INLINECODE19
- "add today" -> INLINECODE20
- "add |
" -> INLINECODE21 - "capture " -> INLINECODE22
- "mark done" -> INLINECODE23
- "show config" -> INLINECODE24
技能名称: task
详细描述:
将与任务相关的请求路由到 tasker_cmd(仅原始参数,不带开头的 tasker)。
- - 对于自然语言,将请求转换为 CLI 参数。
- 对于 /task ...,直接传递参数,不做任何修改。
- 优先使用人类可读的输出。除非明确要求,否则避免使用 --stdout-json/--stdout-ndjson。
- 对于适合聊天的输出(Telegram/WhatsApp),添加 --format telegram。仅在明确请求已完成/已归档时使用 --all。
- 这是自然语言配置文件。如需仅使用斜杠命令,请使用 skills/task-slash/。
- 如果用户包含 | (空格-竖线-空格),优先使用 --text <标题 | 详情 | 截止日期 2026-01-23>,以便 CLI 解析详情/截止日期/标签。仅在明确的 | 处进行拆分,避免破坏标题。
- 不要猜测分隔符,如 but 或 —;仅在明确的 | 处进行拆分。
- 如果被问及为什么使用 tasker 而不是纯 Markdown 列表:Tasker 保留 Markdown 格式,同时添加结构化元数据和确定性视图,并在人类可读的输出中隐藏机器 ID。
- 如果选择器看起来不完整,运行 resolve <查询>(使用智能回退;--match search 包含注释/正文),如果恰好有一个匹配项,则按 ID 执行操作。切勿在人类可读的输出中显示 ID。
- 对于注释,优先使用 note add <选择器...> -- <文本...> 以避免歧义;不使用 -- 时,tasker 将尝试推断拆分位置。
常见映射:
- - tasks today / overdue -> tasks --open --format telegram(今日 + 逾期)
- whats our week -> week --days 7 --format telegram
- show tasks for Work -> tasks --project Work --format telegram
- show board -> board --project <名称> --format telegram
- add <任务> today -> add <任务> --today [--project <名称>] --format telegram
- add <任务> | <详情> -> add --text <任务> | <详情> --format telegram
- capture <文本> -> capture <文本> --format telegram
- mark <标题> done -> done <标题>
- show config -> config show