← Back to Skills Marketplace
tsangho

Task Interrupt Pro

by tsangho · GitHub ↗ · v1.0.4 · MIT-0
linuxdarwin ✓ Security Clean
181
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install task-interrupt-pro
Description
Task Interrupt Skill Pro - 精确停止Agent执行中的子任务进程。 Triggers: "停止猫经理", "停止猫工头", "停止猫财子", "停止猫播播", "停止我的任务", "中断猫经理", "解救猫经理", "agent任务卡住", "进程无响应", "子任务卡死"。 注意:不支...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install task-interrupt-pro
  3. After installation, invoke the skill by name or use /task-interrupt-pro
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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冲突,三层中断保障
Metadata
Slug task-interrupt-pro
Version 1.0.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Task Interrupt Pro?

Task Interrupt Skill Pro - 精确停止Agent执行中的子任务进程。 Triggers: "停止猫经理", "停止猫工头", "停止猫财子", "停止猫播播", "停止我的任务", "中断猫经理", "解救猫经理", "agent任务卡住", "进程无响应", "子任务卡死"。 注意:不支... It is an AI Agent Skill for Claude Code / OpenClaw, with 181 downloads so far.

How do I install Task Interrupt Pro?

Run "/install task-interrupt-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Task Interrupt Pro free?

Yes, Task Interrupt Pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Task Interrupt Pro support?

Task Interrupt Pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin).

Who created Task Interrupt Pro?

It is built and maintained by tsangho (@tsangho); the current version is v1.0.4.

💬 Comments