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
# 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 ---
...
Installation
openclaw install local-task-runner
💻Code Examples
node skills/local-task-runner/index.js run --code "while(true){}" --timeout 5000
### Response Format
Success:# 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[TASK: <id>] Completed in 123ms
--- STDOUT ---
...[TASK: <id>] Failed in 123ms
Error: ...
--- STDERR ---
...Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.