agentleFS
theseus-runtheseus-run/theseus/.agents/skills/bun-workspace/SKILL.md

bun-workspace

Skill1 starsChanged 6 months agoMITView on GitHub

Use when working with Bun package management, Bun workspaces, bun.lock, package scripts, Bun runtime APIs, Bun build commands, or Node/npm-to-Bun command translation in this repo.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill for Bun runtime and workspace operations.

    line 8
  2. Very specific:

    Read the relevant package.json before running scripts.

    line 35
  3. Distinctive:

    Prefer existing scripts over raw binaries.

    line 36
  4. Very specific:

    Use bun run <script> for scripts.

    line 37
  5. Very specific:

    Use bunx <tool> only when no script exists and the tool is already an intended dev tool.

    line 38
  6. Very specific:

    Use bun add, bun add -d, and bun remove for dependency changes.

    line 39
  7. Very specific:

    Use workspace dependencies as workspace:* for local packages.

    line 40
  8. Distinctive:

    Do not introduce npm, pnpm, yarn, or npx commands unless the user explicitly asks.

    line 41
  9. Distinctive:

    Run broad checks from the root when cross-package types or exports changed.

    line 45
  10. Distinctive:

    Run package-local scripts when the change is isolated and the package has the script.

    line 46
  11. Distinctive:

    Keep package exports aligned with source entrypoints.

    line 47
  12. Very specific:

    Do not edit generated dist/ output unless the task explicitly requires build artifacts.

    line 48
  13. Very specific:

    If dependency installation or update is needed, expect bun.lock to change.

    line 49
  14. Distinctive:

    Use Bun-native APIs when the package already targets Bun:

    line 53
  15. Distinctive:

    Keep browser-safe packages free of Bun-only APIs.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bun Workspace

Use this skill for Bun runtime and workspace operations.

Repo Facts

  • Package manager: Bun.
  • Workspace root: package.json with workspaces: ["packages/*"].
  • Lockfile: bun.lock; do not hand-edit it.
  • Root scripts:
    • bun run lint
    • bun run test
    • bun run typecheck
    • bun run effect:diagnostics
    • bun run effect:ls:check
    • bun run effect:ls:patch
  • Package-local scripts exist under packages/*/package.json.

Root Scripts

  • bun run effect:diagnostics - Effect language-service diagnostics for configured non-web packages.
  • bun run effect:ls:check - check whether local TypeScript is patched for Effect diagnostics.
  • bun run effect:ls:patch - patch local TypeScript so Effect diagnostics surface through build-time checks.
  • bun run lint - Biome check.
  • bun run test - Bun tests.
  • bun run typecheck - TypeScript checks for the configured packages.

Command Rules

  • Read the relevant package.json before running scripts.
  • Prefer existing scripts over raw binaries.
  • Use bun run <script> for scripts.
  • Use bunx <tool> only when no script exists and the tool is already an intended dev tool.
  • Use bun add, bun add -d, and bun remove for dependency changes.
  • Use workspace dependencies as workspace:* for local packages.
  • Do not introduce npm, pnpm, yarn, or npx commands unless the user explicitly asks.

Workspace Rules

  • Run broad checks from the root when cross-package types or exports changed.
  • Run package-local scripts when the change is isolated and the package has the script.
  • Keep package exports aligned with source entrypoints.
  • Do not edit generated dist/ output unless the task explicitly requires build artifacts.
  • If dependency installation or update is needed, expect bun.lock to change.

Bun Runtime APIs

  • Use Bun-native APIs when the package already targets Bun:
    • Bun.file / Bun.write for simple file IO.
    • Bun.spawn for subprocesses.
    • bun:sqlite for SQLite.
  • Normalize Bun API failures at the boundary; do not leak raw foreign errors through domain code.
  • Keep browser-safe packages free of Bun-only APIs.

Verification

  • Package manager or workspace changes: bun install --frozen-lockfile if checking lockfile integrity.
  • Cross-package TypeScript changes: bun run typecheck.
  • Script or runtime changes: run the relevant package script first, then root checks if the change crosses packages.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.