Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Context?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/xzha0637-design-context)
---
name: context
description: Inspect Antigravity Context Window usage, remaining compaction capacity, 10-category breakdown & cache-drop forensics (`/context`, or when asked about context remaining / bloat / cache drops).
---
# Conversation Context Window & Forensics Inspector (`/context`)
Inspects local Antigravity transcripts (`transcript_full.jsonl` / `transcript.jsonl`) and local customization metadata in read-only mode to show exact context window usage, remaining capacity before auto-compaction, 10-category context proportions, active tool-result bloat, and step-by-step cache-drop diagnostics.
## Instant Mode vs. Interactive Card Mode
- **Instant Zero-LLM Modes (0 LLM calls, 0 thinking, ~40–65 ms)**: Handled automatically by `hooks.json` (`PreInvocation`):
- **`/context` or `/ctx`** (`[zh|en]` `[convPrefix]`): prints the progress bar, remaining tokens, 10-category breakdown, top tool bloat, and anomaly summary right inside Chat.
- **`/context audit`** (`[zh|en]`): prints the Turn-0 startup context bloat audit (per-skill index + full size, per-MCP-server tool catalog, and user rules).
- **`/context handoff`** (`[zh|en]` `[convPrefix]`): packs a secret-masked, paste-ready Session Handoff Brief locally with 0 LLM calls.
- **Interactive HTML/SVG Card Mode (`/context card`, `/context ui`, or natural-language questions)**: Call the MCP tool **immediately without reading any schema file first**:
```json
call_mcp_tool(
ServerName="token-tracker_dashboard",
ToolName="show_context_window",
Arguments={}
)
```
(Optionally pass `{"conversationId": "<uuid-or-prefix>"}` to inspect another conversation.)
- **Always-On Side Panel (`aux_pane`)**: To pin a live auto-refreshing monitor beside Chat (0 LLM latency, refreshes every 4s), tell the user to click **`+` → `Context Monitor`** in the right-hand side panel (or call `open_context_monitor`).
## CLI Fallback
For Antigravity CLI or plain-text environments:
```bash
# Latest active conversation context window & forensics
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context
# Specific conversation by full UUID or prefix
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context 0679ceba
# Structured JSON output
node ~/.gemini/config/plugins/token-tracker/scripts/token_stats.mjs --context --json
```
## Presenting Results (Keep It Fast!)
1. **Skip reading the MCP schema file** — the exact arguments for `show_context_window` are `{}` or `{"conversationId": "..."}`. Call `call_mcp_tool` directly on your very first step!
2. After `show_context_window` renders the interactive inline card, reply in **1–2 concise sentences only** (do NOT repeat the full breakdown table in prose).