Bunのロゴ

Bun

コミュニティ
tuanductran
bun

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

概要

公開者tuanductran
リポジトリhr-skills
スキル名bun
スター
78
フォーク
20
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    tuanductranがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Bun」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bun
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBunを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBunを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Bunは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「Bun」では何ができますか?

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

TypingMindでBunを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Bunはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBunをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bunを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Bunを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Bunで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBunを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Bun」は無料ですか?

はい。tuanductranがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇