← Back to Skills Marketplace
任务打断机制
by
guyxlouspg
· GitHub ↗
· v1.0.1
· MIT-0
203
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install task-interrupt
Description
管理和中断长时间运行任务,支持用户命令终止、资源清理和任务状态保存,防止任务卡死或无限执行。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install task-interrupt - After installation, invoke the skill by name or use
/task-interrupt - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
修复:移除了不必要的额外脚本,只保留核心的三个工具脚本
v1.0.0
初始版本发布:提供Agent任务执行中断机制,支持优雅停止、检查点保存和资源清理
Metadata
Frequently Asked Questions
What is 任务打断机制?
管理和中断长时间运行任务,支持用户命令终止、资源清理和任务状态保存,防止任务卡死或无限执行。 It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.
How do I install 任务打断机制?
Run "/install task-interrupt" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 任务打断机制 free?
Yes, 任务打断机制 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 任务打断机制 support?
任务打断机制 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 任务打断机制?
It is built and maintained by guyxlouspg (@guyxlouspg); the current version is v1.0.1.
More Skills