intelligence-route
ما الذي تفعله
تختار هذه المهارة المساعد المناسب ومستوى النموذج الذي يجب أن يعالج المهمة، استنادًا إلى ما نجح سابقًا. وهي مناسبة لمن يريد توزيعًا أفضل للمهام يستطيع فهمه والتحقق منه.
متى تستخدمها
- ✓عندما تكون على وشك بدء مهمة كبيرة وتريد اختيار المساعد المناسب.
- ✓عندما تريد معرفة أي مستوى نموذج يناسب مهمة وسبب ذلك.
- ✓عندما تريد عرض سبب التوجيه لتتحقق من الاختيار.
رابط المهارة
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أي وكيل ونموذج يجب أن يتولى إعادة هيكلة الكود هذه، وهل تستطيع أن تشرح السبب؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تطلب المهارة من أدوات التوجيه وكيلًا ومستوى نموذج موصى بهما، وتفحص أنماطًا سابقة مشابهة، وتحصل على توقع. ثم تشغّل المساعد المختار، وإذا طلبت تعرض السبب. وبعد المهمة تسجل النتيجة لتحسين الاختيارات القادمة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Intelligence Routing
Pick the optimal agent + model tier for a task using learned patterns + the 3-tier router. Emits a hooks_explain rationale so the choice is auditable.
When to use
Before starting any non-trivial task. Replaces manual agent selection with data-driven decisions.
Steps
- Get an agent recommendation —
mcp__plugin_ruflo-core_ruflo__hooks_routewith the task description. Returns{ recommended, confidence, reasoning }. - Get a model tier recommendation —
mcp__plugin_ruflo-core_ruflo__hooks_model-routefor Haiku/Sonnet/Opus selection. - Search for similar past patterns —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-searchto find prior successes. - Predict outcome —
mcp__plugin_ruflo-core_ruflo__neural_predictwith the task description for a confidence-scored prediction. - Spawn the recommended agent at the recommended model tier.
- (If
--whywas passed) — callmcp__plugin_ruflo-core_ruflo__hooks_explainto surface the routing rationale to the user. - After task completes — call
mcp__plugin_ruflo-core_ruflo__hooks_model-outcomewith{ task, model, outcome: "success"|"failure"|"escalated" }to train the router.
3-Tier Model Routing
| Tier | Handler | Latency | Cost | When |
|---|---|---|---|---|
| 1 | Deterministic codemod (TS compiler) | ~1ms | $0 | Structural transforms with no LLM: var-to-const, remove-console, add-logging |
| 2 | Haiku | ~500ms | ~$0.0002 | Low complexity (<30%), bug fixes, quick patches |
| 3 | Sonnet/Opus | 2–5s | $0.003–$0.015 | Complex reasoning, architecture, security, multi-file refactors |
When hooks_route returns [CODEMOD_AVAILABLE] for a deterministic intent (var-to-const, remove-console, add-logging), call mcp__plugin_ruflo-core_ruflo__hooks_codemod with the intent + file — it applies the transform via the TypeScript compiler at $0, no LLM. Note: add-types, add-error-handling, async-await require judgement and route to a model (Tier 2/3) per ADR-143; they are NOT $0 codemods. Agent Booster is a fast-apply merge engine for LLM-produced edits, not the Tier-1 path.
Recording outcomes
Closing the routing loop is mandatory:
# Success (task, model and outcome are all required; model is haiku|sonnet|opus)
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "success"}'
# The model was too small and the work moved up a tier: use "escalated"; use "failure" if it did not work out
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "escalated"}'
The router learns from these calls. Skipping them = no learning.
CLI alternative
npx @claude-flow/cli@latest hooks route --task "description"
npx @claude-flow/cli@latest hooks pre-task --description "description"
npx @claude-flow/cli@latest hooks explain --task "description" --verbose
الأسئلة الشائعة
هل تعرض السبب دائمًا؟
فقط عندما تطلبه بخيار why. وإلا يتم الاختيار دون شرح معروض.
كيف تتحسن مع الوقت؟
بعد كل مهمة تُسجَّل النتيجة كنجاح أو فشل أو تصعيد، وهذا يدرّب الموجِّه.
بين أي مستويات نماذج تختار؟
تختار بين مستويات Haiku وSonnet وOpus، حسب درجة تعقيد المهمة.
التفاصيل
الوصف الأصلي من المؤلف
Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooks_explain
repo: ruvnet/ruflo
الشعبية
- نجوم GitHub
- 81k
- الترتيب
- #1629
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-adaptive-coordinator
81kيساعد وكيلك على تقسيم مجموعة من وكلاء الذكاء الاصطناعي وإعادة توزيعها مع تغير حجم العمل، واختيار تخطيط يناسب المهمة.
agent-agent
81kيعلّم وكيلك أن يحوّل هدفًا كبيرًا إلى خطة مرتبة من الإجراءات، وأن يعيد التخطيط عندما تتغير الظروف.
agent-agentic-payments
81kيساعد وكيلك على إدارة تفويضات الإنفاق للتسوق بالذكاء الاصطناعي، بحدود إنفاق وأطر زمنية وقواعد للتجار وموافقات موقعة.
agent-analyze-code-quality
81kيساعد وكيلك على مراجعة الشيفرة من حيث الجودة، فيجد روائح الشيفرة والديون التقنية واقتراحات إعادة الهيكلة دون تغيير الملفات.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.