bun-init

bun-init is a skill for Claude Code from DaleSeo/bun-skills. It costs 31 tokens per session (2,368 once invoked), scanned A, original, MIT.

A setup guide and initializer for creating a new Bun project, a JavaScript and TypeScript runtime and package manager.

In plain words
What is it for?
Use it to start a Bun command-line tool, web app, API server or reusable library with TypeScript settings and standard project files.
Why use it?
It turns an empty or existing directory into a project with basic files and configuration suited to its intended type.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to start a Bun command-line tool, web app, API server or reusable library with TypeScript settings and standard project files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daleseo/bun-skills/bun-init
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 DaleSeo/bun-skills --skill bun-init
Clone the repo
git clone --depth 1 https://github.com/DaleSeo/bun-skills

Made for: Claude Code.

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-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/daleseo/bun-skills/bun-init/github.svg)](https://agentmods.dev/skills/daleseo/bun-skills/bun-init)
Your own site
<a href="https://agentmods.dev/skills/daleseo/bun-skills/bun-init"><img src="https://agentmods.dev/badge/skills/daleseo/bun-skills/bun-init/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-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/daleseo/bun-skills/bun-init"><img src="https://agentmods.dev/badge/skills/daleseo/bun-skills/bun-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00031 $0.02368
Opus 5.5 $0.00012 $0.00947
Sonnet 5.5 $0.00006 $0.00474
Haiku 4.5 $0.00003 $0.00237

Measured 2mo ago against content hash a26db3e1a909, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bun-init scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch(request) {
skills/bun-init/SKILL.md · 446 lines

How it starts

The opening of the file, as written. The whole thing — 446 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bun Project Initialization

You are assisting with initializing a new Bun project. Follow these steps to create a well-structured project with optimal configurations.

Workflow

1. Check Prerequisites

First, verify Bun is installed:

bun --version

If Bun is not installed, provide installation instructions for the user's platform.

2. Determine Project Type

Ask the user which type of project they want to create:

  • CLI Tool: Command-line application with bin entry point
  • Web App: Frontend application with React/Vue/etc
  • API Server: Backend API with routing framework
  • Library: Reusable package for publishing to npm

3. Run Bun Init

Execute the initialization command:

bun init -y

This creates:

  • package.json with Bun-optimized scripts
  • tsconfig.json with recommended TypeScript settings
  • index.ts as the entry point
  • README.md with basic project info

4. Enhance TypeScript Configuration

Read the generated tsconfig.json and enhance it based on project type:

For CLI Tools:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "types": ["bun-types"],
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "allowImportingTsExtensions": true,
    "noEmit": true
  }
}

For Web Apps:

{
  "compilerOptions": {
    "target": "ES2022",
    "lib": ["ES2022", "DOM", "DOM.Iterable"],
    "module": "ESNext",
    "moduleResolution": "bundler",
    "jsx": "react-jsx",
    "types": ["bun-types"],
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "allowImportingTsExtensions": true,
    "noEmit": true
  }
}

For API Servers:

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "types": ["bun-types"],
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "resolveJsonModule": true,
    "allowImportingTsExtensions": true,
    "noEmit": true,
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Read the full file on GitHub · 446 lines

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. 2mo ago First seen · 446 lines · 31 tokens per session scan A a26db3e1a909

Subscribe to this mod's changes

bun-init is a skill published in the GitHub repository DaleSeo/bun-skills (4 stars, last pushed 9mo ago), licensed MIT. It adds 31 tokens to every session and 2,368 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

bun-init compared with skills from other repositories

bun-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bun-initDaleSeo/bun-skillsSkill49mo agoMITA31Claude Code
better-t-stackAmanVarshney01/create-better-t-stackSkill5.9k14d agoMITA149Claude Code, Codex
bunj4flmao/agent-skillsSkill394d agoMITA148Claude Code, Codex
add-a-liblonormaly/builders-stackSkill421mo agoMITA81Claude Code, Codex
sandyjamestelfer/sandySkill72d agoApache-2.0A45Claude Code, Codex
nifranifrajs/nifraSkill6yesterdayMITA83Claude Code
typescript-bunwsauret/flywheelSkill19todayApache-2.0A16Claude Code, Codex