daily-task-manager
它能做什么
这项技能把你的待办清单保存在知识库的一个页面中。你可以按优先级添加、完成、推迟或删除任务。
适用场景
- ✓当你想在知识库的任务清单中添加新任务或提醒时。
- ✓当你完成一项任务,并希望记录完成日期时。
- ✓当你想按优先级分组查看未完成任务时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/daily-task-manager/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请添加一个 P1 任务,明天给会计打电话,并按优先级分组显示今天的清单。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取任务页面,进行修改,并为每个任务保存一个稳定的 ID。已完成的任务会按日期归档,且修改不会删除无关的条目。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Daily Task Manager
Contract
This skill guarantees:
- Tasks stored as a brain page (
ops/tasks.md) with structured format and a stableidper task - Task lifecycle: add → in-progress → complete | defer | remove
- Priority levels: P0 (urgent), P1 (today), P2 (this week), P3 (backlog)
- Completed tasks archived with completion date; deferred tasks carry a target date + reason
- Mutations never drop unrelated tasks or unknown sections
- Every action returns the structured result below (Returns)
Returns
After every action, report a structured result so callers (including sub-agents) can chain reliably:
{action, task_id, status: ok|not_found|ambiguous|needs_confirmation, priority, date, page: "ops/tasks.md", saved: true|false}
For review, return the grouped active-task list instead of a single task_id. When invoked with the trigger "task list json", return a JSON array of task objects {id, description, priority, due, status} instead of markdown.
Tool Interface
Use ONLY the declared tools. get_page("ops/tasks.md") to read, put_page("ops/tasks.md", …) to write, add_timeline_entry for the audit trail, search for cross-referencing. Do not shell out to gbrain CLI verbs from this skill; the tools are the interface. (When the user runs this manually outside an agent, the CLI equivalents are gbrain get ops/tasks / gbrain put ops/tasks — equivalents only, not the skill's interface.)
Action Routing
Map user intent deterministically before touching state:
- "add / remind me to / put X on my list" → add
- "done with X / finished X / completed X / ✅ X" → complete
- "push X / defer X / move X to next week" → defer
- "delete X / remove X / kill task X" → remove (explicit delete words only — never infer remove)
- "what are my tasks / task list / what's on my plate (today)" → review ("today" filters to P0+P1)
Phases
- Load.
get_page("ops/tasks.md"). First run: if the page does not exist, create it from the Output Format template, then proceed. - Validate. Determine the action via Action Routing. If required fields are missing (see per-action rules), ask ONE concise clarification before mutating state. Never fabricate priorities, due dates, or defer reasons.
- Identify the target task (complete/defer/remove): match by
idwhen given; otherwise fuzzy-match description against ACTIVE tasks only. Zero matches → returnnot_found, do not mutate. Multiple matches → list candidates with IDs, returnambiguous, do not mutate. - Execute:
- Add: Require a description. Priority: use the user's stated/clearly-implied level; otherwise default to P3 and say so in the reply + timeline entry. Due date only if supplied or explicit in the user's words. Mint a new task ID (
t-YYYYMMDD-NN, NN = next free ordinal that day). Add a timeline entry. - Complete: Mark
[x], move to Completed with(completed: YYYY-MM-DD). - Defer: Require a target date/timeframe AND a reason; ask if missing. Move to Deferred preserving original text, ID, and priority unless the user changes them.
- Remove: Destructive — require explicit confirmation unless the user's message already contains it. Prefer suggesting complete or defer.
- Review: Read-only. Never mutates. Active tasks grouped by priority, IDs shown.
- Add: Require a description. Priority: use the user's stated/clearly-implied level; otherwise default to P3 and say so in the reply + timeline entry. Due date only if supplied or explicit in the user's words. Mint a new task ID (
- Save.
put_page("ops/tasks.md")after any mutation. Diff-mindset: touch only the affected lines; preserve all other content, including sections this skill doesn't recognize.
Edge Cases
- First run: page missing → create from template before acting;
status: ok, note "initialized". - Malformed page: if
ops/tasks.mdexists but doesn't match the schema, do NOT rewrite it wholesale. Append/edit within it minimally, preserve unknown content verbatim, and flag the malformation in the reply. - Retry/duplicate add: if an identical description already exists in active tasks, do not add a duplicate — report the existing task ID instead.
- Dates: ISO 8601 (
YYYY-MM-DD) everywhere. Compute "today"/"next week" with code/clock, never guess. - Page identifier: always
ops/tasks.md(with extension) in tool calls; this is the single canonical location. - Single-writer assumption (concurrency limitation). The task cycle is read-modify-write:
get_page("ops/tasks.md")→ edit →put_page("ops/tasks.md").put_pagereplaces the WHOLE page and has no compare-and-swap, so two mutations that interleave are l
常见问题
优先级如何标记?
P0 表示紧急,P1 表示今天,P2 表示本周,P3 表示待办积压。
推迟一项任务时会发生什么?
任务会保留一个目标日期和推迟原因,之后很容易找到。
我能获得机器可读格式的清单吗?
可以。要求提供 JSON 版本时,会返回每个任务的 ID、优先级、截止日期和状态。
详情
作者的原始描述
Task lifecycle management with stable task IDs. Add, complete, defer, remove, and review tasks with deterministic action routing and fail-closed ambiguity handling. Maintains a running task list as a brain page.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9273
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …