/ai-studio-builder:spec-promptfrom ai-studio-builder
Write a well-formed Google AI Studio Build-mode prompt (a spec) from a rough idea, including Gemini Live API apps that use the camera and voice. Produces a single prompt file to paste into aistudio.google.com/apps, plus follow-up prompts for iteration. Use on "write an AI Studio prompt for X", "spec this for AI Studio Build", "make a Gemini Live camera app prompt", or as step 1 of create-app.
Ships in ai-studio-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI Studio's Build agent writes better apps from a short, concrete spec than from a wish.
The goal is one prompt that gets a working first version, followed by small, single-purpose
follow-ups. Save it as spec/prompt.md (and spec/followups.md) in the user's repo or
working folder, so the app can be rebuilt or remixed later.
You need: what the app does for whom, the one main screen, inputs and outputs, which Gemini capability (text, image, search grounding, Maps, Live audio/video, TTS), and anything that must not happen. Infer the rest and say what you assumed.
App name: <kebab-or-title name>.
Purpose: <one sentence: who uses it, for what>.
Main screen:
- <element>: <behaviour>
- ...
Gemini usage:
- Model/capability: <e.g. Gemini text via the server; Live API audio+video; image generation>.
- System instruction for the model: """<the in-app model's instructions>""".
- Output format: <plain text / JSON schema / audio only>.
Flow:
1. <first user action> → <what happens>
2. ...
Constraints:
- Mobile-first, works on a phone in portrait.
- No sign-in, no database, no analytics unless listed.
- Show clear errors (no key, quota, permission denied) in the UI.
- Keep it to the features above. No extras.
Done when: <observable acceptance checks, e.g. "pressing Start shows the camera and the
assistant speaks within 3 s">.
Rules of thumb:
App name: <name>. AI Studio uses it as the app title.create-app.Add a block like this to the template (facts checked against Google's Live API skill docs, 2026-11-27; model names change, so let AI Studio choose the current Live model unless the user names one):
Live session:
- Use the Gemini Live API for a real-time voice conversation with camera input.
- Start button requests camera (rear-facing on phones, `facingMode: "environment"`) and
microphone, then opens the session. Stop button ends it and releases both.
- Send microphone audio as 16 kHz 16-bit PCM; play the model's 24 kHz PCM audio replies.
- Send a camera frame about once per second as a JPEG around 640 px wide, not a video stream.
- Enable voice activity detection and barge-in: if the user speaks, stop playback at once.
- Enable context window compression (sliding window) and session resumption, so sessions
last longer than a couple of minutes and survive a dropped socket.
- The API key stays on the server. The browser gets a short-lived ephemeral token from a
server endpoint and connects to the Live API with it.
- Show a live transcript of both sides, a connection status dot, and a mute toggle.
- System instruction: """<persona, task, how to use what it sees, when to ask the user to move
the camera>""".
Why each line is there:
GEMINI_API_KEY server-side only, so a browser Live
connection needs an ephemeral token. Saying so up front avoids a first build that tries
to put the key in client code.metadata.json must request camera and microphone frame permissions or the
preview can't open them; ask the Build agent to check it if the preview shows a
permission error.Test Live apps on a phone using the shared or published URL. The preview iframe in a desktop browser can use the laptop camera, but that's not the real use.
Show the user the prompt and the planned follow-ups. Don't open the browser here; that's
create-app.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub danielrosehill/google-ai-studio-builder-claude-plugin --plugin ai-studio-builder4 skills in this plugin
/create-appCreate and iterate a Google AI Studio Build-mode app (aistudio.google.com/apps) by driving a signed-in browser with Claude in Chrome. Submits a spec prompt, waits for the build, sends one-change follow-ups, and verifies the live preview against acceptance checks. Use on "build this in AI Studio", "make an AI Studio app for X", "prototype this as a Gemini app in AI Studio", "iterate my AI Studio app"./deploy-appPublish a Google AI Studio Build app so others can use it: AI Studio's one-click Publish to Cloud Run (free Starter Tier slots, or a billed Cloud project), a restricted Share link, or deploying the exported code elsewhere (Cloud Run from source, Vercel, Cloudflare, a server). Checks cost before anything is spent. Use on "deploy my AI Studio app", "publish this to Cloud Run", "give me a public URL for the AI Studio app", "unpublish it"./export-appGet the code of a Google AI Studio Build app into a local git repo, by ZIP download (Settings → Versions → download) or AI Studio's two-way GitHub sync, then add a README, .env.example and .gitignore. Use on "export my AI Studio app", "download the AI Studio code", "put this AI Studio app on GitHub", "sync AI Studio with my repo".