bun-typescript-development

Enforce Bun-based TypeScript standards for monorepo modules and tests.

1|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/pantheon-org/opencode-plugins --skill bun-typescript-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bun-typescript-development
Source: https://github.com/pantheon-org/opencode-plugins/tree/main/.opencode/skills/bun-typescript-development
Command: npx skills add https://github.com/pantheon-org/opencode-plugins --skill bun-typescript-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces Bun-based TypeScript development standards for reliable, fast code.

Core Features & Use Cases

  • Single-function modules: Every module exports exactly one primary function.
  • Barrel exports: Use index.ts to re-export public APIs.
  • Collocated tests: Tests live next to implementation with .test.ts files.
  • Strict typing: Enforce strict mode and explicit types across projects.
  • Bun-enabled tooling: Use Bun for install, build, and test; Nx for workspace orchestration.

Quick Start

Create a minimal Bun + TypeScript module following these standards, then run bun install, bun test, and bunx nx build <package>.

Frequently Asked Questions about bun-typescript-development

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

FAQPage Schema
How do I enforce strict TypeScript standards in a Bun monorepo?

Enforce strict TypeScript in a Bun monorepo by applying standards for explicit types, single-function modules, and barrel exports. This setup requires strict mode enabled and uses Bun for fast install, build, and test execution.

What is the best way to structure TypeScript modules in an Nx workspace?

The best way to structure TypeScript modules in an Nx workspace is using one-function modules with barrel exports. Re-export public APIs via index.ts files and colocate tests next to implementations using .test.ts extensions.

Do I need Nx generators to use Bun for TypeScript development?

Yes, you need Nx generators and Bun tooling as prerequisites. This development standard relies on Nx for workspace orchestration across packages, while Bun handles the install, build, and test processes for reliable code.

Can I use ES modules for the root workspace in a Bun and TypeScript project?

No, you must use CommonJS for the workspace root. For a Bun and TypeScript monorepo, the standard requires CommonJS at the root, while applying ES modules specifically for individual apps and packages.

How does test-driven development work with colocated tests in a Bun project?

Test-driven development with colocated tests requires placing .test.ts files directly next to the implementation modules. Run the suite using Bun's integrated test runner to achieve fast, reliable validation across monorepo packages.

Why should I use barrel exports for single-function modules in TypeScript?

Use barrel exports to organize single-function modules because they provide a clean public API via index.ts files. This standardizes module design, simplifies imports across monorepo packages, and ensures consistent API exposure.