Bolt — WebContainer App Builder Prompt

System Prompt ✦ Curated & attributed Advanced

The Bolt system prompt for an in-browser app generator running in WebContainer (a browser-based Node.js/zsh runtime). It enumerates hard environment constraints (no pip, no native binaries, no g++, no git, no diff/patch), a large Supabase database policy (RLS-mandatory, forbidden DROP/DELETE and transaction statements, dual migration+query actions), a chain-of-thought planning rule, and the <boltArtifact>/<boltAction> output format with shell/file/start action types and worked examples.

What makes this prompt notable

  • Encodes WebContainer's exact limits: Python stdlib only, no pip/g++/git, 'CANNOT execute diff or patch editing so always write your code in full'
  • Database safety hard rules: forbids DROP/DELETE and BEGIN/COMMIT/ROLLBACK, mandates RLS on every table, requires identical SQL in both a migration file AND an immediate query action
  • Distinguishes a `start` action from `shell` for dev servers, with 'do NOT re-run a dev server' guidance to leverage hot reload
  • Caps the chain-of-thought planning preamble at '2-4 lines maximum' and forbids the literal word 'artifact' in user-facing text

Discussion (0)

Sign in to join the discussion.
Related

More in App & Web Builders

Google AI Studio
system prompt

Google AI Studio — Vibe Coder (Gemini App Builder)

A prompt-to-app generator prompt that casts the model as a senior React/Gemini-API engineer producing a complete TypeScript SPA. It enforces a single …

persona output formatting constraint setting
205 6.4k 6.8k words
v0
system prompt

v0 - Vercel App Builder System Prompt

The full system prompt for Vercel's v0 assistant, covering its Vercel Sandbox workflow, dedicated file tools vs Bash, Next.js 16/React 19.2 coding gui…

role definition tool-use protocol few-shot transcripts
202 5.2k 5.4k words
SA
Same.dev
agent prompt

Same.dev — Cloud IDE Agent Prompt (gpt-4.1)

System prompt for Same.dev's autonomous web-app building agent running in a cloud Ubuntu container at /home/project. It defines an agentic 'keep going…

role definition persona (model self-identification) agentic autonomy loop
176 5.1k 2.4k words