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.
1---2name: local-task-runner3description: Local Task Runner4---5# Local Task Runner67This skill provides a mechanism to execute Node.js code snippets or full scripts locally on the host machine.8It is the **default execution method** when subagent spawning is unavailable or inefficient.910## Purpose1112- **Replace Subagents**: Instead of spawning a full subagent for simple tasks, use this skill to run code directly.13- **Safety**: Isolates execution logic, handles cleanup, and enforces timeouts.14- **Convenience**: No manual file management required (`write` + `exec` + `rm`).1516## Usage1718When you need to perform a calculation, check system status, or run a utility script:19201. Construct the Node.js code as a string.212. Call `run_task` (or execute via CLI) with the code.2223### Command Line Interface2425```bash26# Execute a task27node skills/local-task-runner/index.js run --code "console.log('Hello World')"2829# Execute with timeout (ms)30node skills/local-task-runner/index.js run --code "while(true){}" --timeout 500031```3233### Response Format3435Success:36```37[TASK: <id>] Completed in 123ms38--- STDOUT ---39...40```4142Error:43```44[TASK: <id>] Failed in 123ms45Error: ...46--- STDERR ---47...48```
Run npx skillmds@latest add javimosch/local-task-runner in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Local Task Runner It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.