refocusing
ما الذي تفعله
تساعد هذه المهارة وكيل ذكاء اصطناعي يعمل لفترة طويلة على استعادة توجهه نحو الهدف، حين يُضغط سياقه أو يتجاوز معلمًا كبيرًا. وهي موجهة للوكلاء الذين يعملون في جلسات عمل ممتدة.
متى تستخدمها
- ✓عندما يكون وكيل يعمل لفترة طويلة قد فقد الرؤية لنتيجة المنتج.
- ✓عندما ضُغط سياقه ويحتاج إلى تتبع جديد قبل أن يتصرف.
- ✓عندما يكون العمل قد تجاوز حدًا كبيرًا ويحتاج الفعل التالي المهم إلى أساس واضح.
رابط المهارة
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“نحن منذ ساعات في هذا العمل وضُغط سياقي. أعدني إلى نتيجة المنتج قبل أن أجري التغيير التالي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تشغّل نصًا برمجيًا مرافقًا لتتبع الطوبولوجيا والعمل الحالي، ثم تقرأ المصادر ذات الصلة كاملة، وتسجل إعادة التوجيه كي يتصرف الوكيل وفق النية الحالية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Refocusing
Invoke the skill as refocusing, its frontmatter name. OpenRig seeds it in the
Claude and Codex global skill roots and includes selected plugin skills in managed
loadouts. Existing externally managed copies remain authoritative. If the harness
has not discovered it yet, read this installed skill file and run its script directly;
hook registration alone does not prove native skill discovery.
Refocus preserves a long session's earned expertise while re-grounding it in current intent and lived context. It is not a restart, wake, or phase checkpoint.
During an actionable managed restore, consume the current topology and work trace that actually arrived with the request. Do not rerun Python merely to duplicate it. If no current trace arrived, name that delivery gap. A packet pointer, compact summary or truncated extract is not a full source read. Use the native file-read tool for required notes and full sources, and complete the existing restore audit; partial file reads do not establish completed refocus or restoration.
For a new trace outside that delivered context, follow the command guidance below.
Resolve the bundled script's absolute path from the directory of this loaded skill.
Stay in your current working directory; do not cd into the skill directory, which
can change the inferred work node. Run the trace as one plain command, replacing
the example path with the actual absolute path written out in the tool call:
python3 "/absolute/path/to/refocusing/scripts/trace-to-root.py" --trees both --depth light
Do not combine this command with shell variables, environment assignments, command substitution, exit-status printing or file-reading loops. Read the named source files separately with the native read tool. Combined shell loops or variables can require native approval even when the intended operations are read-only; a plain command is not a guarantee that approval will never be needed.
For managed compaction, refocus during the restore request or its read-depth audit. The earlier acknowledgement-only boundary is not permission to restore.
Use --trees topology|work|both to select context domains and --depth light|full to control how
much each node contributes. Light work traces compose intent: and name notes; full traces include
the complete node and notes bodies. The script resolves topology.root and workspace.root with
rig config get. When a known current node must be supplied, pass --work-start or
--topology-start with its literal absolute path in the same plain command. Do not
substitute the project root for a mission or slice node and claim that mission was traced.
The trace walks the topology and work trees. For the project's own declared context (intent, context files,
skills), rig context work-install lists it; read what the next action needs.
Read references/refocus.md when changing the automatic hook or its content ladder. A missing chain file is evidence: report the gap and continue; never follow pointers to invent a second parent.
الأسئلة الشائعة
هل هذا هو نفسه إيقاظ وكيل خامل؟
لا، تقول المهارة إن إعادة التوجيه ليست إعادة تشغيل ولا إيقاظًا ولا نقطة تفتيش للمرحلة.
هل تعيد تشغيل النصوص في كل مرة؟
لا، أثناء الاستعادة المُدارة تستخدم التتبع الذي وصل بالفعل، ولا تشغّل تتبعًا جديدًا إلا إذا لم يصل أي تتبع.
هل يكفي ملخص قصير بدل القراءة الكاملة؟
لا، تقول المهارة إن مؤشر الحزمة أو الملخص المختصر ليس قراءة كاملة للمصدر.
التفاصيل
الوصف الأصلي من المؤلف
Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.
repo: mvschwarz/openrig
الشعبية
- نجوم GitHub
- 8.6k
- الترتيب
- #12395
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-operated-software
8.6kيساعد وكيلك على تصميم تطبيق مستمر أو بناءه أو تصحيحه، يعمل فيه وكلاء الذكاء الاصطناعي ضمن الخادم الخلفي، مع مستوى تحكم بملفات Markdown أو JSON.
agent-operated-workflows
8.6kيساعد وكيلك على تحديد هل يشغّل وكيل الذكاء الاصطناعي إجراءً محددًا أم كود برمجي عادي، وكيف يستأنفه من أدلة موثّقة.
applying-a-permission-policy
8.6kيساعد وكيلك على ضبط أذونات الأوامر التي يستخدمها وكيل البرمجة أثناء إعداد الفريق، لتعمل الأوامر الروتينية بعدد أقل من طلبات الموافقة.
claude-compaction-restore
8.6kيساعد وكيل Claude Code على إعادة بناء صورة عمله بعد ضغط سياقه، باستخدام خريطة استعادة محفوظة وسجل المحادثة والملفات التي لمسها.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.