A conversation-first workflow that interviews you about how your work actually runs, stores the answers as structured Open Brain data, and generates agent-ready operating files. [!NOTE] If you are coming from the Bring Your Own Context post or want the article-friendly entrypoint, start with Bring Your Own Context. This recipe is the structured profiling engine that BYOC uses under the hood.
This recipe adds a dedicated MCP server plus schema for a 45-minute elicitation workflow. The interview runs in five fixed layers:
- operating rhythms
- recurring decisions
- dependencies
- institutional knowledge
- friction
Each approved layer is saved into structured tables, summarized into one durable Open Brain thought through your existing core connector, and made available for later querying and export generation.
This recipe depends on the canonical Work Operating Model skill, which owns the interview behavior. The recipe owns the data model, remote MCP server, and export snapshots. The higher-level Bring Your Own Context recipe packages this workflow together with context extraction prompts and the portable bundle contract.
- Working Open Brain setup (guide)
- Existing core Open Brain connector with
search_thoughtsandcapture_thought - AI client that supports reusable skills or prompt packs
- Supabase CLI installed and linked to your project
- Canonical Work Operating Model skill
WORK OPERATING MODEL ACTIVATION -- CREDENTIAL TRACKER
----------------------------------------------------
FROM YOUR OPEN BRAIN SETUP
Project URL: ____________
Secret key: ____________
Project ref: ____________
MCP Access Key: ____________
Core Open Brain tools available: yes / no
GENERATED DURING SETUP
Default User ID: ____________
Function URL: ____________
MCP Connection URL: ____________
Current profile version: ____________
----------------------------------------------------
Follow the installation steps in the Work Operating Model skill. The skill handles the interview, confirmation gates, contradiction pass, and summary-thought capture.
Open your Supabase SQL Editor and run schema.sql:
https://supabase.com/dashboard/project/YOUR_PROJECT_ID/sql/new
This creates:
operating_model_profilesoperating_model_sessionsoperating_model_layer_checkpointsoperating_model_entriesoperating_model_exports
It also adds the helper RPC functions operating_model_start_session() and operating_model_save_layer() for atomic session and layer persistence.
This recipe is single-user on purpose. Generate one UUID and reuse it for future sessions:
uuidgen | tr '[:upper:]' '[:lower:]'Save it to your credential tracker, then set it in Supabase:
supabase secrets set DEFAULT_USER_ID=your-generated-uuidFollow the Deploy an Edge Function guide using these values:
| Setting | Value |
|---|---|
| Function name | work-operating-model-mcp |
| Download path | recipes/work-operating-model-activation |
This function uses:
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYMCP_ACCESS_KEYDEFAULT_USER_ID
Use the Remote MCP Connection pattern.
| Setting | Value |
|---|---|
| Connector name | Work Operating Model |
| URL | Your function URL with the same MCP key pattern you use for your other OB1 servers |
Keep your core Open Brain connector enabled too. This recipe stores structured data in its own tables, but the skill still uses the base search_thoughts and capture_thought tools for hints and summary memory writes.
With both connectors enabled and the skill installed, prompt your AI client:
Use the Work Operating Model workflow to interview me and build my operating model.
The skill should:
- call
start_operating_model_session - run the five layers in order
- show a checkpoint summary after each layer
- wait for your confirmation before saving
- save the layer with
save_operating_model_layer - capture one summary thought through your core Open Brain connector
- run a contradiction pass
- call
generate_operating_model_exports
At the end of a successful run, the MCP server stores and returns:
operating-model.jsonUSER.mdSOUL.mdHEARTBEAT.mdschedule-recommendations.json
These are stored in operating_model_exports, so they still exist even if your client cannot write files locally.
-
start_operating_model_sessionCreate or resume the active interview run. Returns profile status, session status, completed layers, pending layer, session checkpoints, and latest approved checkpoints. -
save_operating_model_layerAtomically upserts the approved layer checkpoint plus canonical entries for that layer, then advances the session to the next layer or review state. -
query_operating_modelReads the latest operating model or a filtered slice bylayer,keyword,cadence,stakeholder,unresolved_only, orfriction_priority. -
generate_operating_model_exportsRenders and stores the final JSON/markdown artifacts after all five layers are approved.
When this recipe is working correctly:
- a first session creates version
1of a structured operating model - pausing after layer 2 and restarting later resumes at the correct pending layer
- each approved layer writes one checkpoint plus canonical entries into the recipe tables
- the skill captures six summary thoughts in your core Open Brain:
- one per layer
- one final synthesis
query_operating_modelcan find things likeMonday planning block,finance email dependency, orhandoff frictiongenerate_operating_model_exportsreturns all five artifact blobs even if no local files are written
Issue: start_operating_model_session says no environment variable is configured
Solution: Verify DEFAULT_USER_ID was set with supabase secrets set DEFAULT_USER_ID=... and redeploy the function if needed.
Issue: The skill can see the recipe connector but not search_thoughts or capture_thought
Solution: This recipe does not replace the core Open Brain server. Re-enable your base connector alongside this one.
Issue: Export generation fails with missing layers Solution: At least one approved checkpoint must exist for each of the five layers. Resume the session and finish the missing layer summaries before exporting.
Issue: Querying by friction priority returns nothing
Solution: friction_priority reads from details.priority, so the saved friction entries need low, medium, or high in that field.
- Feed
USER.md,SOUL.md, andHEARTBEAT.mdinto any agent platform that uses operating files. - Re-run the workflow quarterly or after a major role change to create a new version.
- Use the MCP Tool Audit & Optimization Guide once you add this server so your capture/query/admin tool surface stays manageable.