bun-file-io

Standardize Bun file read, write, scan, and delete operations.

11|1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/KSD-CO/IronCode --skill bun-file-io-ksd-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-file-io
Source: https://github.com/KSD-CO/IronCode/tree/main/.ironcode/skill/bun-file-io
Command: npx skills add https://github.com/KSD-CO/IronCode --skill bun-file-io-ksd-co

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes Bun-based file input/output operations across the codebase, reducing drift and errors in file handling.

Core Features & Use Cases

  • Standardized Bun.file usage for reading, writing, and scanning files.
  • Clear guidance on when to use Bun APIs versus node:fs for directory operations.
  • Real-world use cases include reading and deleting files in the IronCode workspace.

Quick Start

Adopt the Bun-file-io pattern for all file read, write, scan, and delete operations in the codebase.

Frequently Asked Questions about bun-file-io

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to handle Bun file I/O operations across a project?

Standardizing Bun file I/O operations involves using Bun.file for reading, writing, and scanning files to reduce codebase drift. It enforces consistent API patterns and provides basic guardrails for error handling across the project.

How do I read and write files in Bun without running into inconsistencies?

You can read and write files in Bun by adopting standardized Bun.file usage patterns. This approach provides clear guidance on preferred APIs for file operations, ensuring consistent editing, scanning, and deleting behaviors throughout your codebase.

Should I use Bun APIs or node:fs for directory operations in my project?

For directory operations in Bun, you should use node:fs. While Bun APIs are enforced for reading, writing, and scanning files, the standardized pattern specifically recommends node:fs to handle directory-level operations for reliable project management.

Does the Bun file I/O pattern include error handling for deleting files?

Yes, the Bun file I/O pattern includes basic guardrails for error handling when deleting files. It streamlines file deletion tasks within the project workspace by providing clear guidance on preferred APIs to safely manage file removal.

When do I need to standardize file operations in my Bun codebase?

You need to standardize file operations in your Bun codebase when file handling drift and errors become frequent. This pattern covers editing, reading, writing, scanning, and deleting files, ensuring all developers use consistent Bun API approaches.