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.
git clone --depth 1 https://github.com/secondsky/claude-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/commands/secondsky/claude-skills/bun-optimize)<a href="https://agentmods.dev/commands/secondsky/claude-skills/bun-optimize"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-optimize/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.
<a href="https://agentmods.dev/commands/secondsky/claude-skills/bun-optimize"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-optimize.svg" alt="Reviewed on agentmods" width="80" 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.00012 | $0.01028 |
| Opus 5.5 | $0.00005 | $0.00411 |
| Sonnet 5.5 | $0.00002 | $0.00206 |
| Haiku 4.5 | $0.00001 | $0.00103 |
Grade A, and why
bun:optimize 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bun Optimization
Analyze and optimize Bun application performance.
Optimization Areas
Bundle Size Optimization
Analyze current bundle:
const result = await Bun.build({
entrypoints: ["./src/index.ts"],
outdir: "./dist",
minify: true,
splitting: true,
sourcemap: "external",
});
for (const output of result.outputs) {
console.log(`${output.path}: ${output.size} bytes`);
}
Techniques:
- Enable minification - Reduces size by 40-60%
- Code splitting - Lazy load non-critical code
- Tree shaking - Remove unused exports
- External packages - Don't bundle large deps
- Drop console/debugger - Remove dev code
await Bun.build({
entrypoints: ["./src/index.ts"],
outdir: "./dist",
minify: true,
splitting: true,
drop: ["console", "debugger"],
external: ["react", "react-dom"],
});
Runtime Performance
- Use Bun APIs - Prefer Bun.file() over fs
- Stream large files - Don't load into memory
- Prepared statements - Reuse SQLite statements
- Connection pooling - For databases
- Response caching - Cache expensive operations
// Good: Stream large files
const file = Bun.file("large.json");
const stream = file.stream();
// Good: Prepared statements
const stmt = db.prepare("SELECT * FROM users WHERE id = ?");
for (const id of ids) {
stmt.get(id);
}
// Good: Cache responses
const cache = new Map();
async function getData(key) {
if (cache.has(key)) return cache.get(key);
const data = await fetchData(key);
cache.set(key, data);
return data;
}
Memory Optimization
- Use --smol flag - Reduces memory footprint
- Stream processing - Avoid loading all data
- WeakMap/WeakSet - For cached objects
- ArrayBuffer reuse - Pool buffers
- Avoid closures - In hot paths
# Run with reduced memory
bun --smol run src/index.ts
// Good: Stream processing
for await (const line of file.stream()) {
processLine(line);
}
// Good: Buffer pooling
const bufferPool = [];
function getBuffer(size) {
return bufferPool.pop() || new ArrayBuffer(size);
}
function releaseBuffer(buf) {
bufferPool.push(buf);
}
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.
- 3mo ago First seen · 194 lines · 12 tokens per session scan A b4c937a38f04
bun:optimize is a command published in the GitHub repository secondsky/claude-skills (257 stars, last pushed 2d ago), licensed MIT. It adds 12 tokens to every session and 1,028 once invoked, about $0.0000 per session on Opus 5.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-08-30.
bun:optimize compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| bun:optimizesecondsky/claude-skills | Command | 257 | 2d ago | MIT | A | 12 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 153k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | yesterday | MIT | A | 14 | Claude Code |