返回顶部
c

cancel-task取消任务

Cancel a task on OpenAnt and reclaim escrowed funds. Only the task creator can cancel. Use when the user wants to abort a task, take it down, withdraw the bounty, stop accepting applications, shut down a task they created, or recover their escrowed tokens. This skill is also needed when the user says things like "I changed my mind", "close this task", "take down the bounty", or "never mind on this one". Make sure to use this skill whenever the user wants to undo or cancel a task they created, ev

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
364
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

cancel-task

在OpenAnt上取消任务

使用 npx @openant-ai/cli@latest CLI 取消您创建的任务。取消操作会将任务从市场中移除,如果任务有资金托管,则会触发链上退款,将托管代币返还至您的钱包。

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

谁可以取消

只有任务创建者可以取消。受让人不能取消——应使用 leave-task 技能从已分配的任务中退出。

可取消的状态

状态可取消?说明
DRAFT无需链上退款
OPEN
是 | 托管资金将被退还 | | ASSIGNED | 是 | 受让人将失去该任务;请先通知他们 | | SUBMITTED | 否 | 有提交内容等待您审核——请先验证或拒绝 | | COMPLETED | 否 | 任务已完成;资金已释放 | | CANCELLED | 否 | 已取消 |

步骤 1:确认身份验证

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

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

步骤 2:检查任务状态

在取消之前,验证当前状态以及是否有资金托管:

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

检查:status, rewardAmount, rewardToken, assigneeId

如果任务状态为 ASSIGNED,请检查受让人是否已完成重要工作。在没有事先沟通的情况下中途取消可能不公平。

步骤 3:取消任务

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

-> { success: true, data: { id: task_abc, status: CANCELLED } }

步骤 4:验证链上退款(仅限有资金托管的任务)

对于有托管资金的任务,链上退款会自动进行。您可以验证结算状态:

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

-> { data: { status: Refunded, onChain: true } }

退款可能需要几秒钟才能在链上确认。

示例

取消一个公开悬赏

bash

先检查任务


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

取消任务

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

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

验证退款已到账

bash
npx @openant-ai/cli@latest tasks settlement task_abc123 --json

-> { data: { status: Refunded, rewardAmount: 500, mint: EPjFW... } }

自主决策

取消操作是不可逆的——在运行 tasks cancel 之前,务必与用户确认:

  1. 1. 显示任务标题、状态和奖励金额
  2. 如果状态为 ASSIGNED,提示当前有活跃的工作者
  3. 请求明确确认:您确定要取消此任务吗?托管资金将退还到您的钱包。
  4. 仅在用户确认后运行取消命令

禁止事项

  • - 切勿在未先审核提交内容的情况下取消 SUBMITTED 状态的任务——工作者已交付成果并等待付款。取消前至少应附上评论拒绝提交。
  • 切勿代受让人取消任务——受让人使用 tasks unassign,而非 tasks cancel。此命令仅限创建者使用。
  • 切勿认为链上退款是即时的——Solana 索引器需要时间来确认。在检查结算状态前等待几秒钟。
  • 切勿在未警告受让人的情况下取消 ASSIGNED 状态的任务——他们可能已经开始工作。请先使用 comment-on-task 技能通知他们。
  • 切勿为逃避支付合法完成的工作而取消任务——如果工作已完成且质量良好,请改为验证。

后续步骤

  • - 要在取消前通知受让人,请使用 comment-on-task 技能。
  • 要在退款后检查钱包余额,请使用 check-wallet 技能。

错误处理

  • - 需要身份验证——使用 authenticate-openant 技能
  • 未找到任务——任务 ID 无效;使用 tasks get 确认
  • 只有任务创建者可以取消——您不是此任务的创建者
  • 任务当前状态无法取消——任务处于 SUBMITTED/COMPLETED/CANCELLED 状态;使用 tasks get 检查状态

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cancel-task-1776286872 技能

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

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

通过命令行安装

skillhub install cancel-task-1776286872

下载

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

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

v0.1.0 最新 2026-4-16 18:11
Initial release of the cancel-task skill for OpenAnt.

- Provides step-by-step instructions to cancel a task and reclaim escrowed funds.
- Only task creators can cancel; confirms user authentication before proceeding.
- Details which task states can be cancelled and highlights warnings for unfair or irreversible actions.
- Includes recommendations to notify assignees and confirm user intent before cancellation.
- Lists error handling and additional resources for wallet and task status checks.

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

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

p2p_official_large
返回顶部