Setup routines

From real-simple-labs/parker-brain · View interactive version

Setup routines is an AI agent skill from the GitHub repository real-simple-labs/parker-brain. Arms the brand brain's standing routines (refresh-context, dream, harvest+evaluate ideas, research-loops, update-brain, self-improve) as scheduled cloud agents so they run on cadence without being asked. The job definitions already travel with this repo; this skill registers the schedules, which are

How to use this skill

Skill file

Setup routines — arm the schedules

The routine jobs (/refresh-context, /dream, /harvest-ideas, /evaluate-ideas, /research-loops, /update-brain, /self-improve) already travel with this repo and are live wherever the folder lands. What does not travel is the schedule — cron cloud agents are bound to an individual account and can't travel with the folder. This skill registers them for this instance.

How it works

For each routine below, create a scheduled cloud agent (a "routine") whose prompt gets the brain through the Parker MCP and runs the corresponding skill in that copy (step 2 has the exact prompt). Use the /schedule skill / command to create each one (it manages the cron cloud agents). The cadence and the exact prompt for each are also recorded in ../schedules/*.md — those schedule docs are the canonical recipe; this skill is the guided installer.

This skill runs two ways. Build mode — the onboarding build invokes it at the stamp step: register all six routines at the default cadences below with no questions asked, using the user's timezone when the session already knows it (from intake or the account) and the suggested times otherwise. The build's go-ahead covers the consent and the build's finish carries the disclosure, so don't re-ask here. Guided mode — a person invokes it: before registering, confirm their timezone, which routines they want, and that the instance's data sources (Parker MCP server, web tools) are connected — a scheduled run can only do what the connected tools allow.

Check the scheduling capability before either mode. These recipes register Claude Code cloud schedules. In Codex, record scheduling as deferred in the build record or routine digest, leave unregistered recipes inactive, explain that the skills work on demand, and return successfully to onboarding. Do not attempt /schedule there or block build completion. A team's external cron is separate setup; before any headless job relies on hooks, trust the project and approve its hooks interactively. The contract is parker-system/system/codex-support.md.

Say what it costs — plainly, once, at the right moment. Every scheduled run is a real Claude Code session doing real reading and writing, and it draws from the same usage as everything else on the account — the plan's usage limits on a subscription, per-token billing on an API account. Six routines with dreaming daily is a meaningful standing draw, and dreaming is the biggest single driver. In guided mode, say this before registering and let it shape their picks — turning dreaming down to a few days a week, or starting with a subset, is a perfectly good answer. In build mode, don't interrupt the build with it, but make sure the finish's disclosure sentence carries it: what's running, when, that it consumes usage on this account, that the routines can save only from a cloud environment with full network access (or git.heyparker.ai allowed), and that /setup-routines changes the cadence or turns any routine off.

The routines to register

| Routine | Skill | Cadence | Suggested cron |

|---|---|---|---|

| Context refresh | /refresh-context | Weekly | Mon 06:00 |

| Dreaming | /dream | Daily | 05:00 daily |

| Idea cycle | /harvest-ideas then /evaluate-ideas | Weekly | Mon 07:00 |

| Research cycle | /research-loops | Weekly | Wed 06:00 |

| Standard updates | /update-brain | Weekly | Mon 05:30 |

| Self-improvement | /self-improve | Weekly | Fri 16:00 |

Times are suggestions — confirm against the user's timezone and working rhythm. Dreaming runs earliest so its proposals are ready for a morning suggestion; the research cycle runs mid-week so Monday's refresh feeds it and its findings are fresh for Friday; self-improve runs end-of-week so it can dispose of the week's dreaming and research proposals and freshly captured traces.

Steps

  1. Confirm prerequisites (guided mode only) — timezone, connected MCP/web tools, and that the user wants all six (or a subset). Build mode skips this step and registers the full set at the defaults.
  1. Register each routine via /schedule, one per row above: all six in build mode, and in guided mode only the ones the user picked in step 1. Prefix every schedule's name with the brand — "[brand]: dream", "[brand]: standard updates" — because schedules are account-level, and an account running two brand brains would otherwise hold two indistinguishable "dream" jobs; the prefix is also what the reconcile step matches on. For the idea cycle, schedule a single weekly agent that runs /harvest-ideas then /evaluate-ideas in sequence.

The steps that touch the key or Parker's git server (key, clone, save) run through the factory's scripts/cloud-run-git.py, and the factory's .claude/settings.json allows exactly those. So auto mode's safety check judges none of them, in the run or in the session that creates the routine, and the prompt carries no key command of its own (v27, v33; the reasons are in parker-system/system/brain-sync.md).

> This is a scheduled cloud run for the Parker Brain of [brand] (brand_id [brand_id]). No Parker Desktop runs here, so you get the brain and save it yourself. From this session's folder (a checkout of Parker's factory), and even if this session started in another copy of the brain:

> 1. Run scripts/cloud-run-git.py key [brand_id]. It prints a hash.

> 2. Call the Parker MCP tool register_parker_brain_git_credential with that brand_id, and the hash as credential_sha256.

> 3. Run scripts/cloud-run-git.py clone <git_url> [brand_id] with the git_url the tool returns. It prints the folder of the new copy. A big brain takes several minutes: give the command a long timeout (10 minutes) and wait until it prints the folder.

>

> Work only inside the new copy, and never change this session's folder: read the copy's CLAUDE.md, and run the job below by following its skill in .claude/skills/. When you are done, save from this session's folder with scripts/cloud-run-git.py save <folder> -m "<what changed>", using the folder clone printed: it commits, takes in what others saved in the meantime, and pushes straight to main of that copy, which you have permission to do. If it says your changes clash with what someone else saved, combine the files it names in the copy and run the same save command again. You must not create a branch. If you can't get the brain, say so plainly and stop.

>

> Run the /dream routine for this brand brain. Follow the skill exactly; propose, never apply.

The job line stays minimal, letting the committed SKILL.md carry the method; each schedule's recipe in ../schedules/ has its own.

  1. Verify — list the scheduled routines back to the user with their next-run times, and confirm each points at the right skill.
  2. Record — note in each ../schedules/[slug].md that the schedule is registered for this instance (status: active, plus who registered it and when, and "saves in a cloud run (v26)" when its prompt starts with the cloud-run preamble above, the v26 one or this one; the new line replaces the old one, a "needs re-arm" note included), so the schedule doc reflects reality and a teammate's later /setup-routines run can see the routines are already owned. The files save and sync like any other change (a self-managed team commits them).

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.