vapi-bootstrap-framework
FreeNo executable scriptsNot checkedOpt-in recreation of the Bun + TypeScript framework used to build Vapi's landing-page voice agents from a ROUGH_DRAFT.md spec, including a scenario registry…
by VapiAI★ 71 GitHub starsAbout this skill
Vapi bootstrap framework
Experimental reference workflow: This skill recreates the architecture used for Vapi's landing-page agents. It is not the standard workflow for building Vapi assistants and should only be used when explicitly requested.
Scaffold an entire Vapi voice-agent project from a single ROUGH_DRAFT.md spec. Works in an empty folder or alongside an existing Bun + TypeScript project. One bun run bootstrap after this skill finishes puts the whole fleet live in dashboard.vapi.ai.
What this skill produces
Project scaffolding (only created if absent — never overwritten):
package.json— Bun +@vapi-ai/server-sdk+ abootstrapscripttsconfig.json— strict no-emit TypeScript validation.env.example—VAPI_API_KEYplaceholder + one slot per(scenario × language)tuple.gitignore—node_modules,.env*.local, OS junk
Framework spine (always created — architectural; every later change extends a slot here, never the spine itself):
src/assistants/languages.ts— per-language voice + transcriber stacksrc/assistants/loadPrompt.ts—loadPrompt(scenarioId, languageId)composersrc/assistants/scenarios/index.ts— the scenario registrysrc/assistants/buildAssistant.ts— composes a full Vapi assistant body for any(scenarioId, languageId)tuplesrc/assistants/prompts/shared/preambles/es.md— Spanish language preamble (extend with more languages later)
Content (always created — one set per scenario detected in the rough draft):
src/assistants/scenarios/<scenarioId>.ts— id, name, language-keyed first messagesrc/assistants/prompts/<scenarioId>/body.md— rough first-draft system promptsrc/assistants/prompts/<scenarioId>/off-topic-es.md— Spanish redirect lines
Entry point (always created):
src/bootstrap.ts— idempotent double loop over scenarios × languages
Defaults: languages en + es. Model openai gpt-4.1 temperature 0.5. Voices ElevenLabs eleven_turbo_v2 (EN) / eleven_multilingual_v2 (ES). Transcriber Deepgram nova-3 (EN) / Soniox stt-rt-v4 (ES). Override these only if the user explicitly asks.
Workflow
- Check for
ROUGH_DRAFT.mdat the project root.- If present → continue with step 2.
- If missing → tell the user the skill needs a rough draft to work from. Offer the template under "ROUGH_DRAFT.md template" below; either paste it in for them to fill out, or wait for them to provide their own. Don't proceed past this step without one.
- Detect scenarios — every
## N. <scenario name>heading is one scenario. Derive a snake_casescenarioIdfrom the name (e.g. "Lead Qualification & Screening" →qualification; "Appointment Scheduling" →appointment). When in doubt, pick the shortest unambiguous noun. Keep ids short — they become env var names. - Extract the opening line — under each scenario, look for
**On the page**,**Opening**,**Greeting**, or the first quoted string in the section. That'sfirstMessage.enverbatim. - Distill the flow —
**What happens**(or equivalent prose) becomes a rough first-draftbody.md. Persona-driven, not a contract — no failure rules, no exact wordings, no scripted off-ramps yet. Keep it short. - Scaffold the project root — for each of
package.json,tsconfig.json,.env.example,.gitignore: if the file is absent, create it from the template below. If.env.examplealready exists, append any missingVAPI_ASSISTANT_<SCENARIO>_<LANG>slots; never reorder or remove existing lines. Ifpackage.jsonexists, leave it alone but verify it has@vapi-ai/server-sdkin deps plusbootstrapandtypecheckscripts — tell the user if any are missing instead of editing. - Generate the framework spine — copy the five spine files verbatim from the templates below. They don't change between projects; only the scenario registry's imports do.
- Generate per-scenario files — one
scenarios/<id>.ts, oneprompts/<id>/body.md, oneprompts/<id>/off-topic-es.mdper detected scenario. - Wire up the registry —
scenarios/index.tsimports every scenario and exports theSCENARIOSconst,ScenarioId,SCENARIO_IDS,scenarioFor. - Write
src/bootstrap.tswith the double-loop template below. - Translate first messages to Spanish — natural Latin American Spanish, brand names untranslated.
- Tell the user how to run it (see "Verification" below).
Keep each scenario's clientTools array empty in this skill — functional capture tools land in a follow-up step. Do not rewrite body.md as a contract here either — that's a separate step.
File templates
Templates use these placeholders that you substitute per project:
<PROJECT_NAME>— slug from the rough draft title (# Rough draft — <X>→ snake/kebab-case of X). Fallback:vapi-voice-agents.<SCENARIO_ID>— snake_case scenario id (e.g.qualification)<SCENARIO_NAME>— human-readable name (e.g. `Lead Qualification
Install vapi-bootstrap-framework in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the vapi-bootstrap-framework skill do?
Opt-in recreation of the Bun + TypeScript framework used to build Vapi's landing-page voice agents from a ROUGH_DRAFT.md spec, including a scenario registry, language stacks, prompt composer, assistant builder, and idempotent bootstrap script. Use only when the user explicitly invokes vapi-bootstrap-framework or specifically asks to reproduce or experiment with the landing-page-agent architecture. Do not use for ordinary Vapi assistant builds; use create-assistant, create-tool, create-squad, and vapi-prompt-builder instead. Targets Bun + TypeScript + @vapi-ai/server-sdk.
How do I install the vapi-bootstrap-framework skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the vapi-bootstrap-framework skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic