journey-substrate
Skill535 starsChanged 5 months agoMITView on GitHub
Use as the optional substrate-linking stage of the Butterbase journey, after deploy and before submit. Asks whether to connect the deployed app to the owner's substrate (so functions get ctx.substrate). Skipped by default in hackathon mode.
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Refresh docs: Call butterbase_docs with topic: "substrate".
- Distinctive: line 18
Confirm: Ask the user:
≈ “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 Substrate Stage (optional)
Connect the deployed app to the owner's substrate so functions get ctx.substrate injected at cold start. Skip if the user has no AI-agent / memory use case.
When to use
Invoke automatically when the journey orchestrator's cursor reaches substrate. The row is optional in the checklist; skip silently if the user declines.
Procedure
- Refresh docs. Call
butterbase_docswithtopic: "substrate". If the plan mentions AI memory / agent state / cross-session knowledge, also WebFetchhttps://docs.butterbase.ai/substrate. Skip ifdocs/butterbase/03b-docs-cache.mdalready coverssubstrate. Confirm. Ask the user:
"Connect
<app_id>to your substrate? This lets the app's functions read/write your agent memory viactx.substrate. You can disable later. (yes / skip)"Default: skip.
- On skip: mark the row
- [x] substrate (skipped — no agent memory needed)indocs/butterbase/00-state.md. Writedocs/butterbase/04b-substrate.mdwith one line:Skipped on <date>.Return. - On yes:
a. If
platform_users.substrate_provisioned_atis NULL for the caller, callPOST /v1/me/substrate/provisionfirst (or invoke whatever MCP wrapper exists — checkbutterbase_docstopicsubstrate). b. Link the app. Use whichever surface you have:- MCP:
manage_appwith{ action: "link_substrate", app_id: "<app_id>" }. - CLI:
butterbase apps link-substrate <app_id>. - REST (curl):
POST /v1/me/apps/<app_id>/substrate-linkwith empty body andAuthorization: Bearer <bb_sk_*>for the app owner. The route enforces caller == app owner and setsapps.substrate_user_idto the caller's id. c. Verify:manage_appwith{ action: "get_config", app_id: "<app_id>" }and assertsubstrate_user_idis non-null. d. Smoke: invoke any HTTP function the app already has and checkctx.substrateis defined (if the function logs it). If no function exists yet, skip the smoke and note in the artifact.
- MCP:
Write artifact.
docs/butterbase/04b-substrate.md:--- linked_at: <ISO> app_id: <id> substrate_user_id: <id> --- # Substrate Linkage - App linked at <ISO> - Substrate user ID: <id> - Smoke: <pass / skipped — no function yet>- Update state. Tick the
substraterow in00-state.md.
Anti-patterns
- ❌ Auto-linking without asking. Substrate is a privacy-sensitive surface.
- ❌ Linking before the app has any function deployed. Wait until
journey-functionshas run. - ❌ Forgetting to handle the "substrate not yet provisioned" case. Lazy provisioning is by design.
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-frontendSkill
- journey-functionsSkill
- journey-ideaSkill
- journey-planSkill
- journey-preflightSkill
- journey-ragSkill
- journey-realtimeSkill
- journey-rlsSkill
- journey-schemaSkill
- journeySkill
- journey-storageSkill
- journey-submitSkill
- 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.
Reviews can't be read right now.
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.

