← 返回 Skills 市场
181
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install task-interrupt-pro
功能描述
Task Interrupt Skill Pro - 精确停止Agent执行中的子任务进程。 Triggers: "停止猫经理", "停止猫工头", "停止猫财子", "停止猫播播", "停止我的任务", "中断猫经理", "解救猫经理", "agent任务卡住", "进程无响应", "子任务卡死"。 注意:不支...
安全使用建议
This skill appears to do what it says: create stop flags and send signals to terminate local subagent processes. Before installing, verify that: (1) your agents use the SESSION_ID naming convention the scripts expect so the correct target is chosen; (2) only trusted agents/users can invoke handle-stop.sh (the script acts on files in /tmp owned by the current user or root); (3) writing an audit log to /tmp is acceptable for your environment (it contains SESSION_ID and reason); and (4) you accept that the script will use kill -9 as a last resort (possible data loss). If you need stricter isolation, run agents under distinct OS users or adapt the PID/flag storage path to a more restricted directory.
功能分析
Type: OpenClaw Skill
Name: task-interrupt-pro
Version: 1.0.4
The task-interrupt-pro skill bundle is a utility designed to allow an AI agent to manage and terminate its own sub-processes gracefully. The core logic in scripts like handle-stop.sh and task-template.sh includes significant security hardening, such as strict regex validation for session IDs, protection against symlink attacks on PID and flag files, ownership verification, and process command-line validation before issuing kill signals. The documentation (SKILL.md and instructions.md) is well-aligned with the stated purpose and contains no evidence of malicious prompt injection or unauthorized data access.
能力评估
Purpose & Capability
Name/description promise: precise stopping of subagent tasks. Declared requirements: only bash and filesystem permission (claw.json lists filesystem). The provided scripts implement PID files, stop flags, and signal-based termination — these are directly related to the claimed purpose and nothing extraneous (no cloud credentials, no network calls).
Instruction Scope
SKILL.md and instructions explicitly tell the agent to call scripts/handle-stop.sh and to map user stop-phrases to SESSION_IDs. The scripts act only on local /tmp PID/flag files, create an audit log in /tmp, and use kill(2) (SIGINT/SIGTERM/SIGKILL). This matches the declared scope. Note: the skill assumes a correct mapping from agent-name → SESSION_ID; if an agent supplies an arbitrary SESSION_ID it will operate on the corresponding /tmp files. The scripts include validation (SESSION_ID regex, PID file ownership, cmdline matching) which reduces risk but relies on the system's /tmp semantics and the correctness of SESSION_ID selection.
Install Mechanism
No install spec — instruction-only with shipped scripts. Required binary is bash (reasonable for shell scripts). Nothing is downloaded from external URLs or installed from registries.
Credentials
The skill requests no environment variables or external credentials. All actions are local and the scripts enforce checks on PID file ownership and command-line content before killing a process, which is proportionate to the task.
Persistence & Privilege
always is false and the skill does not request permanent agent-wide privileges. It writes temporary artifacts and an audit log to /tmp, and schedules background cleanup of flag files (60s). It does not modify other skills or global agent config.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install task-interrupt-pro - 安装完成后,直接呼叫该 Skill 的名称或使用
/task-interrupt-pro触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
Fix: validate_process return value (skip kill on cmdline mismatch), FLAG_FILE symlink check, REASON JSON escaping, grep ERE mode fix
v1.0.3
v1.0.3体验优化: 豆包建议,命令行校验由拒绝改为警告+跳过kill,兼容bash-c变量展开场景,flag机制保证优雅退出,体验更平滑
v1.0.2
v1.0.2综合改进: 整合Kimi+豆包建议,新增审计日志/严格SESSION_ID格式校验/flock原子锁/PID文件权限检查,完整审计链STARTED→VALIDATED→TERMINATING→SUCCESS/FAILED,跨平台Linux+macOS
v1.0.1
安全加固: PID文件校验+进程标识验证+命令注入防护; 交互优化+脚本稳定修复
v1.0.0
Initial Pro release - 支持精确停止特定agent,避免与系统/stop冲突,三层中断保障
元数据
常见问题
Task Interrupt Pro 是什么?
Task Interrupt Skill Pro - 精确停止Agent执行中的子任务进程。 Triggers: "停止猫经理", "停止猫工头", "停止猫财子", "停止猫播播", "停止我的任务", "中断猫经理", "解救猫经理", "agent任务卡住", "进程无响应", "子任务卡死"。 注意:不支... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 181 次。
如何安装 Task Interrupt Pro?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install task-interrupt-pro」即可一键安装,无需额外配置。
Task Interrupt Pro 是免费的吗?
是的,Task Interrupt Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Task Interrupt Pro 支持哪些平台?
Task Interrupt Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin)。
谁开发了 Task Interrupt Pro?
由 tsangho(@tsangho)开发并维护,当前版本 v1.0.4。
推荐 Skills