Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

fix-bunFIX Bun 搜索

Agent Skill

fix-bun 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

432

周安装

18

GitHub Stars

8

下载量

144
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fix-bun(FIX Bun 搜索)
来源仓库:https://github.com/phrazzld/claude-config
仓库路径:skills/fix-bun
安装命令:
npx skills add https://github.com/phrazzld/claude-config --skill fix-bun
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill fix-bun

简介

fix-bun 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限与维护状态。
  • 使用前应核实是否会触发联网、命令执行或文件读写操作。
  • 建议结合原始 README 进一步核验具体用法和功能边界。

SKILL.md

/fix-bun

Fix one Bun migration issue at a time. Verify after each change.

What This Does

  1. Run /check-bun to get current findings
  2. Pick highest priority unfixed issue
  3. Apply fix
  4. Verify fix worked
  5. Report what was fixed

This is a fixer. It fixes ONE issue per invocation. Run multiple times for multiple issues.

Priority Order

Fix issues in this order:

  1. P1: Lockfile cleanup — Remove conflicting lockfiles
  2. P1: CI migration — Update GitHub Actions to use Bun
  3. P1: Workspace migration — Move workspaces to package.json
  4. P2: Script updates — Convert scripts to use bun run
  5. P2: Test runner — Enable Bun test runner
  6. P3: Optimizations — Native SQLite, Bun shell scripts

Fix Procedures

Fix: Remove Conflicting Lockfiles

When: Both pnpm-lock.yaml and bun.lock exist

# Choose one lockfile (keep the target one)
rm pnpm-lock.yaml  # If migrating to Bun
# OR
rm bun.lock bun.lockb  # If staying with pnpm

# Regenerate
bun install  # OR pnpm install

Verify:

ls *.lock* | wc -l  # Should be 1

Fix: Update CI to Bun

When: GitHub Actions using pnpm/action-setup

File: .github/workflows/ci.yml (or similar)

Change:

# From:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
  with:
    cache: 'pnpm'
- run: pnpm install --frozen-lockfile

# To:
- uses: oven-sh/setup-bun@v2
  with:
    bun-version: latest
- run: bun install --frozen-lockfile

Verify:

grep -l "oven-sh/setup-bun" .github/workflows/*.yml

Fix: Migrate Workspace Configuration

When: pnpm-workspace.yaml exists but migrating to Bun

Step 1: Add workspaces to package.json

{
  "workspaces": ["apps/*", "packages/*"]
}

Step 2: Remove pnpm workspace file

rm pnpm-workspace.yaml

Step 3: Update packageManager field

{
  "packageManager": "bun@1.1.0"
}

Step 4: Reinstall

rm -rf node_modules
bun install

Verify:

[ ! -f "pnpm-workspace.yaml" ] && echo "✓ Workspace file removed"
grep -q '"workspaces"' package.json && echo "✓ Workspaces in package.json"
bun pm ls  # List workspaces

Fix: Update npm Scripts

When: Scripts explicitly use node where bun would work

Change in package.json scripts:

{
  "scripts": {
    // From:
    "start": "node dist/index.js",
    "dev": "ts-node src/index.ts",

    // To:
    "start": "bun dist/index.js",
    "dev": "bun src/index.ts"
  }
}

Verify:

bun run dev  # Should work
bun run start  # Should work

Fix: Enable Bun Test Runner

When: Using Jest but Bun test runner would work

Step 1: Update test script

{
  "scripts": {
    "test": "bun test"
  }
}

Step 2: Verify Jest-compatible syntax works

bun test

Note: Bun test runner is Jest-compatible. Most tests work without changes.

If Vitest: Can use Bun runner:

{
  "scripts": {
    "test": "vitest run"
  }
}

Verify:

bun test  # All tests pass

Fix: Update.gitignore

When: Migrating lockfile format

# Add/update in .gitignore
echo "# Bun" >> .gitignore
echo "bun.lockb" >> .gitignore  # Binary lockfile (optional, some prefer text)

# Remove old lockfile from gitignore if needed
sed -i '' '/pnpm-lock.yaml/d' .gitignore

Verify:

cat .gitignore | grep -E "bun|pnpm"

Verification Checklist

After any fix:

# 1. Install works
bun install

# 2. Build works (if applicable)
bun run build

# 3. Tests pass
bun test

# 4. Dev server starts (if applicable)
bun run dev &
sleep 5
curl http://localhost:3000 > /dev/null && echo "✓ Dev server works"
kill %1

Output Format

## Fixed: [Issue Title]

**What was wrong**:
[Brief description]

**What was changed**:
- [File]: [Change description]

**Verification**:
- ✓ bun install succeeds
- ✓ bun test passes
- ✓ [Other relevant checks]

**Next issue (if any)**:
Run /fix-bun again to fix: [Next P1/P2 issue]

Related

  • /check-bun - Audit for Bun compatibility
  • /bun - Full Bun migration orchestrator
  • /bun-best-practices - When to use Bun (reference)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.81%
按下载量换算54

Claude

28.58%
按下载量换算41

Cursor

18.66%
按下载量换算27

Gemini CLI

9.39%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/phrazzld/claude-config --skill fix-bun 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills