شعار Wb Exec

Wb Exec

المجتمع
Luminousyyh
wb-exec

Delegate bounded coding, refactoring and test-writing tasks to a headless CLI executor (WorkBuddy by default, or codex/claude/aider/custom) and collect a structured result plus the real diff. Use when the task can be finished independently, the file set is enumerable, and the host agent only wants to plan and review instead of writing code itself.

نظرة عامة

الناشرLuminousyyh
المستودعskill-wb-exec
اسم المهارةwb-exec
النجوم
155
التفريعات
0
الملفات المرفقة
11
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Luminousyyh/skill-wb-exec/tree/main/skills/wb-exec
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

wb-exec

You are the host: you plan, supervise and review. The WorkBuddy subprocess does the implementation; you do not write business code yourself.

Always address the script through this skill's absolute directory, never through the terminal's current directory:

python <SKILL_DIR>/scripts/wb_exec.py <subcommand> ...

On Windows, if python is not on PATH, use py -3 or the absolute path of a local Python.

0. Self-check first (at most once per session)

python <SKILL_DIR>/scripts/wb_exec.py doctor

Returns JSON with ok / cli (the resolved entry point) / cli_version / git / is_git_repo / state_root. ok=false or a non-empty cli_error → stop, report the raw output to the user, and do not install or reconfigure anything yourself.

doctor proves the CLI is present and answers --version. It does not prove authentication, quota or model access — a run can still fail after a clean self-check, and that failure belongs in stderr.log, not in a guess.

1. Write the task package (this is your most important job)

The task package is JSON; field definitions are in references/protocol.md and an example is in assets/task.example.json. Three hard rules:

  1. goal says in one sentence what changed once the work is done. No implementation steps.
  2. owned_paths must be enumerable. For a directory write src/auth/; for a file write the full path. An empty list means the executor may only create new files.
  3. acceptance is executable commands (pytest -q tests/test_auth.py), never "make sure it works".

Write the package to a file first (for example .wb-exec/tasks/001.json), then dispatch. Never stuff the package into command-line arguments.

2. Dispatch

Long jobs — most of them — go to the background:

python <SKILL_DIR>/scripts/wb_exec.py dispatch --task .wb-exec/tasks/001.json --cwd <repo>

Short jobs can be waited on in the foreground:

python <SKILL_DIR>/scripts/wb_exec.py run --task .wb-exec/tasks/001.json --cwd <repo> --timeout 600

Common flags:

  • --dry-run: print the argv that would run, to confirm paths and flags; starts nothing.
  • --worktree off: disable isolation (only when the directory is not a Git repository, or when you explicitly accept in-place changes).
  • --timeout: seconds, default 1800.
  • --executor: which CLI runs the task. workbuddy (default), codex, claude, aider, or custom. WB_EXECUTOR sets the same default through the environment.

The workbuddy backend is pinned: WorkBuddy / DeepSeek V4.1 Flash at effort max, hard-coded, with no --model or --effort flag. When the account or plan refuses that model the run fails — do not retry with another model. Report stderr.log to the user. The other backends use whatever their own CLI is configured with; wb-exec injects no model or effort for them, so do not claim a specific model on those paths.

Do not switch backends to "make it work" after a failure. Pick the backend the user has installed, and only change it when the user asks.

3. Supervise

python <SKILL_DIR>/scripts/wb_exec.py status --job <JOB_ID>
  • running: normal. Look again in 30–60 seconds; never poll per second.
  • stalled: the heartbeat is older than 90 seconds. collect first to see where it stopped, then decide whether to cancel and re-dispatch a smaller package, or re-run at another effort tier.
  • cancel_requested: the cancellation flag is written; waiting for the process to exit.

Cancel:

python <SKILL_DIR>/scripts/wb_exec.py cancel --job <JOB_ID>

4. Collect and review

python <SKILL_DIR>/scripts/wb_exec.py collect --job <JOB_ID> --wait

Result shape (excerpt):

json
{
  "ok": true,
  "status": "done",
  "result": {
    "summary": "Added token validation middleware and 3 tests",
    "changed_files": ["src/auth/mw.py", "tests/test_mw.py"],
    "tests": [{"cmd": "pytest -q tests/test_mw.py", "status": "pass"}],
    "blockers": []
  },
  "result.artifacts": {"patch": ".../change.patch", "stdout": ".../stdout.jsonl"},
  "result.violations": ["src/billing/x.py"]
}

Review discipline:

  1. Read the patch yourself before judging. artifacts.patch is the real diff; summary is only the executor's own account. When they disagree, the diff wins.
  2. A non-empty violations means the executor wrote files outside its assignment. Do not quietly accept it and do not revert it yourself — report it to the user first.
  3. A pass inside tests is not independent verification. After integrating, run the acceptance commands yourself in the main working tree.
  4. Integration is yours: git apply --check → git apply → run acceptance → report. Do not run git commit or git push; that requires an explicit request from the user.

5. Boundaries (violating them causes incidents)

  • Never recurse: the executor is already forbidden to dispatch, and you must not dispatch a second task over the same files while a worker is running.
  • Git isolation starts from HEAD: it does not copy the user's uncommitted edits. If the task needs files that are not committed yet, commit or stage them first, because the worktree will not contain them and the run will fail on a missing input.
  • A failed isolation attempt stops the job: the script aborts instead of falling back to editing the source tree in place. Never work around that by re-running with --worktree off unless in-place execution is what the user actually authorised.
  • Never trigger dispatch from inside a WorkBuddy / CodeBuddy session: the child process collides with that session's daemon and hangs with zero output — measured at 45–300 seconds with no stdout or stderr at all. Call this script from the host agent or a normal terminal.
  • Never modify the same file in parallel: the owned_paths of concurrent jobs must not overlap; overlapping work is serialised.
  • Never return full logs to the user: give summary, the relevant tests and violations. The logs stay in the artifacts paths for on-demand reading.
  • Never re-run by hand with -y: the script already handles the permission flags; bypassing the script bypasses isolation and the out-of-scope check.
  • Never clean up the user's worktree: after collect the directory stays in place for review, and removal is the user's decision.

Failure handling

SymptomAction
exit_code != 0 with a non-empty blockersCarry the blocker back into planning unchanged, narrow or split the package, re-dispatch once
ok=false, blockers=["could not parse structured result"]Read the tail of artifacts.stdout; usually the executor did not follow the schema. Add "the last message must be JSON" to the package notes
status=timeoutThe package is too large. Split it into 2–3 packages whose owned_paths do not overlap
status=stalledcollect, then cancel; re-dispatch with --worktree auto
cli_errorStop and report to the user; do not install dependencies

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

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

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

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

Delegate bounded coding, refactoring and test-writing tasks to a headless CLI executor (WorkBuddy by default, or codex/claude/aider/custom) and collect a structured result plus the real diff. Use when the task can be finished independently, the file set is enumerable, and the host agent only wants to plan and review instead of writing code itself.

لماذا تستخدم Wb Exec على TypingMind؟

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

كيف أثبّت Wb Exec في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/Luminousyyh/skill-wb-exec/tree/main/skills/wb-exec. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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