Claude Code NativeĐộ khó: beginner
/context
Visualise current context window usage as a coloured grid — see what's taking up space and get optimisation suggestions.
Dùng được với:Claude
Khi nào dùng
Use when sessions get long, Claude seems to be losing earlier context, or before a /compact to understand what's consuming space.
Ví dụ sử dụng
/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 - "Memory file is bloated — edit with /memory" - "Large file loaded but not recently referenced — consider closing it" - "Consider /compact — conversation history is 60% of context" ## Pairing ``` /context # see what's full /compact # summarise to free space /context # verify improvement ``` </purpose> </skill>