← 返回 Skills 市场
guyxlouspg

任务打断机制

作者 guyxlouspg · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
203
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install task-interrupt
功能描述
管理和中断长时间运行任务,支持用户命令终止、资源清理和任务状态保存,防止任务卡死或无限执行。
安全使用建议
This skill appears coherent and implements a simple flag-file + polling interrupt pattern. Before installing, verify: (1) how sessionId is mapped to processId in your environment — ensure only the intended child process can be signalled; (2) file permissions and /tmp isolation — flag files created in /tmp are world-visible by default, consider using a per-agent temp directory or restrictive permissions; (3) that checkpoint/save logic is implemented in your long-running tasks so interruptions are safe; (4) scripts are placed where the agent expects and marked executable; (5) test in a staging environment to confirm no accidental PID collisions or privilege escalations. If you need stronger guarantees, consider authenticated/IPC-based signaling instead of plain /tmp files and process.kill.
功能分析
Type: OpenClaw Skill Name: task-interrupt Version: 1.0.1 The 'task-interrupt' skill provides a legitimate mechanism for managing and terminating long-running Agent tasks. It uses flag files in /tmp (e.g., /tmp/agent-stop-{sessionId}.flag) and shell scripts (create-stop-flag.sh, check-stop-flag.sh) to signal interruptions, save checkpoints, and perform resource cleanup. The logic is transparently documented in SKILL.md and instructions.md, and the file operations are restricted to task-specific temporary files, showing no signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description match the provided artifacts: scripts create/check/clear a /tmp stop-flag, SKILL.md and instructions.md describe polling, checkpointing and optional SIGINT/process.kill behavior. The declared filesystem permission in claw.json fits the functionality.
Instruction Scope
Runtime instructions stay within the task-interrupt domain (write/read/remove flag files, poll, save checkpoints, send SIGINT). Note: docs/examples call process.kill (SIGINT) and exec the create script — expected for this purpose but these actions require correct mapping of sessionId→PID to avoid accidental kills.
Install Mechanism
No install spec; this is instruction-only plus three small shell scripts. Nothing is downloaded or written by an installer, reducing installation risk.
Credentials
The skill requests no environment variables or external credentials. Files and paths referenced are confined to /tmp/agent-stop-{sessionId}.flag, which is consistent with the stated design.
Persistence & Privilege
always is false and the skill does not request persistent or system-wide configuration changes. It needs filesystem access (declared) but does not try to modify other skills or agent configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install task-interrupt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /task-interrupt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
修复:移除了不必要的额外脚本,只保留核心的三个工具脚本
v1.0.0
初始版本发布:提供Agent任务执行中断机制,支持优雅停止、检查点保存和资源清理
元数据
Slug task-interrupt
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

任务打断机制 是什么?

管理和中断长时间运行任务,支持用户命令终止、资源清理和任务状态保存,防止任务卡死或无限执行。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 203 次。

如何安装 任务打断机制?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install task-interrupt」即可一键安装,无需额外配置。

任务打断机制 是免费的吗?

是的,任务打断机制 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

任务打断机制 支持哪些平台?

任务打断机制 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 任务打断机制?

由 guyxlouspg(@guyxlouspg)开发并维护,当前版本 v1.0.1。

💬 留言讨论