Toolverse
All skills

bun-file-io

by anomalyco

Use this when you are working on file operations like reading, writing, scanning, or deleting files. It summarizes the preferred file APIs and patterns used in this repo. It also notes when to use filesystem helpers for directories.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
anomalyco
Category
Backend
Views
46

About this skill

Use this when you are working on file operations like reading, writing, scanning, or deleting files. It summarizes the preferred file APIs and patterns used in this repo. It also notes when to use filesystem helpers for directories.

How to use

  1. Zainstaluj skill bun-file-io w swoim projekcie opencode — będzie dostępny podczas pracy nad operacjami na plikach w packages/opencode.

  2. Do czytania pliku użyj Bun.file(path) z metodą text(), json(), stream() lub arrayBuffer() w zależności od typu zawartości. Zawsze sprawdź istnienie pliku metodą exists() przed próbą odczytu.

  3. Do zapisu użyj Bun.write(dest, input), który akceptuje stringi, bufory, Blobe i Response. Dla dużych plików preferuj Bun.write(Bun.file(path), text).

  4. Do skanowania katalogów i wyszukiwania plików użyj Bun.Glob z Array.fromAsync(glob.scan({ cwd, absolute, onlyFiles, dot })). Dla operacji na katalogach takich jak mkdir lub readdir sięgnij po node:fs/promises.

  5. Do usunięcia pliku wywołaj Bun.file(path).delete(). Do uruchamiania narzędzi zewnętrznych użyj Bun.which() do znalezienia binarki, a następnie Bun.spawn() do jej wykonania — błędy dekoduj za pomocą Bun.readableStreamToText().

  6. Pamiętaj o ścieżkach: używaj path.join() lub path.resolve(), preferuj API Bun zamiast Node fs, a dla dużych lub binarnych plików sprawdzaj typ MIME przez file.type.

Related skills

gog

by openclaw

Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.

Backend
34126

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

youtube-transcript

by michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

Backend
53214

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379