Task Tracker
Persist task context across sessions and channels by maintaining per-task files.
Core Concept
Each task gets a single markdown file in tasks/. The file IS the memory —
independent of session history, compaction, or channel.
When This Skill Fires
| Situation | Action |
|---|
| New task/project mentioned | Create task file + update index |
| Progress/decision on existing task |
Update that task file |
| Session start (bootstrap) | Read
_INDEX.md |
| User references a task | Read that task file, respond with context |
| User signals leaving ("先这样", "回家再说") | Ensure all discussed tasks are updated |
Task Directory
Location: INLINECODE2
CODEBLOCK0
Task File Format
CODEBLOCK1
Rules:
- - 进展记录: newest date on top
- 待办: mark done with
[x] when complete - 关键信息: only facts that another session needs to function
- 相关文件: absolute paths, brief description
Index File (_INDEX.md)
CODEBLOCK2
Maintain this file whenever a task's status changes.
Workflow
Creating a New Task
- 1. Create
tasks/{task-name}.md using the template above - Add entry to
_INDEX.md under 进行中 - Confirm creation with user
Updating a Task
- 1. Update 进展记录 (prepend new date entry if new day)
- Update 待办 (check off completed items)
- Update 状态 if changed
- Update 最后更新 timestamp
- Sync 状态 change to INLINECODE7
Session Bootstrap
- 1. Read INLINECODE8
- No user action needed — just be ready
- When user mentions a task, read that file and respond with current context
Task Completion / Archive
- - Move file to INLINECODE9
- Remove from INLINECODE10
- Do this for tasks completed or stalled more than 30 days
File Naming
- - Chinese or English, short and clear
- No special characters, use
- for spaces - Max 64 characters
任务追踪器
通过在会话和频道间维护每个任务的文件来持久化任务上下文。
核心概念
每个任务在 tasks/ 目录下对应一个独立的 Markdown 文件。这个文件就是任务的记忆载体——独立于会话历史、压缩或频道切换。
触发场景
| 场景 | 操作 |
|---|
| 提及新任务/项目 | 创建任务文件 + 更新索引 |
| 现有任务的进展/决策 |
更新对应任务文件 |
| 会话开始(启动加载) | 读取 _INDEX.md |
| 用户引用某个任务 | 读取该任务文件,返回上下文 |
| 用户表示离开(先这样、回家再说) | 确保所有讨论过的任务已更新 |
任务目录
位置:{workspace}/tasks/
tasks/
├── _INDEX.md # 任务索引(自动维护)
├── project-alpha.md # 每个任务一个文件
└── weekly-report.md
任务文件格式
markdown
[任务名称]
- - 状态: 进行中 | 暂停 | 待启动 | 已完成 | 已搁置
- 优先级: 高 | 中 | 低
- 创建时间: YYYY-MM-DD
- 最后更新: YYYY-MM-DD
- 标签: #标签1 #标签2
目标
[一句话描述:该任务要实现什么]
背景
[为什么存在这个任务,原始上下文]
进展记录
YYYY-MM-DD
待办
关键信息
[必须持久化的核心事实:配置、链接、账号、约束条件]
相关文件
规则:
- - 进展记录:最新日期在最上方
- 待办:完成后用 [x] 标记
- 关键信息:仅包含其他会话需要使用的关键事实
- 相关文件:绝对路径,简要描述
索引文件(_INDEX.md)
markdown
任务索引
🟢 进行中
| 任务 | 状态 | 最后更新 | 优先级 |
|------|------|---------|--------|
🟡 暂停
| 任务 | 状态 | 最后更新 | 优先级 |
|------|------|---------|--------|
⚪ 已完成
| 任务 | 完成时间 |
|------|---------|
每当任务状态发生变化时,维护此文件。
工作流程
创建新任务
- 1. 使用上述模板创建 tasks/{任务名称}.md
- 在 _INDEX.md 的进行中部分添加条目
- 向用户确认创建完成
更新任务
- 1. 更新进展记录(如果是新的一天,在最前面添加新日期条目)
- 更新待办事项(勾选已完成项)
- 如果状态有变化则更新状态
- 更新最后更新时间戳
- 将状态变更同步到 _INDEX.md
会话启动加载
- 1. 读取 _INDEX.md
- 无需用户操作——只需做好准备
- 当用户提及某个任务时,读取该文件并返回当前上下文
任务完成/归档
- - 将文件移动到 tasks/archive/
- 从 _INDEX.md 中移除
- 对已完成或停滞超过30天的任务执行此操作
文件命名
- - 中文或英文,简短清晰
- 无特殊字符,空格用 - 代替
- 最长64个字符