bun:init

bun:init is a command for Claude Code from secondsky/claude-skills. It costs 12 tokens per session (577 once invoked), scanned A, original, MIT.

A project starter for creating a new Bun application with a selected template. Bun is a JavaScript runtime and package manager.

In plain words
What is it for?
Use it to start basic TypeScript projects or projects using Hono, Next.js, Nuxt, SvelteKit, or TanStack Start, then initialize Git and show next steps.
Why use it?
It removes the need to choose scaffolding commands, install dependencies, and set up basic project configuration by hand.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the bun plugin — 27 skills, 6 commands, 3 agents, 2 hooks shipped together

Good fit Use it to start basic TypeScript projects or projects using Hono, Next.js, Nuxt, SvelteKit, or TanStack Start, then initialize Git and show next steps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/secondsky/claude-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.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install bun, the plugin that ships this one along with the rest of its 27 skills, 6 commands, 3 agents, 2 hooks.

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/commands/secondsky/claude-skills/bun-init/github.svg)](https://agentmods.dev/commands/secondsky/claude-skills/bun-init)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/bun-init"><img src="https://agentmods.dev/badge/commands/secondsky/claude-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/commands/secondsky/claude-skills/bun-init"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/bun-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 577 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.00012 $0.00577
Opus 5.5 $0.00005 $0.00231
Sonnet 5.5 $0.00002 $0.00115
Haiku 4.5 $0.00001 $0.00058

Measured 3mo ago against content hash 4b297e16ce09, 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 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.

plugins/bun/commands/bun-init.md · 106 lines

What it actually says

Bun Project Initialization

Initialize a new Bun project with the best configuration for the selected template.

Process

  1. Determine project type - Ask user if template not specified
  2. Create project structure - Use appropriate scaffolding
  3. Configure for Bun - Ensure Bun-optimized settings
  4. Install dependencies - Run bun install
  5. Initialize git - Set up git repository
  6. Show next steps - Guide user on what to do next

Templates

Basic (default)

bun init

Creates minimal Bun project with TypeScript.

Hono

bun create hono {project-name}

Creates Hono API project optimized for Bun.

Next.js

bunx create-next-app@latest {project-name}

Creates Next.js project with Bun package manager.

Nuxt

bunx nuxi@latest init {project-name}

Creates Nuxt 3 project with Bun runtime.

SvelteKit

bunx sv create {project-name}

Creates SvelteKit project with Bun adapter.

TanStack Start

bunx create-tanstack-start@latest {project-name}

Creates TanStack Start full-stack React project.

Post-Initialization

After scaffolding, apply these Bun-specific optimizations:

  1. Update package.json scripts to use bun --bun where beneficial
  2. Create bunfig.toml with recommended settings
  3. Add .gitignore entries for Bun-specific files
  4. Configure TypeScript for Bun types

Example bunfig.toml

[install]
auto-install = true

[run]
bun = true

[test]
coverage = true

Questions to Ask

If template not provided:

  • "What type of project do you want to create?"
    • API/Backend (Hono)
    • React Full-Stack (Next.js or TanStack Start)
    • Vue Full-Stack (Nuxt)
    • Svelte Full-Stack (SvelteKit)
    • Basic TypeScript

If project name not provided:

  • "What should the project be called?"

Success Output

After initialization, display:

  1. Project structure summary
  2. Key files created
  3. Available scripts
  4. Command to start development
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. 3mo ago First seen · 106 lines · 12 tokens per session scan A 4b297e16ce09

Subscribe to this mod's changes

bun:init 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 577 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.

Related

bun:init compared with commands from other repositories

bun:init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bun:initsecondsky/claude-skillsCommand2572d agoMITA12Claude Code
checklistgithub/spec-kitCommand153kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand153kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand153kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand153kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand153kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand153kyesterdayMITA14Claude Code