From butterbase-skills
Configures AI gateway defaults (model, BYOK) as part of the Butterbase build journey. Delegates to the ai skill and calls manage_ai to update config. Skipped if no LLM/embeddings usage.
How this skill is triggered — by the user, by Claude, or both
Slash command
/butterbase-skills:journey-aiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stage 3f of the guided journey. Configure AI gateway defaults (model, BYOK).
Stage 3f of the guided journey. Configure AI gateway defaults (model, BYOK).
journey when current_stage: ai./butterbase-skills:journey-ai.(n/a)) if the plan has no AI section.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 AI section.docs/butterbase/00-state.md — for app_id.Refresh docs. Call butterbase_docs with topic: "ai". For BYOK and model lists, also WebFetch https://docs.butterbase.ai/ai. Skip if cache is fresh.
Read the AI section. Print it back: "About to configure AI: default model=<m>, BYOK=<yes/no>. Proceed?". Wait for yes.
Invoke butterbase-skills:ai via the Skill tool with the AI plan and app_id. The wrapped skill calls manage_ai action: update_config (and per-provider key updates if BYOK).
Smoke: call manage_ai action: chat with a tiny prompt ("say ok") to confirm the gateway responds.
Append one line to docs/butterbase/04-build-log.md:
<ISO timestamp> ai manage_ai ok
Tick - [x] ai in 00-state.md, set current_stage: to the next unchecked stage.
Return to journey orchestrator (or ask "Continue to the next stage? (yes/no)").
04-build-log.md.manage_ai action: list_models — list first.npx claudepluginhub butterbase-ai/butterbase-skills --plugin butterbase-skillsManages an app's AI gateway: chat completions, embeddings, model listing, configuration (defaults, BYOK), and token/cost usage reporting.
Integrates codebase with TrueFoundry AI Gateway: scans LLM calls, MCP configs, credentials; diffs against gateway config; generates migration plan; applies changes; verifies routing end-to-end.
Builds reliable AI features with evals, cost control, and guardrails. Use for LLM features, RAG pipelines, agents, and diagnosing AI failures.