شعار Workbuddy Cli Model Bridge

Workbuddy Cli Model Bridge

المجتمع
zjp1997720
workbuddy-cli-model-bridge

ثبّت جسر CLIProxyAPI المقيّد بالاتصال المحلي فقط، ودقّقه وأصلحه وأدِره لتسجيل نماذج Codex أو Grok أو Antigravity/Gemini أو GLM Coding Plan أو نماذج CLI المضافة حديثًا في WorkBuddy، اعتمادًا على الاشتراكات. استخدم هذه المهارة كلما طلب المستخدم ربط نموذج CLI أو وكيل محلي بـ WorkBuddy، أو تثبيت CLIProxyAPI، أو إضافة GLM-5.3 باستخدام مفتاح Coding Plan، أو إضافة نموذج مخصص إلى WorkBuddy أو إصلاحه، أو الحفاظ على إمكانات الصور والأدوات والاستدلال وFast، أو إعداد موفر CLI آخر، أو تشخيص توقف نموذج WorkBuddy عن العمل. صُممت هذه المهارة أساسًا لنظام macOS، ويجب استخدامها حتى عندما يذكر المستخدم اسم النموذج فقط أو يقول إن صلاحية API المحلي في WorkBuddy انتهت.

Add to TypingMind

نظرة عامة

الناشرzjp1997720
المستودعzhijian-skills
اسم المهارةworkbuddy-cli-model-bridge
النجوم
780
التفريعات
99
الملفات المرفقة
13
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zjp1997720/zhijian-skills.git /tmp/zhijian-skills
mkdir -p .claude/skills
cp -r /tmp/zhijian-skills/skills/workbuddy-cli-model-bridge .claude/skills/workbuddy-cli-model-bridge
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Workbuddy Cli Model Bridge تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

WorkBuddy CLI Model Bridge

Turn supported CLI subscriptions into verified WorkBuddy custom-model entries through CLIProxyAPI. Use the bundled script for discovery, installation, OAuth handoff, capability probes, and idempotent WorkBuddy updates. Keep model claims tied to real probes; a model name or marketing page is not evidence that a particular proxy route preserves the capability.

Resolve the Skill directory

Resolve this loaded Skill's directory and use its absolute path as <skill-dir>. Do not assume a specific installation root.

The deterministic entry point is:

bash
python3 <skill-dir>/scripts/bridge.py

Default workflow

1. Audit before changing anything

bash
python3 <skill-dir>/scripts/bridge.py audit

Read the JSON findings. The audit redacts secrets and detects:

  • Homebrew, CLIProxyAPI, active config, bind address, and proxy reachability
  • WorkBuddy initialization and existing model count
  • bundled and local Provider manifests
  • CLI executables and login signals without reading token contents
  • CLIProxyAPI auth-file counts without exposing account names

Treat an existing CLI login as a discovery signal. CLIProxyAPI may still require its own OAuth grant; do not copy another CLI's token file.

2. Bootstrap CLIProxyAPI when required

Preview:

bash
python3 <skill-dir>/scripts/bridge.py bootstrap

Apply the plan when the user asked to install, configure, repair, or converge the bridge:

bash
python3 <skill-dir>/scripts/bridge.py bootstrap --apply

The request to set up the bridge authorizes reversible Homebrew installation, loopback service startup, a dedicated random proxy client key, secure local state, and timestamped backups. Pause only when:

  • Homebrew itself is missing and its installer requires administrator interaction
  • an existing proxy listens beyond loopback; explain the remote-client impact before using --allow-rebind-local
  • an overlapping deployment or config conflict makes ownership ambiguous

Keep a healthy existing installation in place. Prefer official Homebrew installation for a new macOS setup.

3. Authorize only relevant Providers

Bundled OAuth Provider IDs are codex, xai-grok, and antigravity. Authorize one when the user requested it or the audit found its CLI/login signal and CLIProxyAPI has no matching auth/model route.

bash
python3 <skill-dir>/scripts/bridge.py authorize codex
python3 <skill-dir>/scripts/bridge.py authorize xai-grok
python3 <skill-dir>/scripts/bridge.py authorize antigravity

The command delegates to CLIProxyAPI's native OAuth flag. Tell the user to approve the browser page, then continue automatically. Never paste, print, transform, or reuse OAuth tokens. Secure resulting auth JSON files to owner-only permissions.

Bundled glm-coding is a Coding Plan API-key Provider, not OAuth. Do not run authorize glm-coding. Follow glm-coding-plan.md: add the official coding /paas/v4 route to CLIProxyAPI, then sync --providers glm-coding. Do not use 智谱清言 website login.

Do not authorize unrelated Providers merely because they are bundled.

4. Probe and synchronize WorkBuddy

Pass only the relevant Provider IDs:

bash
python3 <skill-dir>/scripts/bridge.py sync --providers codex,xai-grok,glm-coding --apply

The sync command:

  • fetches the live /v1/models list
  • selects recommended chat/agent models from Provider manifests
  • probes text, SSE streaming, tools, images, and reasoning controls where declared
  • resolves token limits by exact model ID, using Provider-declared catalogs before sourced manifest metadata
  • refuses to register a model with an unknown input/output limit or a rejected output-limit probe
  • skips models whose text or streaming probes fail
  • downgrades optional capability flags when their probes fail
  • backs up and atomically updates ~/.workbuddy/models.json
  • preserves manual entries and stale managed entries
  • refuses to overwrite a manual entry with the same model ID
  • records ownership separately under ~/.config/workbuddy-cli-model-bridge/

Do not use --skip-probes for a live setup. That option exists for deterministic offline tests only.

When the user explicitly requests Fast mode and no Fast model appears, read the Fast-model section in troubleshooting.md. A Fast alias needs both a distinct CLIProxyAPI route and verified priority semantics; never relabel an ordinary model as Fast.

A reasoning probe verifies control compatibility. It cannot expose private chain of thought. For teaching or screen recording, ask the model to emit a deliberate problem decomposition as normal answer content.

WorkBuddy represents each custom model as a separate entry. This Skill registers verified entries; it does not change the user's currently selected conversation model.

5. Verify the application consumed the change

Run the audit again. If WorkBuddy is already open, inspect its current main-thread log for a models.json changed or Loaded custom models config event. If no reload event appears, ask the user to reopen model settings or start a new conversation; do not rewrite the same config repeatedly.

Report:

  • CLIProxyAPI version/path and local endpoint
  • authorized Providers, without account identifiers
  • models added or updated
  • capability probe results
  • conflicts, skipped models, and preserved stale entries
  • backup paths and any remaining user action
  • effective input/output token limits and their non-secret metadata source

Never include API keys, OAuth URLs containing one-time codes, token file contents, or raw request bodies.

Repair workflow

For an expired or broken model:

  1. Run audit and distinguish proxy-down, missing key, missing OAuth, unavailable model, Provider quota, and WorkBuddy-cache failures.
  2. Start or repair the existing service before reinstalling anything.
  3. For a recovered quota followed by persistent 503 auth_unavailable, follow Quota recovered but 503 persists before reauthorizing.
  4. Rerun authorize <provider> only when auth is absent or an authentication-specific probe fails.
  5. Rerun sync --providers <affected-provider> --apply.
  6. Verify a real text request and every declared optional capability.

Do not rotate the WorkBuddy API key merely because a Provider OAuth session changed. The proxy client key and upstream OAuth credentials have different lifecycles.

Read troubleshooting.md for failure classification and rollback guidance.

Add a new CLI Provider

Read both:

Prefer, in order:

  1. CLIProxyAPI native OAuth Provider
  2. official OpenAI-compatible endpoint
  3. declarative model alias/protocol mapping
  4. a bounded local adapter as a separately disclosed last resort

Save machine-local manifests under:

text
~/.config/workbuddy-cli-model-bridge/providers.d/<provider-id>.json

Validate before use:

bash
python3 <skill-dir>/scripts/bridge.py validate-provider ~/.config/workbuddy-cli-model-bridge/providers.d/<provider-id>.json

Then authorize and sync by the new Provider ID. A new manifest becomes reusable by every Agent on the same machine without modifying this Skill. Promote it into the public Skill only after isolated tests prove installation, authentication handoff, model selection, capability accuracy, and rollback behavior.

Safety boundaries

Read security-boundaries.md before changing service exposure, credentials, or adding a local adapter.

  • Bind the proxy to loopback and keep remote management disabled.
  • Store bridge secrets, OAuth files, WorkBuddy config, and credential-bearing backups with mode 0600.
  • Use only accounts the user owns and respect Provider subscription terms and rate limits.
  • Never implement ban evasion, account sharing, automated block reset, token extraction, or hidden traffic cloaking.
  • Preserve user-created WorkBuddy models and unrelated CLIProxyAPI configuration.
  • Treat Provider manifests as code: validate their source and inspect local overrides before executing login flags.

Completion gate

Completion requires:

  • audit has no unresolved security error
  • CLIProxyAPI is reachable on loopback with the dedicated client key
  • each registered model passed text and streaming probes
  • every enabled optional capability passed its probe
  • every registered model has sourced input/output limits and passed the bounded output-limit probe
  • WorkBuddy loaded the resulting model list
  • repeated sync is idempotent
  • backups and rollback paths are reported

If any gate remains unproven, report the model as unverified rather than declaring success.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Workbuddy Cli Model Bridge؟

ثبّت جسر CLIProxyAPI المقيّد بالاتصال المحلي فقط، ودقّقه وأصلحه وأدِره لتسجيل نماذج Codex أو Grok أو Antigravity/Gemini أو GLM Coding Plan أو نماذج CLI المضافة حديثًا في WorkBuddy، اعتمادًا على الاشتراكات. استخدم هذه المهارة كلما طلب المستخدم ربط نموذج CLI أو وكيل محلي بـ WorkBuddy، أو تثبيت CLIProxyAPI، أو إضافة GLM-5.3 باستخدام مفتاح Coding Plan، أو إضافة نموذج مخصص إلى WorkBuddy أو إصلاحه، أو الحفاظ على إمكانات الصور والأدوات والاستدلال وFast، أو إعداد موفر CLI آخر، أو تشخيص توقف نموذج WorkBuddy عن العمل. صُممت هذه المهارة أساسًا لنظام macOS، ويجب استخدامها حتى عندما يذكر المستخدم اسم ال...

لماذا تستخدم Workbuddy Cli Model Bridge على TypingMind؟

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

كيف أثبّت Workbuddy Cli Model Bridge في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Workbuddy Cli Model Bridge؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Workbuddy Cli Model Bridge؟

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

هل مهارة الذكاء الاصطناعي Workbuddy Cli Model Bridge مجانية؟

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

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

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

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

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

عرض الكل

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

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