---
name: cortex-context
description: Automatically hydrate Cortex context at the start of a substantive session. Use when Cortex MCP is available and the user has made a real request, so the first answer is grounded in query-centered org context instead of the static baseline alone.
---

> **Cortex-managed skill.** This file is installed and kept up to date by Cortex. Local edits are
> restored on the next session (a backup of your version is saved alongside). Don't rely on changes here.

## When to use

At the beginning of a work session, once the user has given a real request or question. Skip trivial
chit-chat and requests where org context is obviously irrelevant.

## Steps

1. Call `session_context` with the user's opening request, preserving the actual topic in their words.
2. Use that returned block as the primary Cortex grounding for the first response.
3. If `session_context` is unavailable or errors, fall back to `my_context`.
4. If the conversation materially changes topics later, call `session_context` again for the new topic.

## Safety rules

- Do not fabricate Cortex context if the tool fails.
- Prefer the query-centered `session_context` over static `my_context` whenever the user's topic is clear.
- Do not call `session_context` for every tiny follow-up; refresh only when the topic meaningfully shifts.
