Refresh context

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

Refresh context is an AI agent skill from the GitHub repository real-simple-labs/parker-brain. Keep the brand brain from going stale. Reads running-notes/refresh-schedule.md and each standing doc's refresh_by frontmatter, surfaces what is overdue or due soon, walks the Phase 1→2→3 dependency spine to catch docs made stale by upstream changes even when their own date is fine, and re-runs the g

How to use this skill

Skill file

Refresh context — keep the brain from going stale

A context doc is a photograph of a moving thing. The ad account moves weekly, reviews pile up, a competitor enters, the brand relaunches. Every standing doc carries a refresh_by date; this routine watches those dates so a stale doc gets re-run instead of quietly being trusted past its shelf life. It does not silently re-run without surfacing the recommendation first.

When it runs

Weekly as a scheduled check. The check is cheap — it only re-runs docs that are actually due. Most weeks it surfaces a short list; some weeks nothing is due.

The freshness mechanism

Every context doc stamps two frontmatter fields: generated_on (the day it was produced, from get_current_time, or in Claude Code the session's own date) and refresh_by (generated_on + the doc type's cadence). One aggregated view lives at running-notes/refresh-schedule.md — the file to watch. It is a view over the per-doc stamps, not a second source of truth; when the two disagree, the doc's own frontmatter wins and the schedule line is corrected.

The cadence by doc type (the dials)

Triggers that override the calendar (refresh early)

A rebrand or repositioning, a new SKU/line/launch, a pricing move (the brand's or a key competitor's), a meaningful jump in the review corpus or a new review surface, a new competitor entering or one exiting, an attribution/account-structure change that breaks comparability, or a validated finding that changes the read the doc rests on.

Dependency staleness — the phase spine

A doc can be stale while its own date is fine, because what it was built from moved. The three phases are a dependency chain and freshness flows down it: Phase 1 (audits, foundation sub-context docs, personas, voice-of-customer, competitors) → Phase 2 (the four strategy inputs → the strategic roadmap) → Phase 3 (idea evaluation, briefs). When an upstream doc's read materially changes on a re-run, every downstream doc synthesized from it is stale-by-dependency regardless of its calendar date. The edges: a Phase-1 change hits the Phase-2 strategy input(s) that rest on it; any Phase-2 strategy input change hits the strategic-roadmap; a roadmap change makes idea-evaluation due. The two event-driven rules above (brand-profile-narrative, idea-evaluation) are the same principle. See parker-system/system/refresh-cadence.md for the doctrine.

Process

  1. Read the schedule. Open running-notes/refresh-schedule.md. If it is missing (a fresh brain may not have one yet), build it: walk every standing doc, read its generated_on / refresh_by frontmatter, and write one line per doc grouped by cadence tier. This becomes the file watched from here on.
  2. Compare to today. Read today from get_current_time (in Claude Code, the session's own date). Mark each doc overdue, due soon (within ~2 weeks), or fresh. Then scan for fired override triggers — if one has fired, the doc is due regardless of its date.
  3. Walk the phase spine for dependency staleness. After the date pass, check the Phase 1→2→3 chain: for each downstream doc (the four Phase-2 strategy inputs, the strategic-roadmap, idea-evaluation), read the generated_on of the upstream docs it was built from. If any upstream is newer than the downstream and that upstream's last re-run materially changed the read — not a carry-forward-unchanged refresh — the downstream is stale by dependency, regardless of its own date. Judge materiality by reading the two versions, not by the file's timestamp alone; a touched-but-unchanged upstream does not cascade. This is what catches a roadmap built on a performance read that has since moved.
  4. Surface before acting. List what is overdue / due-soon / stale-by-dependency with one line each — "your performance read is from March and it's now June; want me to refresh it?" or "the messaging strategy input predates the customer-review audit that just changed the read it rests on." Name the reason (date vs dependency) so the recommendation is legible. In an interactive run, wait for the go-ahead. In a scheduled run, refresh the overdue-and-material set automatically and report what was done and why.
  5. Re-run each due doc, and note whether the read changed. A refresh is a re-run of the generating prompt, not a patch. The prompt lives in this brain at parker-system/prompts/<path>.md (or in the brain's own root prompts/ folder, for generators the brain authored itself per growing-the-brain) — it travels with the brain for exactly this, so re-run the doc's own generating prompt rather than improvising a regeneration. Take the prior version as context, carry forward what is still true, re-read the live sources the doc rests on (Parker MCP reads, the brand's own surfaces, web), and re-stamp generated_on and refresh_by. Honor the brand hard rules and load the parker-system/creative-strategy-context/ docs the doc type requires per the routing table in CLAUDE.md, including the brand lens overlay.
  1. Update the schedule line for every doc re-run, so refresh-schedule.md stays a true aggregate. When a re-run materially changed the read, note that on the line — it is the signal the phase-spine walk reads next cycle to decide whether downstream docs cascade.
  2. Refresh the folder indexes. If a refresh added, removed, or materially changed a competitor profile or an audit, regenerate that folder's INDEX.md (competitors/INDEX.md, audits/INDEX.md) — one line per doc (the folder's README.md is not one), filename plus what it is, newest audit noted as the present tense. These are the generated maps the always-loaded brand-profile.md points to so the planner can see everything in the growing folders without the one-pager enumerating it. Keep them in sync with the folder; they are pointers, never restated findings.
  3. Close the loop. If a refresh surfaced something new — a shift the old read missed — capture it as an open loop in open-loops/ for the next roll-up, and note any idea worth keeping for harvest-ideas.
  4. Log the run. Prepend one entry to running-notes/routine-log.md (create it from parker-system/templates/routine-log-template.md if it does not exist yet): the date and time, refresh-context, whether the run was scheduled or manual, what was checked (docs against refresh_by plus the phase spine), what was re-run and re-stamped, what was left fresh, and anything surfaced. This is the append-only history — never overwrite it, and never overwrite the due-date view in refresh-schedule.md with it; they are two different files. It is what proves the weekly routine actually fired and what it did each week.

Hard rules

Deliverable

The due docs re-run and re-stamped, running-notes/refresh-schedule.md updated, one entry appended to running-notes/routine-log.md, and a short report of what was refreshed, what was left (and why) — separating date-overdue from stale-by-dependency — and any open loops or ideas the refresh surfaced.

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.