跳到正文
TakoAPI
返回技能列表

bun-runtime

由 rabin-thami 提供

CLI Utilities
1.7k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Bun runtime capabilities for filesystem, process.

描述

该技能的功能

Exposes Bun's native runtime APIs for filesystem, process, and network operations through shell scripts. Covers file reads and writes via Bun.file() and Bun.write(), pattern-based file globbing with Bun.glob(), shell command execution, and HTTP requests using Bun's native fetch.

Bun's native file and network APIs offer better I/O performance than Node.js equivalents, making it faster for file-heavy or network-heavy automation tasks.

何时使用

  • Reading a config file in a Bun-based project
  • Writing generated content to disk with auto-created directories
  • Finding all .json files in a directory using a glob pattern
  • Running a shell command and capturing its output
  • Fetching data from a REST API endpoint

示例工作流

输入

User asks: Read the contents of /tmp/config.json

智能体
  1. 1

    Calls bun-fs.sh with the read subcommand and /tmp/config.json as the path

  2. 2

    Script invokes Bun.file() internally and returns a JSON object with the file contents

  3. 3

    Agent extracts the content field from the response

  4. 4

    Returns the file contents to the user

输出

Contents of /tmp/config.json returned as a string

前置要求

  • Bun runtime installed (bun.sh)

安装

clawhub install rabin-thami/bun-runtime

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

链接