微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✅

命令行任务管理,工作区数据隔离

taskwarrior · v0.1.3
效率 安全 A 级 作者 aghareza 公开目录收录
下载 1.3k 安装 1 收藏 5.7k 浏览 13
原始页面

简介

Taskwarrior 工作区级任务管理,支持项目、标签、截止日期和优先级追踪,数据完全隔离在当前工作空间内。

原始描述

Workspace-local task management powered by Taskwarrior. Add, organize, and track tasks by project, tags, due dates, and priority with all data stored inside...

中文使用说明 来自收录源

Taskwarrior 工作区任务管理技能评估

核心用法

Taskwarrior 是一款成熟的开源命令行任务管理工具,该技能将其封装为工作区隔离模式,所有数据存储于 <workspace>/.openclaw/taskwarrior/ 目录,避免污染用户全局配置。核心功能覆盖任务全生命周期:添加(add)、列表筛选(list/filter)、修改(modify)、完成标记(done)、启动/暂停(start/stop),以及项目分组(project:)、标签系统(+tag/-tag)、截止日期(due:)和优先级(priority:H|M|L)管理。支持任务注释(annotate)用于补充说明。

显著优点

  1. 数据隔离安全性:强制通过 TASKRC/TASKDATA 环境变量指向工作区路径,杜绝误操作全局任务库
  2. 成熟稳定后端:Taskwarrior 历经十余年开发,拥有完善的依赖关系管理、重复任务、日历视图等高级功能
  3. 纯文本可审计:数据以 JSON 形式存储,便于版本控制和脚本化处理
  4. 无供应商锁定:标准 Taskwarrior 格式,可随时迁移至其他环境

潜在局限

  • 依赖外部二进制:需运行时环境预装 task 命令,技能本身不负责安装
  • 命令行学习曲线:需掌握 Taskwarrior 特有的查询语法(如 due.before:today)
  • 无图形界面:纯 CLI 交互,对非技术用户不够友好
  • 协作能力弱:单机文件存储,天然不支持多用户实时协作

适合人群

软件开发团队、DevOps 工程师、技术写作者等需要项目上下文任务管理的用户;尤其适合将任务数据纳入版本控制或希望与 CI/CD 工作流集成的场景。

常规风险

  • 工作区识别歧义:依赖 OPENCLAW_WORKSPACE 等环境变量回退机制,若均未设置且 CWD 非预期位置可能导致数据漂移
  • 配置覆盖风险:confirmation=off 设置虽提升自动化效率,但批量操作时缺乏二次确认
  • 备份责任转移:工作区级存储意味着用户需自行确保 .openclaw/ 目录的备份策略

安全等级说明

设计层面贯彻最小权限原则(不触碰全局配置),但依赖外部二进制和文件系统操作,故评定为 A 级(良好安全设计,需关注环境配置正确性)。

技能正文


name: taskwarrior description: > Workspace-local task management powered by Taskwarrior. Add, organize, and track tasks by project, tags, due dates, and priority with all data stored inside the active workspace.

metadata: | { "openclaw": { "requires": { "bins": ["task"] }, "install": [ { "kind": "apt", "bins": ["task"], "packages": ["taskwarrior"] }, { "kind": "brew", "bins": ["task"], "packages": ["task"] } ] } }

Taskwarrior (Workspace-Local Tasks) — AgentSkill

Skill name

taskwarrior

Purpose

Manage tasks using Taskwarrior as the backend with data stored inside the current workspace. This skill provides a safe, workspace-scoped wrapper for common Taskwarrior operations (add/list/modify/done/projects/tags/due/priority/annotations).

Runtime requirements (ClawHub)

This skill requires Taskwarrior to already be available in the runtime environment (e.g., included in the base image).

  • Validation: run task --version
  • If missing: report the dependency and instruct the environment owner to install system package taskwarrior (some distros package it as task).

This skill does not perform system-level installs (no apt, brew, dnf, etc.).

Workspace root resolution (portable)

The skill resolves the workspace root at runtime:

  1. If set, use the first available of:
    • OPENCLAW_WORKSPACE
    • WORKSPACE
    • PROJECT_DIR
    • REPO_ROOT
  2. Otherwise, fallback to the current working directory.

All Taskwarrior data is stored under: <workspace>/.openclaw/taskwarrior/

Workspace-local Taskwarrior home

  • taskrc: <workspace>/.openclaw/taskwarrior/taskrc
  • data dir: <workspace>/.openclaw/taskwarrior/.task/

Every Taskwarrior command MUST run with:

  • TASKRC=<workspace>/.openclaw/taskwarrior/taskrc
  • (optional) TASKDATA=<workspace>/.openclaw/taskwarrior/.task

Never write to global ~/.task or ~/.taskrc unless the user explicitly asks to use global storage.

Core workflow

  1. Check dependency

    • Run: task --version
    • If missing: stop and return dependency instructions (see references/clawhub_notes.md).
  2. Initialize workspace storage

    • Ensure directories exist:
      • <workspace>/.openclaw/taskwarrior/
      • <workspace>/.openclaw/taskwarrior/.task/
    • Ensure <workspace>/.openclaw/taskwarrior/taskrc contains at least:
      • data.location=<workspace>/.openclaw/taskwarrior/.task
      • confirmation=off
      • verbose=off
  3. Execute requested operations

    • Prefer stable/common commands (see references/taskwarrior_cheatsheet.md).
  4. Verify results

    • After any mutation, show a focused task <id> info or filtered task <filter> list.

Supported operations (useful subset)

  • Add tasks: task add ...
  • List tasks: task list, task <filter> list
  • Modify tasks: task <id> modify ...
  • Complete tasks: task <id> done
  • Start/stop: task <id> start|stop (if desired)
  • Projects/tags: task projects, task tags, project:<name>, +tag, -tag
  • Due/priorities: due:<date>, priority:H|M|L
  • Notes: task <id> annotate "..."

Safety

Follow references/safe_command_policy.md. Highlights:

  • No delete/purge unless explicitly requested.
  • Avoid broad bulk changes without previewing the matching set.
  • No global config writes by default.

References

  • references/workspace_data_layout.md
  • references/taskwarrior_cheatsheet.md
  • references/safe_command_policy.md
  • references/examples.md
  • references/clawhub_notes.md

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

task-managementcliproductivityproject-managementworkspace-localdata-isolationopen-source

同类 Skill