搜索

PythonReactSEOPDF
OpenClaw

Local Task Runner

Local Task Runner

d-wwei0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install d-wwei/local-task-runner

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 ---
...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/d-wwei/local-task-runner
Version
—
Commit
1d76d49eadc610f0940ac9b2c07a54513855cced
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Local Task Runner

  • Description: Safely execute Node.js code snippets locally as a substitute for subagents.
  • Location: skills/local-task-runner
  • Use: When you need to execute code or scripts without spawning a full subagent.
  • Command: node skills/local-task-runner/index.js run --code "..." [--timeout 30000]

来源内容

SKILL.md
# 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

```bash
# 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 ---
...
```
README
# Local Task Runner
- **Description**: Safely execute Node.js code snippets locally as a substitute for subagents.
- **Location**: `skills/local-task-runner`
- **Use**: When you need to execute code or scripts without spawning a full subagent.
- **Command**: `node skills/local-task-runner/index.js run --code "..." [--timeout 30000]`

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.