BuilderIO/agent-native / skills/context-xray
context-xray
VerifiedVisualize local Codex and Claude Code context usage, open a report, flag warnings, and suggest prompt/tooling optimizations.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
SKILL.md
View on GitHub---
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:
```bash
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:
```bash
context-xray --open
```
Recent thread picker:
```bash
context-xray threads --open
```
Weekly trends:
```bash
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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |