当前位置: 首页 > Skill >

Taskr - Persistent Task Planning & Execution for AI Agents

Taskr - Persistent Task Planning & Execution for AI Agents

Taskr - Persistent Task Planning & Execution for AI Agents

OpenClaw 持久云任务规划与执行。创建层级任务计划,可在会话重置后保留,跨多个代理运行,并让用户重新...

1.1.1 2026.11.27 202
获取Skill文件查看使用说明
作 者:江知 许可证: 更新时间:2026.11.27
本文目录展开

Taskr — Persistent Task Planning & Execution

Taskr gives OpenClaw agents persistent, structured task management that lives outside the chat session. Plans survive context resets, can be resumed by any agent on any machine, and are always visible to the user via the Taskr web app, VS Code extension, or mobile.

Six things Taskr does for OpenClaw:

  1. Hierarchical planning — break any work into a nested task hierarchy before touching a tool
  2. Persistent context — tasks, notes, and status survive session resets and context compaction
  3. Cross-agent continuity — any agent can pick up any task list from anywhere; get_task transfers ownership automatically
  4. Audit trail via notes — notes attach directly to tasks; cause and effect stay together, not fragmented across chat history
  5. Retroactive sync — task_sync records work done before Taskr was active, closing gaps in history
  6. Shared state — statuses (open, wip, done, skipped) give both agent and user an unambiguous, real-time picture of progress

When to Use Taskr

Use Taskr when:

  • Work has 3+ steps or will take more than a few minutes
  • Work spans multiple sessions or may be handed off to another agent
  • User wants to monitor or approve progress remotely
  • Resuming work from a previous session

Skip Taskr for:

  • Single quick actions (<3 steps, <2 minutes)
  • Pure information retrieval or simple questions
  • User explicitly declines

Proactive default: For any substantial work, offer Taskr before starting:

"I'll plan this in Taskr first — you can review the task breakdown before I start. Sound good?"

Once Taskr is active, stay in Taskr. Don't abandon tasks mid-workflow. Incomplete tasks in the dashboard are confusing and break the audit trail.

The Core Loop

Plan → Create → Create CONTEXT note → Review with user → Execute → Document → Repeat
  1. Plan — think through full scope; break into phases and subtasks before touching any tool
  2. Create — create_task with taskListTitle to build the entire hierarchy in one call
  3. Create CONTEXT note — always attach a CONTEXT note to the new task list (TL_) with background, goals, and any user preferences
  4. Review — present the task plan to the user; get approval before executing anything
  5. Execute — get_task → do the work → update_task status=done → repeat
  6. Document — attach notes to tasks as you go; write PROGRESS notes at phase completions

Single-task discipline: Work on exactly one task at a time. get_task sets you as owner (wip). Complete or skip before moving on.

Planning: Task Hierarchy Design

Use create_task with taskListTitle to create a new task list. Submit 1–100 tasks in a single call — always create the full hierarchy upfront so the user can review before execution begins.

Hierarchy positions:

  • "1", "2", "3" — top-level phases (direct children of the task list)
  • "1.1", "1.2" — subtasks under phase 1
  • "1.1.1" — deeper nesting (max 10 levels)
  • Parents must be declared before their children in the same call

Task types: setup, analysis, implementation, validation, testing

Keep tasks focused. If a task feels too large to complete in one agent turn, break it into subtasks — at creation time or mid-execution via create_task + parentId. Subtasks prevent context overload and make progress visible at the right granularity.

After creating a task list, always immediately create a CONTEXT note on the task list:

create_note(type="CONTEXT", title="[Task List] — Context", body="...", taskId="TL_...")

Executing: Working Through Tasks

get_task

Call get_task to acquire your next task. It automatically sets status to wip and assigns ownership. Use get_task — do not manually set tasks to wip.

  • Omit task_list_id to continue the current task list
  • Pass task_list_id=TL_... to switch to a different task list
  • Pass include_context=true for additional task context and notes
  • Pass bypass_task_id only for emergency task-switching

update_task — two modes

Status mode (one task):

update_task(taskId="TS_...", status="done", ruleContext="RU-PROC-001")

Batch mode (title/description updates only — status NOT allowed in batch):

update_task(tasks=[{taskId, title?, description?}, ...], ruleContext="RU-PROC-001")

Task Statuses — Shared Checkpoints

Statuses are checkpoints visible to both agent and user in real time. Use them with discipline.

Status Meaning
open Ready to be worked on
wip Actively owned by an agent
done Completed and verified
skipped Deliberately not done — must create a FINDING note explaining why

Completing the last child of a parent auto-marks the parent done. You don't need to mark parents manually.

Handling Unexpected Work

When you discover work outside the current task's scope:

  • Blocks current task → create_task (parentId=current task), complete subtask, resume
  • Unrelated → finish current task first, then create a new task for the other work
  • Can wait → document with a FINDING note, continue with current task

Reviewing: get_task_hierarchy

Use get_task_hierarchy to browse and review tasks — not get_task. Never call get_task just to look at structure.

Scope What it returns
project All task lists. Use depth=0 first for names only — avoids token bloat
task_list Full nested hierarchy for one task list. Pass taskId=TL_...
subtree A task and all its descendants. Pass taskId=TS_...

Response path for task_list scope: data.task_lists[0].tasks[0].children[]

Notes — Audit Trail Attached to Tasks

Notes attach to tasks. A finding discovered during task 2.3 lives on task 2.3 — not floating at the project level. Any agent resuming work later has full context exactly where they need it. This is what keeps information from becoming fragmented.

Note types:

Type When to use
CONTEXT Background, goals, user preferences, decisions — create on TL_ immediately after task list creation
FINDING Discoveries, issues, blockers, insights encountered during work
PROGRESS Phase completions — only for phase-level tasks (tasks "1", "2", "3" — direct TL children). NOT for leaf tasks
FILE_LIST Files created, modified, or deleted on the user's system
OTHER Anything that doesn't fit the above

Note discipline:

  • Attach notes to the most specific relevant task (TS_ > TL_ > project-scoped)
  • Update existing notes rather than creating duplicates — use update_note
  • Search before creating: search_notes for prior context when resuming work
  • skipped status always requires a FINDING note with the reason

Two-step note discovery:

  1. list_notes(taskId="TL_...", includeDescendants=true) — get IDs and titles (data.notes.notes[])
  2. get_note(noteId="NT_...") — fetch full content when needed

task_sync — Retroactive Record-Keeping

Use task_sync when work happened before Taskr was activated, or to retroactively close gaps in the task history. Three steps:

Step 1 — Survey (no args): lightweight summary of all task lists

task_sync(ruleContext="")
→ data.sync_check.task_lists[]: {id, name, status, task_count, done_count, open_count, wip_count}

Step 2 — Drill in (pass task_list_id): flat list of all tasks with title, description, status, level

task_sync(task_list_id="TL_...", ruleContext="")
→ data.sync_drill_down.tasks[]: {id, task_number, title, description, status, level, parent_id}

Step 3 — Create done tasks (pass items[]): creates tasks pre-marked as done

task_sync(items=[
  {
    "action": "create_done",
    "title": "...",
    "parentId": "TS_or_TL_...",
    "description": "...",
    "type": "implementation"
  }
], ruleContext="")

Each item requires action: "create_done" and title. parentId (TS_ or TL_) is required unless you provide taskListTitle to create a new task list — items without parentId default to that new list. Up to 50 items per call.

After syncing, attach CONTEXT or FINDING notes to the created tasks to capture the why behind the work.

Cross-Session & Cross-Agent Continuity

Taskr state lives in the cloud — not in your context window. To resume work:

  1. search_notes — find prior decisions, context, findings
  2. get_task_hierarchy(scope="project", depth=0) — identify active task lists
  3. get_task(task_list_id="TL_...") — pick up ownership where work stopped
  4. Review CONTEXT and PROGRESS notes before executing

Any agent — different session, different machine, different model — can resume exactly where work stopped. The task list is the plan. Notes are the memory. Status is the state.

Setup

When credentials are missing:

  1. Get credentials from user:

    • Project ID: Projects page at https://taskr.one (format: PR_00000000...)
    • API Key: User avatar → API Keys menu (click eye icon or copy button)
  2. Configure via gateway.config.patch:

    {
      "skills": {
        "entries": {
          "taskr": {
            "env": {
              "MCP_API_URL": "https://taskr.one/api/mcp",
              "MCP_PROJECT_ID": "<project-id>",
              "MCP_USER_API_KEY": "<api-key>"
            }
          }
        }
      }
    }
    
  3. Verify: Call tools/list and confirm create_task is present.

Users can create multiple projects for different work contexts.

For mcporter/other MCP clients:

mcporter config add taskr "$MCP_API_URL" 
  --header "x-project-id=$MCP_PROJECT_ID" 
  --header "x-user-api-key=$MCP_USER_API_KEY"

Quick Reference

Need Tool
Create plan create_task (taskListTitle + tasks[])
Add context to new task list create_note (type=CONTEXT, taskId=TL_)
Get next task get_task
Mark done update_task (taskId, status="done")
Mark skipped update_task (status="skipped") + create_note (FINDING)
Browse task structure get_task_hierarchy
Add subtask mid-execution create_task (parentId=TS_or_TL_)
Document a finding create_note (type=FINDING, taskId=TS_)
Phase milestone note create_note (type=PROGRESS, taskId=TS_ phase task)
Retroactive history task_sync (3-step)
Resume from prior session search_notes → get_task_hierarchy → get_task
Find prior context search_notes or list_notes

ruleContext values: Pass the Rule ID from the schema (e.g. RU-CTX-001, RU-PROC-001, RU-NOTE-001). Pass "" when the schema says "Leave this parameter blank."

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • Taskr — Persistent Task Planning & Execution
    • When to Use Taskr
    • The Core Loop
    • Planning: Task Hierarchy Design
    • Executing: Working Through Tasks
      • get_task
      • update_task — two modes
      • Task Statuses — Shared Checkpoints
      • Handling Unexpected Work
    • Reviewing: get_task_hierarchy
    • Notes — Audit Trail Attached to Tasks
    • task_sync — Retroactive Record-Keeping
    • Cross-Session & Cross-Agent Continuity
    • Setup
    • Quick Reference
  • 项目或源文件

相关 Skill

更多
Task Planning Task Planning 有效计划和组织软件开发任务,适用于功能拆分、用户故事编写和冲刺规划,处理任务分解...
腾讯云助手 腾讯云助手 Use the local multi-cloud management gateway for cloud task planning, audit retrieval, and future CLI/MCP workflows across providers.
spec-workflow-guide spec-workflow-guide Use when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclear acceptance criteria, or architecture-heavy requests.
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表