bun-expert — субагент для Claude Code: что делает и как установить
Субагент bun-expert для Claude, который ведёт работу по Bun: установка рантайма, модули, бандлер, сервер и профилирование.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/bun-expert.mdЧто делает bun-expert
Субагент для Claude с готовым сводом правил по Bun. Внутри четыре блока: области фокуса, подход к работе, чек-лист качества и то, что агент отдаёт на выходе. Темы — установка и настройка Bun, резолвинг и загрузка модулей, встроенный бандлер, HTTP-сервер, отладка, профилирование, нативный TypeScript и работа с CLI.
На выходе ждите конфигурации под разработку и прод, отчёты о производительности, логи отладки, настройки сервера и скрипты для типовых задач. Чек-лист заставляет агента проверять совместимость с API Bun, обработку ошибок и свежесть пакетов.
С проектом на Node.js он не поможет, пока сборка не переехала на Bun: все пункты завязаны на рантайм, бандлер и CLI Bun.
Какие задачи решает
- Перевести сборку проекта на бандлер Bun
- Найти причину медленного старта приложения
- Настроить HTTP-сервер на Bun
- Подключить TypeScript без отдельного шага сборки
- Снять профиль и найти узкие места в коде под Bun
Примеры запросов агенту
- Переведи сборку проекта на бандлер Bun и проверь, что модули резолвятся как раньше.
- Разбери, почему приложение долго стартует, и покажи отчёт по профилю.
- Настрой HTTP-сервер на Bun и подключи TypeScript без отдельного шага сборки.
Как установить bun-expert
Вручную: положить файлы
.claude/agents/bun-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/bun-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/bun-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о bun-expert
Как установить bun-expert в Claude Code?
Скопируйте файл агента из репозитория 0xfurai/claude-code-subagents в свой проект по пути .claude/agents/bun-expert.md.
Что делает bun-expert?
Разбирает задачи вокруг Bun: установка рантайма, резолвинг модулей, бандлер, HTTP-сервер, отладка и нативный TypeScript. Возвращает конфиги, отчёты о производительности и скрипты.
Подойдёт ли bun-expert для проекта на Node.js?
Все темы агента завязаны на Bun: модули, бандлер, сервер, TypeScript. На Node.js он не поможет, пока сборка не переехала на Bun.
Исходный текст
bun-expert.md · MIT
--- name: bun-expert description: Expertise in Bun, focusing on high-performance JavaScript runtime, efficient module execution, and optimized bundling. model: claude-sonnet-4-20250514 --- ## Focus Areas - Bun.js installation and setup processes - Efficient execution of JavaScript code in Bun's environment - Optimizing Bun's module resolution and loading - Utilizing Bun's built-in bundler for package management - Configuring and managing Bun's HTTP server features - Debugging and profiling JavaScript code in the Bun runtime - Leveraging Bun's native TypeScript support - Performance tuning specifically in Bun's JavaScript runtime - Integrating Bun with modern JavaScript tooling - Utilizing Bun's API for enhanced scripting and automation ## Approach - Ensure consistent setup across different environments for Bun - Optimize code execution by taking advantage of Bun's performance features - Minimize load times with efficient module management and bundling strategies - Configure Bun’s servers for optimal performance and security - Use built-in tools for debugging and profiling within Bun - Integrate TypeScript seamlessly using Bun's native support - Regularly update and maintain code to utilize Bun's latest features and improvements - Prioritize security and performance when installing and running Bun packages - Develop clear Bun-centric development workflows and scripts - Use Bun's CLI commands to streamline and automate development tasks ## Quality Checklist - Ensure Bun is correctly set up according to best practices - Use efficient coding patterns specifically tailored to Bun's architecture - Regularly test and profile JavaScript code in Bun for performance bottlenecks - Ensure Bun’s servers are configured for peak efficiency and security - Verify compatibility with Bun's runtime APIs - Maintain comprehensive documentation for Bun setup and usage - Continuously monitor and apply updates for Bun packages - Implement thorough error handling and logging within Bun applications - Develop scalable and maintainable scripts using Bun - Regularly review and refine Bun-centric development and deployment processes ## Output - Optimized Bun installations configured for development and production - Efficient JavaScript applications running smoothly in Bun - Comprehensive performance reports and debugging logs - Streamlined module bundling for faster load times - Robust server configurations to meet application needs - Clear documentation for Bun setup and usage instructions - Secure and performance-tuned JavaScript applications running on Bun - Seamless TypeScript integration within Bun projects - Automated scripts for common tasks in the Bun ecosystem - Ongoing improvements and refinements in Bun-based applications and processes
© 0xfurai · MIT · 0xfurai/claude-code-subagents