Journey Docs
Documentsjourney-docsJourney Docs is an Agent Skill for documents published in the butterbase-ai/butterbase-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use as the docs-priming stage of the Butterbase journey, immediately after journey-preflight and before the first build stage. Reads the plan to discover which capabilities the app uses, calls butterbase_docs once per relevant topic, and caches a summary the build stages can re-read.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/butterbase-ai/butterbase-skills/blob/HEAD/skills/journey-docs/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/journey-docs, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Journey Docs Gate
A short, mechanical priming step. The goal is that every downstream stage starts with the relevant docs already in the conversation, so the model doesn't invent API shapes.
When to use
Invoke automatically after journey-preflight returns. Also invoke standalone (/butterbase-skills:journey-docs) any time the user changes the plan or you realize a stage is using a capability you haven't refreshed this session.
Procedure
-
Read the plan. Open
docs/butterbase/02-plan.md. Identify every Butterbase capability in use (Tables → schema; RLS → auth; Auth → auth; Storage → storage; Functions → functions; AI → ai; RAG → rag; Realtime → realtime; Durable → functions; Frontend → frontend; Integrations → integrations; Substrate → substrate; Payments → billing). -
Call
butterbase_docsper topic. For each unique topic from step 1, callbutterbase_docswith thattopicargument. Skip duplicates. -
Write the cache file. Create
docs/butterbase/03b-docs-cache.mdwith this structure:--- primed_at: <ISO timestamp> topics: [<comma-separated list>] --- # Docs Cache ## <topic-1> <one-paragraph summary of what the MCP doc says — key endpoints, common patterns, gotchas> URL: https://docs.butterbase.ai/<area> ## <topic-2> ... -
Update
00-state.md. Tick thedocsrow. -
Return. One-line summary:
"Primed docs for: schema, auth, storage, functions. Cache at docs/butterbase/03b-docs-cache.md."
Anti-patterns
- ❌ Calling
butterbase_docswithtopic: "all". Burns context. Call once per relevant topic instead. - ❌ Skipping the cache file. Other stages re-read it; in-memory only doesn't survive context compression.
- ❌ Calling for topics not in the plan. We're priming, not exhaustive.