codeaashu

02 Runtime Shims — Development skill for Claude Code

Development community

Prompt 02: Runtime Shims for bun:bundle Feature Flags & MACRO Globals.

How to install 02 Runtime Shims

Installs to ~/.claude/skills/codeaashu-claude-code-02-runtime-shims/SKILL.md

Terminal
mkdir -p ~/.claude/skills/codeaashu-claude-code-02-runtime-shims && curl -fsSL https://raw.githubusercontent.com/codeaashu/claude-code/HEAD/prompts/02-runtime-shims.md -o ~/.claude/skills/codeaashu-claude-code-02-runtime-shims/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What 02 Runtime Shims does

Prompt 02: Runtime Shims for `bun:bundle` Feature Flags & `MACRO` Globals

Context

You are working in `/workspaces/claude-code`. This is the Claude Code CLI source. It was built to run under **Bun's bundler** which provides two build-time features that don't exist at runtime:

1. `bun:bundle` feature flags

Throughout the code you'll find:

import { feature } from 'bun:bundle'
if (feature('BRIDGE_MODE')) { ... }

Bun's bundler replaces `feature('X')` with `true`/`false` at build

Alternatives in Development

Full documentation available on GitHub

View Source Repository