Google AI Studio — Vibe Coder (Gemini App Builder)

System Prompt ✦ Curated & attributed Gemini Advanced

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 XML <changes> output format with CDATA-wrapped files, a strict project structure (root index.tsx/App.tsx, no src/, Tailwind via CDN only), and ships an extensive embedded @google/genai SDK coding guide covering generateContent, JSON schemas, function calling, image/video/TTS, the Live API, and Search/Maps grounding.

What makes this prompt notable

  • Forces the entire response into one valid XML <changes> block with <![CDATA[...]]> wrapped file contents and forbids any explanation
  • Embeds a deprecation blocklist (GoogleGenerativeAI, getGenerativeModel, gemini-1.5-*) and a model-alias routing table ('nano banana' -> gemini-2.5-flash-image, 'veo fast' -> veo-3.1-fast-generate-preview)
  • Documents two named React pitfalls (useEffect/useCallback infinite loop, child component defined inside parent) with full incorrect/correct code pairs
  • Specifies template-literal backtick escaping rules and trailing-comma generics for TSX parsing safety

Discussion (0)

Sign in to join the discussion.
Related

More in App & Web Builders

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
Replit Assistant
system prompt

Replit Assistant — System Prompt

System prompt for the Replit Assistant embedded in Replit's online Linux/Nix IDE. It classifies user queries into four response modes (propose file ch…

role definition intent classification with examples structured XML output protocol
168 1.1k 1.7k words