context-xray
ما الذي تفعله
تُظهر هذه المهارة أجزاء سياق المحادثة الحالي لدى الوكيل، مع المساحة التي تشغلها كل جزء. تتيح لك أو للوكيل الاحتفاظ بالأجزاء المهمة وإخفاء الأجزاء القديمة. وهي مخصصة للأشخاص الذين بدأت محادثاتهم الطويلة تبطؤ أو تختلط.
متى تستخدمها
- ✓عندما تكبر المحادثة الطويلة وتريد معرفة ما يشغل المساحة.
- ✓عندما لم تعد نتيجة أداة قديمة أو ملف ذات صلة وينبغي استبعادها.
- ✓عندما يجب الاحتفاظ بمواصفة مهمة أو قيد أساسي عبر المحادثة كلها.
رابط المهارة
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هذه المحادثة أصبحت طويلة جداً. هل يمكنك أن تريني ما يشغل أكبر مساحة، وأن تحتفظ بمتطلبات مشروعي؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يسرد الوكيل أجزاء المحادثة مع أحجامها. يمكنك أنت أو الوكيل تثبيت جزء للاحتفاظ به، أو إخفاؤه من الردود القادمة. ولا يحذف الإخفاء أبداً سجل المحادثة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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.
الأسئلة الشائعة
هل يحذف الإخفاء المحادثة؟
لا. الإخفاء قابل للتراجع، ولا يُحذف سجل المحادثة أبداً.
ماذا يفعل التثبيت؟
يحتفظ بجزء من السياق عبر الردود اللاحقة، فلا يُسقط عند ضغط المحادثة.
هل أستطيع التراجع عن تغيير؟
نعم. استعادة المقطع تلغي التثبيت أو الإخفاء أو تغيير الملخص.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 7.6k
- الترتيب
- #13149
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
design-exploration
7.6kيساعد وكيلك على استكشاف عدة اتجاهات تصميم لواجهة المستخدم جنباً إلى جنب، ثم تختار أنت واحداً، ويحسّن الوكيل التصميم المختار.
visual-edit
7.6kيساعد وكيلك على فتح تطبيق محلي يعمل في محرر مرئي، لتراجع شاشاته الحقيقية وتحررها معاً.
turn-into-app
7.6kيحوّل سير عمل أو جدول بيانات أو مشروعاً إلى تطبيق مرئي مصقول، فيه شاشات مملوءة بالبيانات ووكيل يعمل خلف أدوات التحكم.
visual-plan
7.6kيحوّل خطة نصية عادية إلى خطة مرئية تفاعلية فيها مخططات وخرائط ملفات ومقتطفات كود وأسئلة مفتوحة.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.