From ai-brain
Restore the context of a specific moment — what was happening, what decisions were in flight, what was on your mind. Anchors on a date or event, pulls the timeline window, synthesizes a brief.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-brain:brain-contextThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Restore what was in your head at a specific moment. Given a time reference — a date, range, or event-like phrase — pull a window of thoughts via `timeline_thoughts`, hydrate the most diverse and substantive ones, and produce a cited brief.
Restore what was in your head at a specific moment. Given a time reference — a date, range, or event-like phrase — pull a window of thoughts via timeline_thoughts, hydrate the most diverse and substantive ones, and produce a cited brief.
mcp__ai-brain__search_thoughts, mcp__ai-brain__timeline_thoughts, and mcp__ai-brain__get_thoughts must be available. If not, tell the user to install/update the AI Brain plugin and stop.
$ARGUMENTS — Required, free text:
/brain-context "April 10", /brain-context "last Thursday", /brain-context "2026-04-15"/brain-context "the week of April 15"/brain-context "the week we picked Convex"Determine whether $ARGUMENTS is a parseable date or an event phrase.
Try date parsing first:
2026-04-15, 2026-04-15T10:00) → epoch ms directly.April 10, last Thursday, yesterday) → convert to epoch ms at noon local time of that day.the week of April 15) → use the Monday of that week at noon as the anchor, and widen the before/after values (see Step 2).If date parsing fails, treat as an event-like phrase:
mcp__ai-brain__search_thoughts with query: $ARGUMENTS, limit: 5.April 10) or a phrase from an actual thought." Stop.createdAt as aroundMs and announce: "Anchoring on [summary] from [ISO date] (thought:<id>)."Call the resolved timestamp aroundMs.
Default window sizes:
before: 15, after: 15before: 25, after: 5 (looking back across the week, small look-ahead)Call mcp__ai-brain__timeline_thoughts with:
aroundMs: the resolved timestampbefore: per aboveafter: per abovetype: omit (want everything for context)If the result array is empty, tell the user: "No thoughts captured around [date]. Try a wider range or a different moment." Stop.
From the compact index, select 5-8 thoughts to hydrate, optimizing for diversity:
type values when possible (decision, meeting_note, person_note, idea, task, reference)topics — avoid two thoughts with overlapping topic lists if similar summariespeople mentioned — try to cover multiple collaborators if relevantSkip obvious repeats and low-signal rows (empty topic/people, generic summaries).
Call mcp__ai-brain__get_thoughts with ids: [<5-8 selected IDs>].
Write a markdown brief organized for quick orientation:
## Context: [date or event anchor]
**What was happening**
<1-2 sentence summary of the period's dominant themes, citing 2-3 anchor thoughts as `thought:<id>`.>
**Decisions in flight**
<bullet list of any decisions or choices under consideration — each cited as `thought:<id>`. Omit section if none.>
**People involved**
<bullet list grouping thoughts by the people they mention — e.g. "Emma: hiring conversation (`thought:<id>`), product sync (`thought:<id>`)". Omit if nothing is people-tagged.>
**Projects and topics**
<bullet list grouping thoughts by project/topic — cite each with `thought:<id>`.>
**Open questions from that moment**
<bullet list of questions, uncertainties, or unresolved threads from the hydrated thoughts — each cited as `thought:<id>`. Omit section if none.>
---
**Full window** (for reference):
- `thought:<id>` — <summary> (<date, or just time if all same day>)
- ...
For a single-day anchor, the sections above may collapse — just produce whichever sections have content.
Never write a claim without a citation. If a statement doesn't map to a hydrated thought, remove it.
After the brief, suggest:
/brain-thread thought:<id>."Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub flippyhead/ai-brain-plugin --plugin ai-brain