What problem does it solve?
This Skill standardizes Bun-based file I/O usage across the project, providing a clear, opinionated pattern for reading, writing, scanning, and deleting files. It helps teams avoid ad-hoc Bun.file usage and ensures consistent behavior when dealing with directories and metadata.
Core Features & Use Cases
- Unified Bun.file usage with read, json, exists, and delete helpers to interact with local files.
- Directory and scan guidance using Bun.Glob and path utilities to enumerate files deterministically.
- Interop guidance on when to prefer Bun APIs over node:fs for speed and reliability, and when to fallback to node:fs for directory-level tasks.
- Use Case: Automate routine file maintenance in OpenCode projects, such as auditing, migrating, or preparing build assets.
Quick Start
Use this skill to read a sample file named 'example.txt' and write a greeting to 'hello.txt', illustrating Bun.file usage and safe write patterns.