← 返回
AI智能 中文

Local Task Runner

Executes Node.js code snippets or scripts locally with isolation, cleanup, and timeout, serving as a lightweight alternative to spawning subagents.
在本地隔离、清理并设置超时地执行 Node.js 代码片段或脚本,作为生成子代理的轻量替代方案。
d-wwei
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,102
下载
💾 24
安装
1
版本
#latest

概述

Local Task Runner

This skill provides a mechanism to execute Node.js code snippets or full scripts locally on the host machine.

It is the default execution method when subagent spawning is unavailable or inefficient.

Purpose

  • Replace Subagents: Instead of spawning a full subagent for simple tasks, use this skill to run code directly.
  • Safety: Isolates execution logic, handles cleanup, and enforces timeouts.
  • Convenience: No manual file management required (write + exec + rm).

Usage

When you need to perform a calculation, check system status, or run a utility script:

  1. Construct the Node.js code as a string.
  2. Call run_task (or execute via CLI) with the code.

Command Line Interface

# Execute a task
node skills/local-task-runner/index.js run --code "console.log('Hello World')"

# Execute with timeout (ms)
node skills/local-task-runner/index.js run --code "while(true){}" --timeout 5000

Response Format

Success:

[TASK: <id>] Completed in 123ms
--- STDOUT ---
...

Error:

[TASK: <id>] Failed in 123ms
Error: ...
--- STDERR ---
...

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 11:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

NVIDIA NIM Skill

d-wwei
通过NVIDIA NIM API调用多种大语言模型(如GLM-5、Kimi-k2.5、Llama 3.1等),节省主代理令牌并利用专业化模型能力。
★ 0 📥 1,114
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,352 📥 317,827
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,058 📥 796,973