Bun Patterns

Bun Patterns is a skill for Claude Code, Codex from AmariahAK/atlarix-skills. It costs 3 tokens per session (366 once invoked), scanned A, original, Apache-2.0.

A guide to developing and debugging projects that use Bun, a JavaScript runtime and package manager similar to Node.js. It explains runtime differences, dependency handling, and test expectations.

In plain words
What is it for?
Use it to inspect Bun projects, install dependencies, run builds and tests, and compare unclear behavior with Node.js.
Why use it?
It reduces confusion caused by mixing Bun with Node.js or other package managers, and helps isolate runtime-specific bugs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect Bun projects, install dependencies, run builds and tests, and compare unclear behavior with Node.js.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amariahak/atlarix-skills/bun
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AmariahAK/atlarix-skills --skill bun
Clone the repo
git clone --depth 1 https://github.com/AmariahAK/atlarix-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Bun Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/bun/github.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/bun)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/bun"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/bun/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Bun Patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/bun"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/bun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00003 $0.00366
Opus 5 $0.00002 $0.00183
Sonnet 5 $0.00001 $0.00073
Haiku 4.5 $0.00000 $0.00037

Measured 8d ago against content hash 197842fe4b12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Bun Patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bun/SKILL.md · 53 lines

What it actually says

Bun Patterns

When to use this skill

Use this skill when working in Bun-based projects (or Node projects running on Bun) and you want reliable runtime expectations, dependency management, and debugging workflows.

Core patterns

Runtime compatibility awareness

Bun aims for Node compatibility, but differences exist:

  • module resolution edge cases
  • some Node APIs behave differently
  • performance characteristics differ

When debugging a bug:

  • confirm whether it reproduces in Node
  • isolate runtime-specific behavior before refactoring app logic

Dependency management

  • Bun uses bun.lockb
  • prefer consistent package manager usage per repo

Avoid mixing npm/yarn/pnpm and bun unless the project explicitly supports it.

Tests

  • use the project’s configured runner
  • if using Bun’s test runner, keep expectations consistent

Atlarix tool notes

  • Explore: inspect bun.lockb and scripts; locate entrypoints.
  • Build: run bun install and the relevant bun run <script>.
  • Debug: compare behavior in Node if the issue is unclear.
  • Review: ensure scripts and tooling are consistent and documented.

Common mistakes to avoid

  • Treating Bun as perfectly identical to Node
  • Mixing package managers and lockfiles
  • Hiding runtime differences behind broad try/catch

Mini-checklist

  • Lockfile committed
  • Scripts documented
  • Runtime differences acknowledged in debugging
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 53 lines · 3 tokens per session scan A 197842fe4b12

Subscribe to this mod's changes

Bun Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 3 tokens to every session and 366 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

dejavu

Protocol for working with the dejavu error-gate plugin. Use when a tool call is answered with a "[dejavu] REMINDER" or "[dejavu] BLOCKED" message, when the same tool call fails repeatedly, or when you discover the root cause of a gated failure. Covers how to react to reminders, what BLOCKED means, the dejavu:proceed…

WhiteBite/opencode-dejavu · 99 tokens

bun

Bun all-in-one JavaScript runtime and toolkit reference. Covers runtime APIs (file I/O, HTTP server, SQLite, shell), ultra-fast package manager, built-in bundler with plugins, test runner with mocking, TypeScript support, and Node.js compatibility.

bytesagain/ai-skills · 55 tokens

vscode-doctor

Diagnose slow or freezing VS Code-compatible editors with evidence-first, zero-hardcoded-assumption workflow. Use when the user reports editor lag, typing delay, UI freezes, extension host stalls, file watcher noise, high editor CPU/RSS, uses VS Code/Cursor as a file browser over a large folder, or wants a safe editor…

majiayu000/spellbook · 75 tokens

review-agent-harness

Review whether a repository's coding-agent harness can reliably carry work from intent through controlled execution, verification, delivery, and learning. Use when asked to assess agent readiness, repeated agent failures, Rules/Skills/Hooks/Memory effectiveness, missing validation or recovery loops, or whether a…

majiayu000/spellbook · 90 tokens

codebase-audit

A read-only method for auditing an entire codebase across contracts, data integrity, errors, security, architecture, technical debt, configuration, and caching. It produces prioritized findings and a repair roadmap.

majiayu000/spellbook · 176 tokens

typescript-project

Modern TypeScript project architecture guide for 2025. Use when creating new TS projects, setting up configurations, or designing project structure. Covers tech stack selection, layered architecture, and best practices.

majiayu000/spellbook · 42 tokens