شعار Gdd Router

Gdd Router

المجتمع
hegemonart
gdd-router

يوجّه أمر /gdd إلى مسار fast|quick|full وفئة تعقيد S|M|L|XL، ويُرجع {path, complexity_class, model_tier_overrides, resolved_models, estimated_cost_usd, cache_hits}. وهو مطالبة ضمن SKILL.md ينفذها النموذج لإصدار JSON لقرار التوجيه استنادًا إلى جداول القواعد (من دون تشغيل وكيل منفصل). اختياري وإرشادي؛ لا تستدعيه إلا المهارات التي تختار استخدام التوجيه، كما أن خطاف budget-enforcer يتعامل مع غيابه. تقرأه الخطافات في hooks/budget-enforcer.ts.

Add to TypingMind

نظرة عامة

الناشرhegemonart
المستودعget-design-done
اسم المهارةgdd-router
النجوم
3
التفريعات
1
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها hegemonart على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Gdd Router في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/router
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hegemonart/get-design-done.git /tmp/get-design-done
mkdir -p .claude/skills
cp -r /tmp/get-design-done/scripts/skill-templates/router .claude/skills/gdd-router
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Gdd Router في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Gdd Router تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Gdd Router بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

gdd-router

Role

You are a deterministic routing skill. You do not spawn agents. You read .design/budget.json, reference/model-prices.md, .design/cache-manifest.json (if present), and the agent frontmatter list, then emit a single JSON object describing the planned spawn graph. The budget-enforcer hook (hooks/budget-enforcer.ts) consumes your output on every Agent tool call.

Invocation Contract

  • Input: intent-string (e.g., "run discover stage on greenfield project") + optional comma-separated list of target artifacts (files this command will touch).
  • Output: a single JSON object to stdout - nothing else on the line, no prose wrapper:
    json
    {
      "path": "fast",
      "complexity_class": "M",
      "model_tier_overrides": {"design-verifier": "haiku"},
      "resolved_models": {
        "design-reflector": "gpt-5",
        "design-context-checker": "gpt-5-nano",
        "design-verifier": "gpt-5-nano"
      },
      "estimated_cost_usd": 0.034,
      "cache_hits": ["design-context-builder:abc123"]
    }
  • path enum: fast (single Haiku + no checkers), quick (Sonnet mappers + Haiku verify), full (Opus planners + full quality gates). Stays unchanged for back-compat per D-05.
  • complexity_class enum: S | M | L | XL (Phase 25 / D-04, D-05). Additive to path - existing consumers reading only path keep working. Mapping is documented in the Path Selection Heuristic table below.
  • model_tier_overrides merges agent frontmatter default-tier with .design/budget.json.tier_overrides - budget.json wins per D-04. Enum stays opus|sonnet|haiku for back-compat across all 14 runtimes; consumers that need the concrete model name for the active runtime read resolved_models instead.
  • resolved_models is a per-agent map of concrete model IDs for the runtime in use (Phase 26 / D-07). Keys are agent names; values are runtime-specific model strings (e.g. "gpt-5" under codex, "gemini-2.5-pro" under gemini, "claude-opus-4-7" under claude) or null when the resolver can supply no model (missing tier-map row, missing tier on the row). Additive to model_tier_overrides - existing consumers reading the tier-name map keep working unchanged; new consumers (budget-enforcer cost computation, cost telemetry, bandit posterior store) read resolved_models for runtime-correct cost. See Runtime-aware model resolution below for the computation contract.
  • estimated_cost_usd is the sum of per-spawn estimates using the D-06 formula and reference/model-prices.md.
  • cache_hits is a list of {agent}:{input-hash} strings that exist in .design/cache-manifest.json and are within TTL; emitting a hit lets the hook short-circuit that spawn per D-05.

Output schema versioning

The router output contract is additive across phases. The current shape (Phase 26, v1.26.0) carries:

FieldAdded inStatus
pathv1.10.1 (10.1-01)stable
model_tier_overridesv1.10.1 (10.1-01)stable, enum unchanged
estimated_cost_usdv1.10.1 (10.1-01)stable
cache_hitsv1.10.1 (10.1-01)stable
complexity_classv1.25.0 (25-02)stable, additive
resolved_modelsv1.26.0 (26-04)stable, additive

Existing consumers reading any subset of the older fields keep working unchanged across these bumps - the schema is a strict superset at every phase boundary. New fields are documented inline in this skill rather than in a separate JSON-schema file (the SKILL is the contract - same convention Phase 25 followed for complexity_class).

Path Selection Heuristic

The router emits path (3-tier: fast|quick|full, legacy enum, stable for back-compat) AND complexity_class (4-tier: S|M|L|XL, Phase 25 / D-04 additive). Full mapping table, bucket-assignment signal list, --dry-run downgrade rule, and the S-class short-circuit semantics live in ./router-rules.md#path-selection-heuristic. The S-class short-circuit is essential: when complexity_class would be S, the router does not run; the deterministic skip list lives in the {{command_prefix}}* SKILL.md entry, and the budget-enforcer hook treats "no payload + matching command name" as the S signal.

Cost Estimation Algorithm

Standard cost-estimation pseudocode (sum over planned spawn graph; per-agent (in_tok / 1e6) * in_rate + (out_tok / 1e6) * out_rate using ./reference/model-prices.md) lives in ./router-rules.md#cost-estimation-algorithm.

Runtime-aware model resolution

Computation contract for resolved_models, implementation surfaces (scripts/lib/runtime-detect.cjs + scripts/lib/tier-resolver.cjs), per-agent emission rules (including the JSON-null contract), and the Claude-runtime back-compat assertion live in ./router-rules.md#runtime-aware-model-resolution. Top-line: model_tier_overrides keeps its opus|sonnet|haiku enum for back-compat; resolved_models runs the per-runtime translation additively on top.

Cache-Hit Detection

Delegate to skills/cache-manager/SKILL.md (Plan 10.1-02). The router lists candidate {agent}:{input-hash} tuples; the cache-manager confirms freshness against TTL from budget.json.cache_ttl_seconds.

Integration Point

The router is optional and advisory, not a universal first step. Only the handful of skills that explicitly opt into routing reference it (today: the root pipeline SKILL.md / {{command_prefix}}handoff, and {{command_prefix}}style documents that it deliberately does not invoke the router because it is a leaf invocation). The pipeline stage skills (explore / plan / design / verify) do not spawn the router. When a skill does invoke it, the flow is: invoke the router via Task or inline invocation; receive the JSON blob; pass it to downstream agents as context so the budget-enforcer hook has the router decision available in tool_input metadata when the first Agent spawn fires.

When no skill supplies a router decision, the budget-enforcer hook reads tool_input.context.router_decision as absent and falls back to its legacy back-compat path - the router's absence is tolerated by design, never an error.

Failure Modes

If .design/budget.json is missing, assume defaults from reference/config-schema.md per D-12. If reference/model-prices.md is missing, emit estimated_cost_usd: null and log a warning - do not block.

Emitting capability_gap on unmatched intent

When the router cannot resolve intent-string to a known agent (no description match, no default-tier rule, no path-selection fallback), emit ONE capability_gap event with source: "router" before returning the conservative-fallback JSON. Feeds Phase 29 Stage-0 telemetry - see ./capability-gap-emitter.md for the synchronous Node snippet, semantic notes (suggested_kind = "agent", MCP-probe exclusion per D-08, back-compat invariant on router output), and the opaque-extras payload routing through appendChainEvent.

Emitting router_pick on a resolved pick

When the router DID resolve a pick - it has the path/complexity_class/resolved_models decision and is about to return the decision JSON - emit ONE router_pick event (source: "router") recording which skill/agent was auto-picked, as the last step before returning. Side-effect only; the output JSON contract is UNCHANGED. Feeds the D-02 under-reached-skill instrument (Phase 33 baselines per-skill pick rates) - see ./router-pick-emitter.md for the synchronous Node snippet, the 7-field no-PII payload (context_hash only - never the raw prompt), and the opaque-extras routing through appendChainEvent.

Non-Goals

The router does not: (a) make a model call, (b) write files, (c) enforce budget caps (that's the hook's job), (d) learn from history (Phase 11 reflector territory per D-07). The router does not author capability-gap CLUSTERS - Stage-0 emit is single-event-per-failure. Aggregation across events is Plan 29-03's reflector pass.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Gdd Router؟

يوجّه أمر /gdd إلى مسار fast|quick|full وفئة تعقيد S|M|L|XL، ويُرجع {path, complexity_class, model_tier_overrides, resolved_models, estimated_cost_usd, cache_hits}. وهو مطالبة ضمن SKILL.md ينفذها النموذج لإصدار JSON لقرار التوجيه استنادًا إلى جداول القواعد (من دون تشغيل وكيل منفصل). اختياري وإرشادي؛ لا تستدعيه إلا المهارات التي تختار استخدام التوجيه، كما أن خطاف budget-enforcer يتعامل مع غيابه. تقرأه الخطافات في hooks/budget-enforcer.ts.

لماذا تستخدم Gdd Router على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Gdd Router عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Gdd Router في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/hegemonart/get-design-done/tree/main/scripts/skill-templates/router. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Gdd Router؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Gdd Router؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Gdd Router معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Gdd Router مجانية؟

نعم. نشرها hegemonart على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇