journey-frontend
Skill535 starsChanged 5 months agoMITView on GitHub
Use as the frontend build stage of the Butterbase journey. Implements the Frontend section of 02-plan.md by delegating to deploy-frontend. Scaffolds (if needed) and deploys via create_frontend_deployment + manage_frontend (start_deployment). Sets VITE_API_URL and VITE_APP_ID env. Skipped if the plan is API-only.
- Reads credentials
- Installs packages
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If docs/butterbase/03-preflight.md is missing, older than 24 hours, or 00-state.md has app_id: null, invoke …
- Very specific: line 27
Refresh docs: Call butterbase_docs with topic: "frontend".
- Very specific: line 40
Do NOT hand-roll fetch() against the REST API in a Butterbase frontend — the SDK handles auth headers, presigned URL refresh, realtime …
- Very specific: line 46
Read the Frontend section and frontend_stack from 00-state.md.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Journey: Frontend
Stage 3j of the guided journey. Build (or adopt) and deploy the frontend.
When to use
- Dispatched by
journeywhencurrent_stage: frontend. - Directly via
/butterbase-skills:journey-frontend. - Skipped (annotated
(n/a)) iffrontend_stack: nonein00-state.md.
Preflight
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.
Inputs
docs/butterbase/02-plan.md— the Frontend section.docs/butterbase/00-state.md— forapp_id,api_base,frontend_stack.
Procedure
- Refresh docs. Call
butterbase_docswithtopic: "frontend". For framework-specific deploy patterns, also WebFetchhttps://docs.butterbase.ai/frontend. Skip if cache is fresh.
Use @butterbase/sdk
Any frontend that talks to the deployed Butterbase app should use @butterbase/sdk:
- Install:
npm install @butterbase/sdkinside the frontend project. - Initialize:
import { createClient } from '@butterbase/sdk'; const bb = createClient({ apiUrl: import.meta.env.VITE_API_URL, appId: import.meta.env.VITE_APP_ID }); - Auth:
bb.auth.signInWithOAuth({ provider: 'google' }),bb.auth.signOut(),bb.auth.getSession(). - Data:
bb.db.from('posts').select('*').eq('user_id', userId). - Storage:
bb.storage.upload(file), persist the returnedobject_id, resolve download URLs via the SDK at render time. - Realtime:
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".
Build and deploy
- Read the Frontend section and
frontend_stackfrom00-state.md. Print:"About to deploy a <stack> frontend for app_id <id>. Proceed?". Wait foryes. - Invoke
butterbase-skills:deploy-frontendvia the Skill tool with the frontend spec,app_id, andapi_base. The wrapped skill scaffolds (if nopackage.jsonexists in./webor chosen path), setsVITE_API_URLandVITE_APP_ID, builds, callscreate_frontend_deployment, thenmanage_frontend action: start_deployment. - Capture the live URL from the response. Show it to the user.
- Append one line to
docs/butterbase/04-build-log.md:<ISO timestamp> frontend manage_frontend <live-url> ok - Also write the live URL into a new
deployed_url:field in00-state.mdfront-matter. - Tick
- [x] frontendin00-state.md, setcurrent_stage: deploy. - Return to
journeyorchestrator (or ask"Continue to deploy verification? (yes/no)").
Outputs
- Live deployed frontend URL.
deployed_url:in00-state.md.- One line in
04-build-log.md.
Anti-patterns
- ❌ Forgetting to set
VITE_API_URLandVITE_APP_ID— frontend will load blank. - ❌ Wrong MIME types — let
deploy-frontendhandle the bundling; do not hand-roll.
Other versions1 project uses a version of this.
Word for word · 1
- butterbase-ai/butterbase-plugin★ 534100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- butterbase-skillsSkill
- agentsSkill
- aiSkill
- auth-setupSkill
- build-appSkill
- contributingSkill
- debug-rlsSkill
- deploy-frontendSkill
- durable-objectsSkill
- function-devSkill
- integrationsSkill
- journey-agentsSkill
- journey-aiSkill
- journey-authSkill
- journey-deploySkill
- journey-docsSkill
- journey-durableSkill
- journey-functionsSkill
- journey-ideaSkill
- journey-planSkill
- journey-preflightSkill
- journey-ragSkill
- journey-realtimeSkill
- journey-rlsSkill
- journey-schemaSkill
- journeySkill
- journey-storageSkill
- journey-submitSkill
- journey-substrateSkill
- journey-templatesSkill
- meetingsSkill
- migrationsSkill
- paymentsSkill
- rag-devSkill
- realtimeSkill
- schema-designSkill
- storageSkill
- substrateSkill
- templatesSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

