Back to all skills
Claude Code NativeDifficulty: beginner

/context

Visualise current context window usage as a coloured grid — see what's taking up space and get optimisation suggestions.

Works with:Claude

When to Use

Use when sessions get long, Claude seems to be losing earlier context, or before a /compact to understand what's consuming space.

Usage Example

/context
/context all

Select Model

<skill name="/context">
<purpose>
# /context — Claude Code Built-in Command

## What It Does
Displays a **coloured grid** showing how the context window is being used, with optimisation suggestions.

## Usage
```
/context        # overview grid
/context all    # expanded per-item breakdown
```

## What It Shows
- Total context used vs available
- Breakdown by source (conversation, files, skills, memory)
- Warning indicators when approaching limits
- Suggestions for reducing context (which files to unload, when to /compact)

## Colour Coding
- 🟢 Green: Plenty of space
- 🟡 Yellow: Getting full — consider /compact
- 🔴 Red: Nearly full — act now

## Common Optimisations Suggested
- &quot;Memory file is bloated — edit with /memory&quot;
- &quot;Large file loaded but not recently referenced — consider closing it&quot;
- &quot;Consider /compact — conversation history is 60% of context&quot;

## Pairing
```
/context        # see what's full
/compact        # summarise to free space
/context        # verify improvement
```
</purpose>
</skill>

Related Skills