Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

vapi-bootstrap-framework

FreeNo executable scriptsNot checked

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…

VapiAIby VapiAI★ 71 GitHub stars

About 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 + a bootstrap script
  • tsconfig.json — strict no-emit TypeScript validation
  • .env.example — VAPI_API_KEY placeholder + 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 stack
  • src/assistants/loadPrompt.ts — loadPrompt(scenarioId, languageId) composer
  • src/assistants/scenarios/index.ts — the scenario registry
  • src/assistants/buildAssistant.ts — composes a full Vapi assistant body for any (scenarioId, languageId) tuple
  • src/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 message
  • src/assistants/prompts/<scenarioId>/body.md — rough first-draft system prompt
  • src/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

  1. Check for ROUGH_DRAFT.md at 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.
  2. Detect scenarios — every ## N. <scenario name> heading is one scenario. Derive a snake_case scenarioId from 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.
  3. Extract the opening line — under each scenario, look for **On the page**, **Opening**, **Greeting**, or the first quoted string in the section. That's firstMessage.en verbatim.
  4. Distill the flow — **What happens** (or equivalent prose) becomes a rough first-draft body.md. Persona-driven, not a contract — no failure rules, no exact wordings, no scripted off-ramps yet. Keep it short.
  5. 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.example already exists, append any missing VAPI_ASSISTANT_<SCENARIO>_<LANG> slots; never reorder or remove existing lines. If package.json exists, leave it alone but verify it has @vapi-ai/server-sdk in deps plus bootstrap and typecheck scripts — tell the user if any are missing instead of editing.
  6. 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.
  7. Generate per-scenario files — one scenarios/<id>.ts, one prompts/<id>/body.md, one prompts/<id>/off-topic-es.md per detected scenario.
  8. Wire up the registry — scenarios/index.ts imports every scenario and exports the SCENARIOS const, ScenarioId, SCENARIO_IDS, scenarioFor.
  9. Write src/bootstrap.ts with the double-loop template below.
  10. Translate first messages to Spanish — natural Latin American Spanish, brand names untranslated.
  11. 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
Full SKILL.md on GitHub

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
Sign up freeI already have an account

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

Compare vapi-bootstrap-framework with