02 Runtime Shims — Development skill for Claude Code
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
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
- Standardprompt Megaprompt Bundle Aufwerten — Standard-Prompt — Megaprompt-Bundle aufwerten 1.5k ★
- Claude Code — Claude Code Source - Buildable Research Fork 287 ★
- Obsidian Board — Show or update a kanban board — flags overdue items, updates from conversation 277 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
01 Install Bun And Deps
Prompt 01: Install Bun Runtime & Dependencies
Zsh Pkg Update Nag
Session-start nag that checks Homebrew, npm, pnpm, uv, RubyGems, and cargo globals for outdated packages and o
Review Admin
Review admin - RBAC, bootstrap, config management, feature flags
Remove Deadcode
Find and remove dead code — unused exports, unreachable functions, orphaned files, and stale feature flags. Fi
15 Production Bundle
Prompt 15: Production Bundle & Packaging
Bundle Summary System
Bundle summary — Sonnet 4.6 system prompt
Related Agents
Backend TypeScript Architect
Senior backend TypeScript architect specializing in Bun runtime, API design, database optimization, and scalab
Harness Runtime Architect
Reviews the harness library/CLI surface — plan/policy/approval/execute/audit/rollback semantics, evidence bund
Performance Optimizer
Expert in performance optimization, profiling, Core Web Vitals, and bundle optimization. Use for improving spe