optimize-bun-code

Installation
SKILL.md

Optimize Bun Code

Run this workflow only when the user explicitly invokes this skill by name. A related keyword or an ordinary implementation request is not an invocation.

Define the workload and claim: startup, CPU cost, retention, throughput, or latency. Measure a baseline before optimizing. Select the changed path from profiles or measured workload frequency.

Read [measurement and memory][ref-1] for CPU/heap commands, JSC warm-up, retainers, and RSS. Read [native APIs and concurrency][ref-2] for files, byte ownership, streaming, workers, and bounded queues.

Remove measured redundant work, allocations, copies, or expensive calls. Maintain error, ordering, encoding, lifetime, streaming, and cancellation contracts. Account for backing-store retention when replacing copies with views.

Installs
3
Repository
xsyetopz/skills
GitHub Stars
1
First Seen
Sep 12, 2026