Bun workspace
the harness rebuilds itself — agents rewrite agents, skills replace skills.
npx -y skills add theseus-run/theseus --skill bun-workspaceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
2.6 KB, as published. Nobody here has run it
Bun Workspace
Use this skill for Bun runtime and workspace operations.
Repo Facts
- Package manager: Bun.
- Workspace root:
package.jsonwithworkspaces: ["packages/*"]. - Lockfile:
bun.lock; do not hand-edit it. - Root scripts:
bun run lintbun run testbun run typecheckbun run effect:diagnosticsbun run effect:ls:checkbun 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.jsonbefore 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, andbun removefor 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.lockto change.
Bun Runtime APIs
- Use Bun-native APIs when the package already targets Bun:
Bun.file/Bun.writefor simple file IO.Bun.spawnfor subprocesses.bun:sqlitefor 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-lockfileif 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.