✓ Verified 💻 Development ✓ Enhanced Data

Local Task Runner

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

Rating
4.4 (160 reviews)
Downloads
11,608 downloads
Version
1.0.0

Overview

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

Complete Documentation

View Source →

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:

  • Construct the Node.js code as a string.
  • 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:

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

Error:

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

Installation

Terminal bash

openclaw install local-task-runner
    
Copied!

💻Code Examples

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

node-skillslocal-task-runnerindexjs-run---code-whiletrue---timeout-5000.txt
### Response Format

Success:
example.sh
# 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
example.txt
[TASK: <id>] Completed in 123ms
--- STDOUT ---
...
example.txt
[TASK: <id>] Failed in 123ms
Error: ...
--- STDERR ---
...

Tags

#coding_agents-and-ides #code #script

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author d-wwei
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install local-task-runner