Task Router Skill
Task Router
Local Task Runner
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install d-wwei/local-task-runner打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
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.
write + exec + rm).When you need to perform a calculation, check system status, or run a utility script:
run_task (or execute via CLI) with the code.# 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
Success:
[TASK: <id>] Completed in 123ms
--- STDOUT ---
...
Error:
[TASK: <id>] Failed in 123ms
Error: ...
--- STDERR ---
...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
skills/local-task-runner
node skills/local-task-runner/index.js run --code "..." [--timeout 30000]
# 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 ---
...
```# 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]`
Task Router
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,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.