返回顶部
b

bun-runtimeBun运行时能力

Bun runtime capabilities for filesystem, process, and network operations. Use when you need to execute Bun-specific operations like Bun.file(), Bun.write(), or Bun.glob() for optimized file handling, or when working with Bun's native process/network APIs. Triggered by requests for Bun runtime features, file operations with Bun, or high-performance I/O tasks.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,976
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

bun-runtime

技能名称: bun-runtime
详细描述:

Bun 运行时

用于文件系统、进程和网络任务的原生 Bun 运行时操作。

使用场景

在以下情况下使用此技能:

  • - 使用 Bun 的原生文件 API(Bun.file()、Bun.write()、Bun.glob())
  • 需要在 Bun 环境中进行优化的 I/O 操作
  • 运行 Bun 特定的进程命令
  • 使用 Bun 的 fetch 发起网络请求

文件系统操作

读取文件

bash
scripts/bun-fs.sh read /path/to/file.txt

返回 JSON:{content: file contents}

写入文件

bash
scripts/bun-fs.sh write /path/to/file.txt content here

自动创建父目录。
返回 JSON:{written: true, path: /path/to/file.txt}

文件通配匹配

bash
scripts/bun-glob.sh /tmp/*.txt

返回 JSON:{files: [/tmp/file1.txt, /tmp/file2.txt], count: 2}

进程操作

执行命令

bash
scripts/bun-process.sh ls -la

运行 shell 命令并返回输出。

网络操作

HTTP 请求

bash
scripts/bun-fetch.sh https://api.example.com GET

使用 Bun 的原生 fetch 发起 HTTP 请求。

说明

  • - 所有脚本均使用 Bun 的原生 API 以获得更好的性能
  • 文件操作自动处理编码
  • 错误信息会清晰返回

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 bun-runtime-1776377349 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 bun-runtime-1776377349 技能

通过命令行安装

skillhub install bun-runtime-1776377349

下载

⬇ 下载 bun-runtime v1.0.0(免费)

文件大小: 3.44 KB | 发布时间: 2026-4-17 13:57

v1.0.0 最新 2026-4-17 13:57
Version 1.0.0

- Initial release of the bun-runtime skill.
- Provides native Bun operations for filesystem (read, write, glob), process commands, and network requests.
- Scripts utilize Bun APIs for optimized performance and I/O tasks.
- Automatically manages file encodings and directory creation.
- Returns clear, JSON-formatted results and error messages.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部