Zum Inhalt springen
Skillpedia
Agenten7.6k · #13149

context-xray

Was er macht

Dieser Skill zeigt die Teile des aktuellen Chat-Kontexts eines Agenten und wie viel Platz jeder Teil belegt. Du oder der Agent können wichtige Teile behalten und veraltete ausblenden. Er richtet sich an Menschen, deren lange Chats langsam oder verwirrt werden.

Wann du ihn nutzt

  • ✓Wenn ein langer Chat groß wird und du sehen willst, was den meisten Platz belegt.
  • ✓Wenn ein altes Werkzeugergebnis oder eine Datei nicht mehr relevant ist und ausgelassen werden soll.
  • ✓Wenn eine wichtige Aufgabenbeschreibung oder Vorgabe über den ganzen Chat erhalten bleiben muss.

Link zum Skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Dieser Chat ist sehr lang geworden. Kannst du mir zeigen, was den meisten Platz belegt, und meine Projektanforderungen behalten?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent listet die Teile des Chats mit ihrer Größe auf. Du oder der Agent können einen Teil anheften, um ihn zu behalten, oder ihn für künftige Antworten ausblenden. Ausblenden löscht den Chatverlauf nie.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

  1. Call context-manifest-get with the active threadId.
  2. Sort segments by tokenCount and inspect large stale Tool results or Files read entries.
  3. Call context-pin for essential specs or user instructions.
  4. Call context-evict for large irrelevant segments.
  5. Offer context-restore if the user wants undo.
Häufige Fragen

Löscht das Ausblenden den Chat?

Nein. Ausblenden ist umkehrbar, und der Chatverlauf wird nie gelöscht.

Was bewirkt das Anheften?

Es hält einen Teil des Kontexts über spätere Antworten hinweg, sodass er beim Verdichten des Chats nicht verloren geht.

Kann ich eine Änderung rückgängig machen?

Ja. Das Wiederherstellen eines Abschnitts macht ein Anheften, Ausblenden oder eine Zusammenfassung rückgängig.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
7.6k
Platz im Ranking
#13149
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills