شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها tuanductran على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Bun في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bun
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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

فعّل Bun في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Bun تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Bun بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف 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.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Bun؟

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

لماذا تستخدم Bun على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Bun عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Bun في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/tuanductran/hr-skills/tree/main/.agents/skills/bun. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Bun؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Bun؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Bun معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Bun مجانية؟

نعم. نشرها tuanductran على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇