Communitygithub.com

Bun 스킬

Bun을 올인원 JavaScript/TypeScript 런타임, 패키지 관리자, 번들러 및 테스트 러너로 사용하는 것을 지원합니다. HTTP 서버 구축, 패키지 관리, 테스트 실행 또는 Node.js에서 마이그레이션할 때 사용하세요. 트리거 키워드: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

Bun 스킬란 무엇인가요?

이 스킬은 Claude Code 및 Cursor와 같은 AI 에이전트가 Bun을 사용하여 JavaScript/TypeScript 프로젝트를 구축, 관리 및 테스트할 수 있도록 지원합니다. Bun은 Node.js, npm, webpack, Jest를 단일 바이너리로 대체하는 올인원 런타임으로, 네이티브 TypeScript 지원, 고성능 HTTP 서버(`Bun.serve()`), 빠른 패키지 관리자, 번들러 및 Jest 호환 테스트 러너를 제공합니다. 이 스킬은 AI 에이전트가 `Bun.serve()`로 API 서버를 구축하고, `bun install`로 패키지를 관리하며, `Bun.build()`로 번들링하고, `bun test`로 테스트를 실행하는 방법을 설명합니다. 또한 Node.js 프로젝트를 Bun으로 마이그레이션하는 모범 사례와 `Bun.file()`, `Bun.password()`, `bun:sqlite`와 같은 Bun 내장 최적화를 사용하는 방법을 강조합니다. 이 스킬을 통해 AI 에이전트는 더 빠른 성능과 더 적은 외부 의존성으로 프로젝트를 효율적으로 관리할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/bun

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Bun

개요

Bun은 Node.js, npm, webpack 및 Jest를 단일 바이너리로 대체하는 올인원 JavaScript/TypeScript 런타임입니다. 네이티브 TypeScript 지원, 고성능 HTTP 서버(Bun.serve()), 빠른 패키지 관리자, 번들러 및 놀라울 정도로 빠른 성능의 Jest 호환 테스트 러너를 제공합니다.

지침

  • HTTP 서버를 생성할 때는 Bun.serve()를 사용하세요. 이는 내장 WebSocket 지원, TLS 및 스트리밍 응답과 함께 초당 10만 개 이상의 요청을 처리합니다.
  • 패키지를 관리할 때는 bun install(npm보다 10-30배 빠름), bun add, bun remove를 사용하고, 읽기 쉬운 git diff를 위해 bun.lock(텍스트 형식)을 선호하세요.
  • 번들링할 때는 적절한 대상("browser", "bun", "node")으로 Bun.build()를 사용하고, splitting: true로 코드 분할을 활성화하며, 트리 셰이킹을 구성하세요.
  • 테스트를 작성할 때는 Jest 호환 API(describe, it, expect), 스냅샷 테스트, mock.module()을 사용한 모킹, 코드 커버리지를 위한 --coverage와 함께 bun test를 사용하세요.
  • 파일 I/O를 수행할 때는 훨씬 빠른 파일 작업을 위해 Node.js fs 대신 Bun.file() 및 Bun.write()를 선호하고, 패턴 매칭을 위해 Bun.Glob을 사용하세요.
  • 인증을 처리할 때는 npm 패키지 대신 bcrypt/argon2를 위해 Bun.password.hash() 및 Bun.password.verify()를 사용하세요.
  • Node.js에서 마이그레이션할 때는 스크립트에서 node를 bun으로 바꾸고, package.json은 변경하지 않은 상태로 두며, 대부분의 npm 패키지가 수정 없이 작동한다는 점에 유의하세요. SQLite npm 패키지 대신 임베디드 데이터베이스에는 bun:sqlite를 사용하세요.

예제

예제 1: 고성능 API 서버 구축

사용자 요청: "Bun 내장 HTTP 서버를 사용하여 REST API 생성"

작업:

  1. Bun.serve() 및 라우트 핸들러로 서버 생성
  2. request.json()으로 JSON 본문을 파싱하고 Response 객체 반환
  3. 실시간 기능을 위한 WebSocket 업그레이드 추가
  4. 인증에 Bun.password를, 데이터 저장에 bun:sqlite 사용

출력: 외부 종속성 없이 Bun 내장 기능만 사용한 빠른 API 서버.

예제 2: Node.js 프로젝트를 Bun으로 마이그레이션

사용자 요청: "내 Express 프로젝트를 Node.js에서 Bun으로 전환"

작업:

  1. CI 및 로컬 설정에서 npm install을 bun install로 대체
  2. package.json 스크립트에서 node 대신 bun run을 사용하도록 업데이트
  3. dotenv를 Bun 내장 .env 로딩으로 대체
  4. 테스트 러너를 Jest에서 동일한 테스트 파일로 bun test로 전환

출력: 더 빠른 설치, 시작 및 테스트 실행 속도를 갖춘 Bun 기반 프로젝트.

지침

  • 새로운 HTTP 서버에는 Bun.serve()를 사용하세요. Bun에서 Express보다 훨씬 빠릅니다.
  • 파일 작업에는 Node.js fs보다 Bun.file() 및 Bun.write()를 선호하세요.
  • SQLite npm 패키지를 추가하는 대신 로컬 데이터에는 bun:sqlite를 사용하세요.
  • 기본 네이티브 종속성을 없애기 위해 bcrypt/argon2 npm 패키지 대신 인증에 Bun.password를 사용하세요.
  • 읽기 쉬운 diff를 위해 bun.lock(텍스트 형식)을 git에 유지하세요.
  • 동일한 API로 훨씬 빠른 실행을 위해 Jest 대신 bun test로 테스트하세요.
  • 브라우저를 대상으로 할 때는 Bun.build()를 target: "browser"와 함께 사용하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

TerminalSkills/skills

>- Lovable (formerly GPT Engineer) is a browser-based AI app builder that turns a natural-language description into a working full-stack web app with a built-in backend, authentication, database and one-click publishing. Use when the user wants to prototype or ship a web app with Lovable, write effective Lovable prompts, connect Supabase or GitHub, review generated security rules, or move a Lovable project into their own editor.

관련 스킬