跳到正文
TakoAPI
返回技能列表

local-task-runner

由 d-wwei 提供

Coding Agents & IDEs
364下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

Runs Node.js code snippets or full scripts directly on the host machine without spawning a subagent. Handles file management, cleanup, and timeouts automatically. Acts as the default execution method when subagent spawning is unavailable or inefficient.

Eliminates the overhead of manually writing, executing, and deleting temp files or spinning up a full subagent for simple code execution tasks.

何时使用

  • Running a quick calculation without launching a full subagent
  • Checking local system status from within an agent workflow
  • Executing a one-off utility script with automatic cleanup
  • Enforcing a timeout on potentially long-running code
  • Testing a Node.js snippet inline during agent task execution

示例工作流

输入

User asks: calculate the SHA-256 hash of a string without spawning a subagent

智能体
  1. 1

    Construct Node.js code string using the crypto module to hash the input

  2. 2

    Call run_task with the code string and an optional timeout value

  3. 3

    Task runner writes and executes the code in an isolated context

  4. 4

    Runner captures stdout and returns the result with task ID and duration

输出

[TASK: abc123] Completed in 18ms --- STDOUT --- e3b0c44298fc1c149afb...

安装

clawhub install d-wwei/local-task-runner

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接