context-xray
Qué hace
Esta skill muestra las partes del contexto actual del chat de un agente, con el espacio que ocupa cada una. Permite conservar las piezas importantes y ocultar las obsoletas, por ti o por el propio agente. Es para personas cuyos chats largos se vuelven lentos o confusos.
Cuándo usarla
- ✓Cuando un chat largo crece y quieres ver qué ocupa espacio.
- ✓Cuando un resultado de herramienta o un archivo antiguo ya no es relevante y debe quedar fuera.
- ✓Cuando una especificación o una restricción importante debe mantenerse en todo el chat.
Link de la skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Este chat se ha vuelto muy largo. ¿Puedes mostrarme qué ocupa más espacio y mantener los requisitos de mi proyecto?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente enumera las partes del chat con sus tamaños. Tú o el agente pueden fijar una parte para conservarla, u ocultarla de las respuestas futuras. Ocultar nunca borra el historial del chat.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Context X-Ray
Context X-Ray is the framework's context garbage-collection surface. It shows the current thread's model-bound context as content-derived segments with token counts, then lets the user or agent pin, evict, or restore individual segments.
Actions
| Action | When to use |
|---|---|
context-manifest-get |
Read the current manifest for a thread. Returns token totals, segment status, source, and whether changes are enforceable. |
context-preview-get |
Compose the would-be system context for the current user/org/app without a live thread. Returns labeled system sections with provenance, governance tier, token counts, and bounded previews. Backs the Agent page Context tab. |
context-pin |
Preserve a segment across future compaction/model calls. Use for task specs, acceptance criteria, user constraints, and other durable context. |
context-evict |
Exclude a stale or irrelevant segment from future model calls. Eviction is reversible and never deletes chat history. |
context-restore |
Undo a pin, evict, or summarize directive for a segment. |
context-report |
External hosts can report their visible context inventory. These manifests are advisory unless Agent-Native owns the emitted content. |
context-compact |
Compact the thread now: fold every not-yet-compacted message into observational memory instead of waiting for the post-turn threshold. Takes effect on the next model call; the transcript is unchanged. |
System Sections
Manifests now cover the system-prompt half of context, not just conversation
segments. Each system section carries a provenance label (framework-core,
actions-prompt, template, enterprise-workspace-core, sql-workspace,
legacy-app-default, organization, personal, memory, db-schema, tools,
model-overlay, runtime-context) and a governance tier:
required— framework/enterprise policy; can never be altered by the user.inherited— template/org/workspace instructions; managed elsewhere, visible here.user— personal instructions and memory; editable through Files.
System sections are display-only provenance: they cannot be pinned, evicted,
or summarized. The persisted manifest stores source refs, scope, content
hashes, token counts, and bounded previews (~200 chars) — never raw prompt
bodies; full content stays behind the resource/access model. The in-chat
X-Ray panel groups these under "System", and the Agent page Context tab
renders the full breakdown (via context-preview-get) with a
system-vs-conversation split meter. Manifests are the latest snapshot per
thread; there is no per-iteration history.
Rules
- Never evict or summarize protected segments. The manifest marks active-turn
user/tool/thinking context as
protected. - System sections are never evictable; required/inherited tiers are locked by design — do not present controls that imply otherwise.
- Prefer pinning the user's task, requirements, and decisions before evicting large stale tool results.
- Eviction excludes content from future model calls; it does not delete the canonical transcript or files.
- In external/advisory mode, be honest: recorded directives are intent for the host except for Agent-Native-originated content we can actually withhold.
- If token counts are estimated, describe reclaim as approximate.
Typical Flow
- Call
context-manifest-getwith the activethreadId. - Sort segments by
tokenCountand inspect large staleTool resultsorFiles readentries. - Call
context-pinfor essential specs or user instructions. - Call
context-evictfor large irrelevant segments. - Offer
context-restoreif the user wants undo.
Preguntas frecuentes
¿Ocultar una parte borra el chat?
No. Ocultar es reversible, y el historial del chat nunca se borra.
¿Qué hace fijar?
Mantiene una parte del contexto en respuestas posteriores, de modo que no se descarte al compactar el chat.
¿Puedo deshacer un cambio?
Sí. Restaurar un segmento deshace un fijado, un ocultado o un cambio de resumen.
Detalles
Descripción original del autor
Inspect and manage the live agent context window with Context X-Ray. Use when context is getting large, the user asks what is in context, or stale tool results/files should be pinned, evicted, restored, or reported by an external host.
repo: BuilderIO/agent-native
Popularidad
- Estrellas en GitHub
- 7,6 mil
- Posición en el ranking
- #13149
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
design-exploration
7,6 milAyuda a tu agente a explorar varias direcciones de diseño de interfaces una al lado de otra, dejar que elijas una y después afinar el diseño elegido.
visual-edit
7,6 milAyuda a tu agente a abrir una aplicación local en marcha en un editor visual, para que reviséis y editéis juntos sus pantallas reales.
turn-into-app
7,6 milConvierte un flujo de trabajo, una hoja de cálculo o un proyecto en una aplicación visual pulida, con pantallas llenas de datos y un agente que trabaja tras los controles.
visual-plan
7,6 milConvierte un plan escrito en texto plano en un plan visual interactivo, con diagramas, mapas de archivos, fragmentos de código y preguntas abiertas.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.