Brain Contextualize
Orient before substantive work without dumping the vault into context.
Preconditions
- Invoke
brain through the host's native skill loader and retain the exact base directory it returns for foundation resources. Do not list or search parent skill directories, read SKILL.md directly, or probe alternate config locations.
- Confirm the configured vault and primary context exist.
- Remain read-only. Reading never changes
updated: or access metadata.
Procedure
- Read root
index.md. It is a control-plane router, not a memory payload.
- Read
startup.primaryContext, normally wikis/<user>/_<user>.md.
- Resolve the active context in this order: explicit task path/name, discussed file path, Git root, workspace root, then non-generic current-directory basename.
- Match the identity against
projects/, workspaces/, wikis/, and tools/. Read the relevant class router only when registration/status is needed.
- Read only the resolved
_<slug>.md entry point.
- If a project belongs to workspaces, load a workspace entry only when the task is cross-project, starts at the workspace root, or explicitly concerns that hub.
- If an entry declares relevant wiki context, load only that wiki entry point. Area notes remain on demand.
- Delegate task-specific decisions, gotchas, code style, or history to
brain-recall.
Identity Rules
Do not treat generic containers such as src, source, code, projects, repos, workspace, workspaces, tmp, a username, or a home directory as nodes. If a project-specific task remains ambiguous after explicit paths/names are considered, ask for the repository or node identity.
An unknown context is not created during orientation. Use brain-build when substantial durable onboarding is warranted or brain-remember after a bounded node is otherwise established.
Bounds
- Do not load every workspace member.
- Do not load every project companion, global collection, or wiki area.
- Do not search a repository merely to perform brain orientation.
- Do not write, repair, register, or refresh memory.
- Treat stale context as a hypothesis and verify it during the task.
Run silently unless the task explicitly asks about contextualization behavior or identity is ambiguous.
1---2name: brain-contextualize3description: Load bounded current context from the configured brain. Use automatically on turn one, after compaction, and when the active wiki, project, workspace, person, or tool changes. Resolves identity and reads only startup routers and relevant entry points. Read-only; do not use for targeted history recall, writes, cleanup, synthesis, or repository onboarding.4---56# Brain Contextualize78Orient before substantive work without dumping the vault into context.910## Preconditions11121. Invoke `brain` through the host's native skill loader and retain the exact base directory it returns for foundation resources. Do not list or search parent skill directories, read `SKILL.md` directly, or probe alternate config locations.132. Confirm the configured vault and primary context exist.143. Remain read-only. Reading never changes `updated:` or access metadata.1516## Procedure17181. Read root `index.md`. It is a control-plane router, not a memory payload.192. Read `startup.primaryContext`, normally `wikis/<user>/_<user>.md`.203. Resolve the active context in this order: explicit task path/name, discussed file path, Git root, workspace root, then non-generic current-directory basename.214. Match the identity against `projects/`, `workspaces/`, `wikis/`, and `tools/`. Read the relevant class router only when registration/status is needed.225. Read only the resolved `_<slug>.md` entry point.236. If a project belongs to workspaces, load a workspace entry only when the task is cross-project, starts at the workspace root, or explicitly concerns that hub.247. If an entry declares relevant wiki context, load only that wiki entry point. Area notes remain on demand.258. Delegate task-specific decisions, gotchas, code style, or history to `brain-recall`.2627## Identity Rules2829Do not treat generic containers such as `src`, `source`, `code`, `projects`, `repos`, `workspace`, `workspaces`, `tmp`, a username, or a home directory as nodes. If a project-specific task remains ambiguous after explicit paths/names are considered, ask for the repository or node identity.3031An unknown context is not created during orientation. Use `brain-build` when substantial durable onboarding is warranted or `brain-remember` after a bounded node is otherwise established.3233## Bounds3435- Do not load every workspace member.36- Do not load every project companion, global collection, or wiki area.37- Do not search a repository merely to perform brain orientation.38- Do not write, repair, register, or refresh memory.39- Treat stale context as a hypothesis and verify it during the task.4041Run silently unless the task explicitly asks about contextualization behavior or identity is ambiguous.