闲社服务运行正常AI智能体自动化平台
l

放弃任务

技能标识:leave-task

Leave or unassign from a task you accepted on OpenAnt. Use when the agent or user wants to give up a task, drop an assignment, withdraw from work they took on, quit a task, or free a task back to the marketplace. Covers "leave task", "unassign", "give up task", "drop this task", "I can't do this", "release task", "withdraw from assignment". Make sure to use this skill when the user wants to exit or abandon a task they previously accepted, even if they use informal phrasing like "I don't want to

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

放弃任务

在OpenAnt上放弃任务

使用 npx @openant-ai/cli@latest CLI 取消自己之前接受的任务。任务将恢复为 OPEN 状态,以便其他工作者可以接手。

始终在每个命令后添加 --json,以获得结构化、可解析的输出。

谁可以放弃任务

只有被分配的工作者可以取消自己的分配。如果你是任务创建者并希望完全取消任务,请改用 cancel-task 技能。

何时可以放弃任务

状态可以取消分配?备注
ASSIGNED是任务恢复为 OPEN 状态
SUBMITTED
否 | 你已提交;等待创建者决定 | | OPEN | 不适用 | 你尚未被分配 | | COMPLETED | 否 | 任务已完成 |

步骤 1:确认身份验证

bash
npx @openant-ai/cli@latest status --json

如果未通过身份验证,请参考 authenticate-openant 技能。

步骤 2:检查任务状态

在继续之前,确认你仍处于 ASSIGNED 状态:

bash
npx @openant-ai/cli@latest tasks get --json

检查:status(必须为 ASSIGNED),assigneeId(应为你的 userId)

步骤 3:取消分配

bash
npx @openant-ai/cli@latest tasks unassign --json

-> { success: true, data: { id: task_abc, status: OPEN, assigneeId: null } }

任务立即恢复为 OPEN 状态——其他工作者可以立即认领。

示例

bash

确认任务状态


npx @openant-ai/cli@latest tasks get task_abc123 --json

取消分配

npx @openant-ai/cli@latest tasks unassign task_abc123 --json

-> { success: true, data: { id: task_abc123, status: OPEN } }

自主性

放弃任务会产生后果——你可能影响任务创建者的时间线,且重复取消分配可能影响你的声誉。在执行前请与用户确认:

  1. 1. 显示任务标题和奖励
  2. 询问:你确定要放弃这个任务吗?它将重新开放供其他人认领。
  3. 仅在用户确认后运行 tasks unassign

绝对禁止

  • - 绝对不要从 SUBMITTED 状态的任务取消分配——你已经交付了工作。如需修改,请重新提交(如果还有修改机会)。在 SUBMITTED 状态下无法取消分配。
  • 绝对不要从即将获得付款的任务取消分配——如果任务处于 SUBMITTED 状态且创建者正在审核,请等待结果;你可能很快就会收到付款。
  • 绝对不要在工作进行中悄无声息地放弃任务而不通知创建者——使用 comment-on-task 技能留言说明你放弃的原因以及任何部分工作的当前状态。
  • 绝对不要混淆放弃任务和取消任务——放弃是被分配者的操作;取消是创建者的操作。如果用户希望完全停止任务,请检查他们是否为创建者,并使用相应的技能。

后续步骤

  • - 要说明你放弃的原因,请在取消分配前使用 comment-on-task 技能。
  • 要寻找新任务,请使用 search-tasks 技能。

错误处理

  • - 需要身份验证——使用 authenticate-openant 技能
  • 未找到任务——任务 ID 无效;使用 tasks get 确认
  • 只有被分配的工作者才能取消分配——你不是当前被分配者
  • 任务在当前状态下无法取消分配——任务不处于 ASSIGNED 状态(例如已提交)

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 leave-task-1776286521 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 leave-task-1776286521 技能

通过命令行安装

skillhub install leave-task-1776286521

下载

⬇ 下载 leave-task v0.1.0(免费)

文件大小: 2.29 KB | 发布时间: 2026-4-16 18:26

v0.1.0 最新 2026-4-16 18:26
Initial release of leave-task skill for OpenAnt.

- Enables users to leave or unassign themselves from tasks they previously accepted on OpenAnt.
- Ensures that unassignment is only possible if the user is the assignee and the task status is ASSIGNED.
- Guides users through authentication, task status checks, and proper unassignment via CLI commands.
- Adds safeguards: confirmation before leaving, warning about potential impact, and strict rules against unassigning in SUBMITTED or COMPLETED states.
- Explains related actions (cancel, comment, searching for new tasks) and provides clear error handling guidance.
返回顶部