/butterbase-skills:journey-frontend runs instead · from butterbase-skills
Implements the frontend build stage of the Butterbase journey: scaffolds (if needed) and deploys a frontend, sets VITE_API_URL and VITE_APP_ID, and uses @butterbase/sdk for auth, data, storage, and realtime.
This skill never runs in Claude Code
It ships in butterbase-skills at skills/, but /butterbase-skills:journey-frontend (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Stage 3j of the guided journey. Build (or adopt) and deploy the frontend.
journey when current_stage: frontend./butterbase-skills:journey-frontend.(n/a)) if frontend_stack: none in 00-state.md.If docs/butterbase/03-preflight.md is missing, older than 24 hours, or 00-state.md has app_id: null, invoke butterbase-skills:journey-preflight first. Wait for it to return successfully before proceeding.
docs/butterbase/02-plan.md — the Frontend section.docs/butterbase/00-state.md — for app_id, api_base, frontend_stack.butterbase_docs with topic: "frontend". For framework-specific deploy patterns, also WebFetch https://docs.butterbase.ai/frontend. Skip if cache is fresh.@butterbase/sdkAny frontend that talks to the deployed Butterbase app should use @butterbase/sdk:
npm install @butterbase/sdk inside the frontend project.import { createClient } from '@butterbase/sdk'; const bb = createClient({ apiUrl: import.meta.env.VITE_API_URL, appId: import.meta.env.VITE_APP_ID });bb.auth.signInWithOAuth({ provider: 'google' }), bb.auth.signOut(), bb.auth.getSession().bb.db.from('posts').select('*').eq('user_id', userId).bb.storage.upload(file), persist the returned object_id, resolve download URLs via the SDK at render time.bb.realtime.from('posts').on('insert', cb).subscribe().Do NOT hand-roll fetch() against the REST API in a Butterbase frontend — the SDK handles auth headers, presigned URL refresh, realtime reconnection, and type-narrowing. The MCP tools are not for runtime code.
For framework-specific patterns (Next.js Server Components, SvelteKit load functions, etc.), call butterbase_docs with topic: "sdk".
frontend_stack from 00-state.md. Print: "About to deploy a <stack> frontend for app_id <id>. Proceed?". Wait for yes.butterbase-skills:deploy-frontend via the Skill tool with the frontend spec, app_id, and api_base. The wrapped skill scaffolds (if no package.json exists in ./web or chosen path), sets VITE_API_URL and VITE_APP_ID, builds, calls create_frontend_deployment, then manage_frontend action: start_deployment.docs/butterbase/04-build-log.md:
<ISO timestamp> frontend manage_frontend <live-url> okdeployed_url: field in 00-state.md front-matter.- [x] frontend in 00-state.md, set current_stage: deploy.journey orchestrator (or ask "Continue to deploy verification? (yes/no)").deployed_url: in 00-state.md.04-build-log.md.VITE_API_URL and VITE_APP_ID — frontend will load blank.deploy-frontend handle the bundling; do not hand-roll.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub butterbase-ai/butterbase-skills --plugin butterbase-skills39 skills in this plugin
/agentsUse when designing, deploying, or debugging a Butterbase Agent (declarative LLM/tool graph), registering an MCP server for tool use, or wiring access controls and rate limits. Agents are first-class app resources defined by a `graph_spec` and invoked over `/v1/<app_id>/agents/<name>/runs`./aiUse when calling the app's AI gateway from agent tools — chat completions, embeddings, listing models, configuring defaults or BYOK, reading token/cost usage, polling video jobs or preparing declared fictional image references/auth-setupUse when configuring OAuth providers (Google/GitHub/Apple/X/etc.), setting up post-login auth hooks, tuning JWT lifetimes, or generating service API keys/build-appUse when building a new Butterbase app from scratch, creating a full-stack application, or when the user asks to set up a complete backend with database, auth, and deployment/contributingUse when contributing to the Butterbase codebase, adding new MCP tools, creating API routes, writing migrations, or understanding the monorepo architecture/debug-rlsUse when users report access denied errors, see wrong data, RLS policies are not working, or when troubleshooting Row-Level Security issues in ButterbaseOther plugins' skills for the same job