AGENT SKILL

task-tracker

任务进度跟踪——登记步骤计划、实时更新状态、记录决策与问题、 跨会话恢复、多 Agent 分工协作。接到 ≥3 步的复杂任务、 或用户说"做个计划 / 列步骤 / 跟踪进度"时在动手前调用, 用多维表向用户可视化跟踪进度;简单一两步的任务不要建跟踪表。

License 许可
AGPL-3.0
所属仓库
tabtin-ai/TabTin
最近更新
2026-10-08
Stars
★ 454
Forks
115

01 前言 Front Matter

name
task-tracker
metadata
{ "tabtin": { "tags": [ "agent", "task", "tracking", "table" ], "emoji": "📋", "category": "collaboration", "displayName": "Task Tracker" }, "version": "0.2.3" }
description
任务进度跟踪——登记步骤计划、实时更新状态、记录决策与问题、 跨会话恢复、多 Agent 分工协作。接到 ≥3 步的复杂任务、 或用户说"做个计划 / 列步骤 / 跟踪进度"时在动手前调用, 用多维表向用户可视化跟踪进度;简单一两步的任务不要建跟踪表。

02 资源文件 2

03 SKILL.md 正文

Task Tracker

Use this skill when the agent is about to execute a non-trivial task that would benefit from structured progress tracking visible to the user.

When to Create a Tracking Table

Create a tracking table when the task meets any of these criteria:

  • Requires 3 or more distinct steps
  • Involves modifying multiple files
  • Requires technical decisions or trade-offs
  • User explicitly asks to plan, organize, or track

Do NOT create a tracking table for:

  • Simple questions or explanations
  • Single-file edits or quick fixes
  • Tasks the user describes as "quick" or "simple"

How to Create

Use CLI to create a task tracking table with standard fields:

tabtin table create --name "🤖 <short task description>" --fields '[
  {"name":"任务","field_type":"text"},
  {"name":"状态","field_type":"select","options":{"choices":["⬜ 待做","🟡 进行中","✅ 完成","🔴 阻塞","❌ 取消"]}},
  {"name":"阶段","field_type":"text"},
  {"name":"摘要","field_type":"text"},
  {"name":"决策","field_type":"text"},
  {"name":"问题","field_type":"text"},
  {"name":"负责人","field_type":"text"},
  {"name":"开始时间","field_type":"date","options":{"formatting":{"date":"YYYY/MM/DD","time":"HH:mm","timeZone":"Asia/Shanghai"}}},
  {"name":"更新时间","field_type":"date","options":{"formatting":{"date":"YYYY/MM/DD","time":"HH:mm","timeZone":"Asia/Shanghai"}}}
]'

这套固定 schema(含 🤖 前缀 + 状态选项)可直接跑 scripts/create-tracker-table.sh "<task description>", 它就是上面这条 table create 的封装、成功后打印 table_id;插入初始任务行仍按下面手动 bulk-insert。

资源导航(按需运行)

  • scripts/create-tracker-table.sh:当你要用标准字段快速建一张新的跟踪表时运行;如果用户已给出自定义字段,按正文手动 tabtin table create。
  • scripts/update-tracker-task.sh:当你只想安全更新某一行状态/摘要(避免手写 SQL 引号或漏 WHERE)时运行;更新时机仍按「When to Update」判断。

Then insert initial tasks:

tabtin table record bulk-insert --table-id <table_id> --records '[
  {"任务":"Specific subtask description","阶段":"Phase 1: Discovery","状态":"🟡 进行中"},
  {"任务":"Another subtask","阶段":"Phase 1: Discovery","状态":"⬜ 待做"},
  {"任务":"Implementation subtask","阶段":"Phase 2: Implementation","状态":"⬜ 待做"}
]'

Rules:

  • Table name MUST start with 🤖
  • Use the user's language for table name and task descriptions
  • Keep phases between 3-7 (same as Planning-with-Files principle)
  • Each phase can have multiple subtask rows
  • The first subtask is automatically set to 🟡 in progress

How to Update Progress

Run tabtin table execute to update the current task row (CLI 替代 FC; 原 tabdata 写入类 FC 已于 Wave 4a / 2026-05-01 下架,Agent 工具集里只剩 CLI 这条路):

这条按「任务」定位行、置状态/摘要并把「更新时间」设为 NOW() 的固定 UPDATE 可直接跑 scripts/update-tracker-task.sh--table "🤖 xxx" --task "<任务文本>" --status "✅ 完成" [--summary ...] (封装下面的 SQL、自动转义 + 强制带 WHERE);何时更新、写什么内容仍按本节判断。

tabtin table execute "
UPDATE \"🤖 xxx\" SET
  \"状态\" = '✅ 完成',
  \"摘要\" = 'Brief summary of what was done and the result',
  \"更新时间\" = NOW()
WHERE \"任务\" = 'current task description';
"

tabtin table execute "
UPDATE \"🤖 xxx\" SET
  \"状态\" = '🟡 进行中',
  \"开始时间\" = NOW()
WHERE \"任务\" = 'next task description';
"

When to Update

  • Status changes: Immediately when starting or completing a subtask
  • Summary: When a phase completes, write a brief summary
  • Decisions: Record immediately when making a technical or design decision
  • Problems: Record immediately when encountering an error, include attempt count

Problem Recording Format

Attempt 1: [error description] -> [solution tried]
Attempt 2: [error description] -> [different approach]

How to Read User Modifications

Before starting each new phase, query the table for current state via tabtin table query:

tabtin table query "
SELECT \"任务\", \"状态\", \"阶段\", \"决策\", \"问题\"
FROM \"🤖 xxx\"
WHERE \"状态\" NOT IN ('✅ 完成', '❌ 取消')
ORDER BY "__order"
"

Adjust behavior based on what you find:

  • Row status changed to ❌ 取消 -> Skip that task
  • Row status changed from 🟡 进行中 back to ⬜ 待做 -> Pause it, work on other tasks first
  • User appended text to 决策 or 问题 fields -> Treat as new constraints
  • Row order (__order) changed -> Follow the new order

Cross-Session Recovery

When starting a new session, check if the project has existing tracking tables:

  1. Use tabtin table list or tabtin table query "SELECT ..." to get available tables
  2. Look for tables whose name starts with 🤖
  3. If found, query incomplete tasks:
tabtin table query "
SELECT \"任务\", \"状态\", \"阶段\", \"摘要\", \"决策\", \"问题\"
FROM \"🤖 xxx\"
WHERE \"状态\" NOT IN ('✅ 完成', '❌ 取消')
ORDER BY "__order"
"
  1. Also read completed tasks for context:
tabtin table query "
SELECT \"任务\", \"摘要\", \"决策\"
FROM \"🤖 xxx\"
WHERE \"状态\" = '✅ 完成'
ORDER BY "__order"
"
  1. Resume from the first incomplete task.

Multi-Agent Collaboration

If acting as a sub-agent:

  1. Check if a tracking table already exists (created by the main agent)
  2. Find your assigned rows: WHERE "负责人" = '<your identifier>'
  3. Only update rows assigned to you

If acting as a main agent delegating subtasks:

  1. Create rows for sub-agents with their identifier in the 负责人 field
  2. Periodically check for blocked items: WHERE "状态" = '🔴 阻塞'

When tracking gets nested (任务 + 子任务、阶段 + 阶段内任务)

The flat schema above is enough for most agent-tracking scenarios. If you genuinely need hierarchy (parent task → child subtasks, or task → linked artifact records), don't squeeze it into the 阶段 text column—use the proper structure:

  • 同表父子:用 tabtin table sub-record ensure-parent-field + sub-record create 建自引用 link 树
  • 任务关联到外部对象(比如关联到 PR、文档):在跟踪表加一个 link 字段指向外部表,点击关联记录查看详情

完整建模与决策树看 skills_read("app:tabdata/table-modeling")。否则默认就保持扁平表,不要过度设计。

04 同仓库更多 Skills

tabtin-ai
tabtin-ai/TabTin

tabtracker

管理自动化任务——创建、列出、暂停、恢复、立即触发(产品模块名「自动化」, 具体条目称「自动化任务」;CLI 命令仍为 tabtin tracker)。当用户表达"派活"意图时使用: 关键词包括"帮我..."、"以后..."、"每天..."、"工作日..."、 "提醒我..."、"定时..."、"每周..."。区分一次性指令(直接执行)和长期任务(创建 自动化任务,由调度器在指定时间唤起 Agent)。

★ 454
tabtin-ai
tabtin-ai/TabTin

tabtin-project

在 Project Task 执行会话中工作:先读取当前任务工作面,再优先修改既有中间产物。 当系统上下文表明当前会话是 Project Task,或用户要求继续修改过程中的中间产物时使用。

★ 454
tabtin-ai
tabtin-ai/TabTin

skill-market

管理 Skill 生命周期——列出已装、看详情、搜索市场、 安装、卸载、启用、禁用、更新。当用户表达"装个技能 / 卸载技能 / 看看有什么技能 / 启用禁用技能"意图时使用。

★ 454
tabtin-ai
tabtin-ai/TabTin

tabtin-widget

渲染可视化组件——用 show_widget 编译 SVG / HTML(no-script) / Mermaid 图做自由可视化。内容能落 present_to_user 4 类 kind → 不用 widget;长期可编辑产物 → TabData/ TabDoc/TabSlide。

★ 454
tabtin-ai
tabtin-ai/TabTin

resource-link

插入资源链接——在 chat 文字流里给资源链接,markdown link 形态 [显示文本](tabtin://resource/<type>/<id>?hint=<carrierApp>), 用户点击直接在 Space 内打开。行业格式(http/https/ file/mailto)也兼容;不要写 file:// 让用户自己复制粘贴。

★ 454
tabtin-ai
tabtin-ai/TabTin

mcp-operations

操作本机 MCP 连接——通过 `tabtin mcp` CLI 查看当前 Space 已挂载的本机 MCP servers、tools/resources/ prompts,并用 `mcp_call_tool` 调用指定 MCP tool。 用户提到"使用 Playwright MCP""调用本机安装的 MCP 工具""读取某个 MCP resource""获取某个 MCP prompt"时激活。

★ 454