TopRank Skills

Home / Claw Skills / 其他 / Local Task Runner
Official OpenClaw rules 15%

Local Task Runner

Local Task Runner

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Local Task Runner 技能。 若已安装,则直接安装 Local Task Runner 技能。

Overview

Skill Key
d-wwei/local-task-runner
Author
d-wwei
Source Repo
openclaw/skills
Version
-
Source Path
skills/d-wwei/local-task-runner
Latest Commit SHA
1d76d49eadc610f0940ac9b2c07a54513855cced

Extracted Content

SKILL.md excerpt

# 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 excerpt

# 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]`

Related Claw Skills