Logo vun Bun

Bun

Communautéit
tuanductran
bun

Repository guidance for using Bun as the runtime, package manager, and workspace toolchain within the hr-skills monorepo.

Iwwersiicht

Editeurtuanductran
Repositoryhr-skills
Skill-Nummbun
Stären
78
Forks
20
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum tuanductran op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Bun an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bun
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tuanductran/hr-skills.git /tmp/hr-skills
mkdir -p .claude/skills
cp -r /tmp/hr-skills/.agents/skills/bun .claude/skills/bun
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Bun an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Bun automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Bun net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Bun

This skill explains how Bun is used throughout the hr-skills monorepo. It covers workspace management, development workflows, validation commands, testing, and repository conventions.

The repository standardizes on Bun for all package management and script execution. Turborepo orchestrates tasks across workspace packages.

Supported tasks

  • Explain how Bun is used within this repository
  • Install and manage workspace dependencies
  • Run repository scripts using Bun
  • Validate HR skills and repository metadata
  • Synchronize generated repository artifacts
  • Build workspace packages
  • Run tests and TypeScript type checking
  • Troubleshoot Bun workspace issues
  • Recommend Bun workflows for local development and CI
  • Explain Bun compatibility with Node.js
  • Recommend Bun-native APIs when appropriate
  • Explain when to use Bun-specific features versus Node.js APIs

Repository usage

This repository uses Bun for:

  • package management
  • workspace dependency resolution
  • script execution
  • TypeScript execution
  • test execution

Package managers such as npm, pnpm, and Yarn are not supported.

Dependency catalogs

This repository centralizes shared dependency versions using Bun catalogs.

Catalogs ensure that common dependencies are defined once in the root package.json and reused consistently across every workspace package.

Workspace packages should reference shared dependencies using the catalog: protocol instead of repeating version numbers.

Use the default catalog.

json
{
  "dependencies": {
    "typescript": "catalog:"
  }
}

Use a named catalog.

json
{
  "devDependencies": {
    "@biomejs/biome": "catalog:biome",
    "@commitlint/cli": "catalog:commit"
  }
}

Benefits:

  • keeps dependency versions consistent across the repository
  • updates shared dependency versions in one place
  • reduces duplicated version declarations
  • simplifies workspace maintenance

Internal workspace packages should continue using the workspace:* protocol.

Node.js compatibility

When working in this repository:

  • Assume Node.js APIs are supported unless Bun documentation states otherwise.
  • If a package works in Node.js but fails in Bun, treat it as a Bun compatibility issue rather than a repository issue.
  • Prefer standard node: imports for built-in Node.js modules.
  • Prefer Bun-native APIs only when they provide a clear repository benefit.

Workspace packages

The repository currently contains multiple Bun workspace packages.

hr-skills-build

Repository tooling responsible for:

  • validating HR skills
  • synchronizing repository metadata
  • maintaining repository conventions

hr-skills-ref

Reusable library responsible for:

  • parsing SKILL.md
  • loading skills
  • validating metadata
  • generating prompts
  • exposing reusable APIs for other packages

Common commands

Install dependencies.

bash
bun install

Run validation.

bash
bun run validate

Synchronize generated repository artifacts.

bash
bun run sync

Build every workspace package.

bash
bun run build

Run all test suites.

bash
bun run test

Run TypeScript type checking.

bash
bun run typecheck

Run repository linting and formatting.

bash
bun run check
bun run lint
bun run format
bun run lint:md
bun run lint:md:fix
bun run lint:links

Analyze unused files and dependencies.

bash
bun run knip

Create a release.

bash
bun run release

Key prompts

Compatibility

  • "Explain Bun compatibility with Node.js."
  • "Does this Node.js package work with Bun?"
  • "Explain whether this Node.js API is supported."
  • "Recommend the Bun-native alternative."

Repository workflows

  • "Explain how Bun is used in this repository."
  • "List the common Bun commands used during development."
  • "Describe the repository workspace structure."
  • "Explain how Turborepo and Bun work together."

Validation

  • "Run the repository validation workflow."
  • "Explain what bun run validate does."
  • "Explain what bun run sync does."
  • "Recommend the correct validation order before opening a pull request."

Development

  • "Build every workspace package."
  • "Run all tests using Bun."
  • "Run TypeScript type checking."
  • "Explain how to troubleshoot Bun workspace issues."

CI

  • "Generate a Bun-based CI workflow."
  • "Recommend the fastest validation pipeline."
  • "Explain how to use Turborepo caching."
  • "Generate GitHub Actions steps for Bun."

CI recommendations

A typical validation workflow is:

bash
bun ci
bun run typecheck
bun run validate
bun run test
bun run build

This order detects type, validation, and test failures before building distributable artifacts.

Examples

Install dependencies.

bash
bun install

Validate the repository.

bash
bun run validate

Synchronize repository metadata.

bash
bun run sync

Build every package.

bash
bun run build

Run all tests.

bash
bun run test

Tips

  • Always use Bun for package management and script execution.
  • Prefer standard node: imports for built-in modules.
  • Use bun:test instead of node:test.
  • Prefer Bun-native runtime features only when repository portability is not required.
  • Check Bun compatibility documentation before assuming a Node.js feature is unsupported.
  • Prefer workspace commands from the repository root.
  • Run validation before committing repository changes.
  • Keep workspace dependencies synchronized.
  • Use workspace:* for internal package dependencies.
  • Use Turborepo to execute workspace tasks instead of running packages individually when possible.

Common issues

  • Using npm, pnpm, or Yarn instead of Bun.
  • Ignoring workspace dependency relationships.
  • Assuming unsupported behavior without checking Bun compatibility.
  • Using node:test instead of bun:test.
  • Depending on Node.js APIs that Bun documents as partially implemented.
  • Skipping repository validation before committing.
  • Forgetting to synchronize generated repository artifacts.
  • Running package scripts from the wrong workspace.
  • Missing bun install after dependency changes.
  • Hardcoding dependency versions that should come from a shared catalog.
  • Using explicit semver instead of catalog: for repository-standard dependencies.
  • Updating versions in workspace packages instead of the root catalog.
  • Using catalog: for internal workspace packages instead of workspace:*.

Best practices

  • Keep Bun updated across development environments.
  • Prefer standard node: module specifiers for built-in modules.
  • Use bun:test for repository tests.
  • Prefer documented Bun APIs over undocumented compatibility workarounds.
  • Mention Bun compatibility limitations only when they are relevant to the task.
  • Run commands from the repository root unless package-specific behavior is required.
  • Validate changes before opening a pull request.
  • Use Turborepo to orchestrate workspace tasks.
  • Keep internal packages versioned through the workspace.
  • Prefer reproducible installations with bun install --frozen-lockfile in CI.
  • Use catalog: for shared external dependencies.
  • Use named catalogs to group related tooling (for example: biome, commit, markdown).
  • Update dependency versions in the root catalog instead of individual workspace packages.
  • Use workspace:* only for internal packages.

Heefeg gestallte Froen

Wat mécht de KI-Skill Bun?

Repository guidance for using Bun as the runtime, package manager, and workspace toolchain within the hr-skills monorepo.

Firwat Bun op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Bun besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Bun an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bun an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Bun benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Bun benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Bun domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Bun gratis?

Jo. De Skill gëtt vum tuanductran ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇