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.
npx skills add dmythro/agent-skills --skill bun-apigit clone --depth 1 https://github.com/dmythro/agent-skillsWrote 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.
[](https://agentmods.dev/skills/dmythro/agent-skills/bun-api)<a href="https://agentmods.dev/skills/dmythro/agent-skills/bun-api"><img src="https://agentmods.dev/badge/skills/dmythro/agent-skills/bun-api.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00250 | $0.10375 |
| Opus 5 | $0.00125 | $0.05188 |
| Sonnet 5 | $0.00050 | $0.02075 |
| Haiku 4.5 | $0.00025 | $0.01038 |
Grade A, and why
bun-api scanned grade A with 2 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 today.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
fetch(req: Request): Response | Promise<Response> { // unmatched requests Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
### Bun.spawnSync (Synchronous) How it starts
The opening of the file, as written. The whole thing — 965 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bun Runtime API
Bun runs TypeScript natively — no tsc compilation, no ts-node, no build step. Run any .ts file directly with bun file.ts. Use Bun's native APIs instead of Node.js equivalents — they're faster, more ergonomic, and require no additional dependencies.
Critical: In a Bun project (has bun.lock, bun.lockb, bunfig.toml, or @types/bun in devDependencies), always use Bun to run scripts (bun file.ts, not node file.ts) and prefer Bun-native APIs over Node.js equivalents. Mixing runtimes causes subtle bugs and unnecessary retries.
Verified against Bun v1.4.2 (2026-09-05). Features are tagged with the version that
introduced them (v1.4+, v1.4.1+, v1.4.2+). Where a release changed existing behavior, both
behaviors are stated so this skill stays correct on older projects -- check bun --version
before relying on a version-tagged item.
Read Bun's Own Docs First
Bun ships its complete documentation inside bun-types, version-matched to the runtime.
In any project with bun-types or @types/bun installed:
node_modules/bun-types/docs/**/*.mdx # full docs, plus ~180 task-shaped guides/
node_modules/bun-types/*.d.ts # richest API surface (bun.d.ts, serve.d.ts, sql.d.ts)
node_modules/bun-types/CLAUDE.md # Bun's own agent rules
Consult them before writing non-trivial Bun code. This skill covers which API to reach for; the shipped docs cover exact signatures and options.
- Check the version. Compare
bun --versionagainstnode_modules/bun-types/package.json.bun initinstalls@types/bun@latest, which lags behind the runtime -- correct it withbun add -d bun-types@<runtime-version>. - Open by explicit path. With Bun's global virtual store enabled,
node_modules/bun-typesis a symlink:find node_modules -name '*.mdx'andrg <pattern> node_modulesreturn nothing, whilefind node_modules/bun-types/docs -name '*.mdx'works. - Never edit files under
node_modules/. Under the global store, every project on the machine shares the same inode -- a write there hits all of them. Usebun patch. - Not installed? The same path works online:
docs/runtime/sql.mdxishttps://bun.com/docs/runtime/sql.
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/file-io.md 6.5 KB
- references/hashing.md 8.3 KB
- references/http-server.md 13 KB
- references/image.md 5.2 KB
- references/migration-1.4.md 19 KB
- references/networking.md 8.4 KB
- references/redis-client.md 5.9 KB
- references/s3-client.md 5.1 KB
- references/shell-and-process.md 10 KB
- references/sql-client.md 8.1 KB
- references/sqlite-and-data.md 5.9 KB
- references/utilities.md 21 KB
- references/webview.md 3.0 KB
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.
- today Changed · +2 lines de61020c4d8a
- 2d ago Changed · +21 lines · +21 tokens per session 545c46a48203
- 7d ago First seen · 942 lines · 229 tokens per session scan A e225e8986367
bun-api is a skill published in the GitHub repository dmythro/agent-skills (6 stars, last pushed yesterday), licensed MIT. It adds 250 tokens to every session and 10,375 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
typescript-guardian
Focuses specifically on TypeScript type safety - any usage, unsound generics, interface design, and type narrowing. Use for a deep type-system review, not general code quality.
nestjs
Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…
api-framework-nestjs
NestJS backend framework - modules, controllers, services, DI, guards, pipes, interceptors, exception filters, middleware, DTOs with class-validator.
web-data-fetching-trpc
Skill "web-data-fetching-trpc" from agents-inc/skills, covering trpc type-safe api patterns, critical: before using this skill, philosophy, core patterns and pattern 1: trpc initialization and router setup.
web-forms-zod-validation
Zod schema validation patterns for TypeScript - schema definitions, type inference, refinements, transforms, discriminated unions.
api-framework-hono
Hono routes, OpenAPI, Zod validation.