Skip to content
AI & Agents
Skill

/context-xray

Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.

BOOST
From plugin
agent-native
7.1k10 skills3 commands2 MCP
Install
$ npx -y skills add builderio/agent-native --skill context-xray --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/context-xray

Context preview

The summary Claude sees to decide when to auto-load this skill.

Visualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.

SKILL.md

context-xray.SKILL.md
name: context-xray
description: >-
  Visualize local Codex and Claude Code context usage, open a report, flag
  warnings, and suggest prompt/tooling optimizations.
metadata:
  visibility: exported

Context X-Ray

Use Context X-Ray when a local coding-agent thread is getting large or the user wants to understand where context is going.

Setup

Recommended install path:

npx @agent-native/core@latest skills add context-xray --client all

That installs a local `context-xray` command plus Codex/Claude skills and slash commands. It does not need hosted auth or a remote MCP connector to read local transcript files.

Use `--scope project` when you only want project `.agents` skill and command artifacts added to the current repo.

Run

Current or most recent local thread:

context-xray --open

Recent thread picker:

context-xray threads --open

Weekly trends:

context-xray trends --since 7d --open

`--open` opens the generated local HTML file directly in the browser; it does not keep a background server running.

After running, summarize the report link, sessions analyzed, largest context buckets, warnings, and concrete optimizations.

Ships withagent-native

Agent-Native is an open-source TypeScript framework for building agents that pair autonomous work with a purpose-built UI. Define each capability once as an action: the agent uses it as a tool, and the UI calls it from code.

Get the whole plugin

Other skills on agent-native.