bun-runtime-expert

bun-runtime-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 57 tokens per session (2,677 once invoked), scanned A, original, MIT.

A guide for Bun, a JavaScript and TypeScript runtime that combines a server, package manager, bundler, and test runner. It covers building applications, APIs, database queries, storage access, and moving projects from Node.js.

In plain words
What is it for?
Use it to create Bun projects, build HTTP servers and APIs, query PostgreSQL, MySQL, or SQLite, access S3-compatible storage, bundle code, write tests with bun:test, and migrate from Node.js.
Why use it?
It helps developers choose and configure Bun's built-in tools instead of assembling separate tools for common development tasks. It also addresses package installation, lockfiles, and Node.js migration issues.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { getActiveUser, sql } from '../src/lib/db';.

Part of the vibes-plug plugin — 171 skills, 8 agents, 2 MCP servers shipped together

Good fit Use it to create Bun projects, build HTTP servers and APIs, query PostgreSQL, MySQL, or SQLite, access S3-compatible storage, bundle code, write tests with bun:test, and migrate from Node.js.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug
agentmods
npx agentmods add skills/roedyrustam/vibes-plug/bun-runtime-expert

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 171 skills, 8 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bun-runtime-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/bun-runtime-expert/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/bun-runtime-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bun-runtime-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/bun-runtime-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/bun-runtime-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02677
Opus 5.5 $0.00023 $0.01071
Sonnet 5.5 $0.00011 $0.00535
Haiku 4.5 $0.00006 $0.00268

Measured 2d ago against content hash b51c22f506f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bun-runtime-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(req) {
.cursor/skills/bun-runtime-expert/SKILL.md · 275 lines

How it starts

The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bun 1.2+ Runtime Expert (2026 High-Performance Standard)

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with domain skills:

  • Backend & APIs: js-backend-expert (Hono on Bun, Fastify/Express migration), api-design-expert (REST & WebSocket contracts), and sse-websocket-streaming-expert (native Bun.serve WebSockets).
  • Database & Storage: database-orm-expert (Drizzle ORM with native bun:sql, PostgreSQL/SQLite) and file-upload-media-expert (zero-dependency Bun.s3 client).
  • Quality & Testing: autonomous-tdd-debugger, e2e-testing-expert, and anti-slop for executing high-speed bun test suites with snapshot matching.
  • Orchestration: brainstorming and zero-to-prod-orchestrator (Phase 4: Backend & APIs).

Description

Expert-level guidance for engineering ultra-low-latency backend microservices with Bun 1.2+. Covers the native PostgreSQL driver (import { SQL } from 'bun'), native S3 object storage (Bun.s3), git-friendly text lockfiles (bun.lock), multi-core HTTP clustering via reusePort, built-in SQLite, and high-speed Jest-compatible unit testing via bun:test.

Trigger Conditions

  • Scaffolding new high-performance microservices, REST APIs, or WebSocket hubs using Bun.
  • Querying PostgreSQL or SQLite without external drivers using native Bun.sql.
  • Interacting with Amazon S3, Cloudflare R2, or MinIO using zero-dependency Bun.s3.
  • Running multi-core HTTP services with automatic load distribution across CPU cores.
  • Executing unit and integration tests using bun test.
  • Migrating legacy Node.js/npm codebases to Bun's native execution layer.

Bun 1.2+ Core Architectural Features

1. Native PostgreSQL Client (import { SQL } from 'bun')

Bun 1.2 includes a built-in, high-speed PostgreSQL driver that communicates directly via binary wire protocol without pg or postgres.js:

// src/lib/db.ts
import { SQL } from 'bun';

// Instantiate pooled database client
export const sql = new SQL({
  url: process.env.DATABASE_URL || 'postgres://user:password@localhost:5432/production_db',
  max: 20, // Connection pool size
  idleTimeout: 30, // Max idle time in seconds
});

export interface UserAccount {
  id: string;
  email: string;
  balance: number;
}

// 1. Tagged template query with automatic parameterized SQL injection defense
export async function getActiveUser(email: string): Promise<UserAccount | null> {
  const users = await sql<UserAccount[]>`
    SELECT id, email, balance 
    FROM users 
    WHERE email = ${email} AND active = true 
    LIMIT 1
  `;
  return users[0] ?? null;
}

// 2. Atomic Database Transaction
export async function transferFunds(fromUserId: string, toUserId: string, amount: number) {
  return await sql.begin(async (tx) => {
    const debit = await tx`
      UPDATE users 
      SET balance = balance - ${amount} 
      WHERE id = ${fromUserId} AND balance >= ${amount} 
      RETURNING id, balance
    `;

    if (debit.length === 0) {
      throw new Error('Insufficient funds or sender not found');
    }

    await tx`
      UPDATE users 
      SET balance = balance + ${amount} 
      WHERE id = ${toUserId}
    `;

    return { success: true };
  });
}

Read the full file on GitHub · 275 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +55 lines · +57 tokens per session scan C → A b51c22f506f5
  2. 3d ago Changed · +2 lines · -57 tokens per session cef6da978932
  3. 6d ago Changed ee64d8d57141
  4. 15d ago Changed 1d25e95150ba
  5. 20d ago Changed 568cc3bad8bf
  6. 21d ago Changed eb3841bdebe3
  7. 23d ago Changed · -6 lines · +46 tokens per session fb3f2f1652cb
  8. 25d ago Changed · +6 lines · -46 tokens per session a428829953a7
  9. 1mo ago Changed a42b28a3e698
  10. 1mo ago First seen · 218 lines · 57 tokens per session scan C e64d06b9b204

Subscribe to this mod's changes

bun-runtime-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 2,677 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

express

Expert Express.js assistance covering routing, middleware pipelines, error handling, and REST API design. Use when building Node.js backend services and web APIs.

G1Joshi/Agent-Skills · 31 tokens

nestjs

Expert NestJS assistance covering modular architecture, dependency injection, decorators, guards, interceptors, and Prisma/TypeORM. Use when building enterprise-grade, scalable TypeScript backends.

G1Joshi/Agent-Skills · 38 tokens

bun

Expert Bun runtime assistance covering high-performance JS/TS execution, built-in bundler, package manager, and test runner. Use when executing TypeScript natively, running fast scripts, or serving HTTP APIs.

G1Joshi/Agent-Skills · 43 tokens

deno

Expert Deno runtime assistance covering secure defaults, TypeScript out-of-the-box, standard library, and Deno Deploy. Use when building modern web backends, edge functions, or serverless scripts.

G1Joshi/Agent-Skills · 43 tokens

hono

Expert Hono framework assistance covering ultra-fast routing, Web Standards, multi-runtime support (Cloudflare Workers, Deno, Bun, Node), and RPC. Use when developing edge APIs and lightweight microservices.

G1Joshi/Agent-Skills · 44 tokens

typescript-advanced-types

Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

chidekina/aria-superpowers · 57 tokens