返回顶部
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
安全检测
已通过
296
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

leave-task

在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.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部