شعار Corezoid Process Optimizer

Corezoid Process Optimizer

مؤسسة
corezoid
corezoid-process-optimizer

حسّن JSON عملية Corezoid — قلّل استهلاك tact بدمج العُقد، ونظّف تدفّق البيانات، وأكمل عناوين العُقد الناقصة، وأضف أنماطًا لتعزيز المرونة. فعّل هذه المهارة عندما يقول المستخدم «حسّن» أو «طوّر» أو «قلّل tacts» أو «ادمج العُقد» أو «نظّف العملية» أو «ما الذي يمكن تحسينه؟» أو «اعرض التحسينات»، أو يستخدم أي عبارة تفيد رغبته في جعل العملية أسرع أو أقل تكلفة أو أسهل قراءة. يتوفر وضعان: التخطيط فقط (تحليل وتقرير، من دون إجراء تغييرات) والتلقائي (تخطيط ثم تنفيذ فورًا).

Add to TypingMind

نظرة عامة

الناشرcorezoid
المستودعcorezoid-ai-plugin
اسم المهارةcorezoid-process-optimizer
النجوم
74
التفريعات
26
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/corezoid/corezoid-ai-plugin/tree/main/plugins/corezoid/skills/corezoid-process-optimizer
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Corezoid Process Optimizer

Mode and scope detection

Determine mode and scope from the user's phrasing before doing anything else.

Mode

User intentMode
"optimize", "apply", "fix", "improve" — action verbAUTO — analyze, plan, execute
"show", "what can", "suggest", "check" — analysis verbPLAN — analyze, report, wait

In PLAN mode, after presenting the report ask:

"Apply all? Apply by group? (1 — tacts, 2 — data, 3 — naming, 4 — resilience)"

Scope

The user may request a specific optimization group. Detect from keywords:

Keyword(s) in requestScope — run only
"tacts", "tact", "state changes", "nodes", "merge"Group 1
"data", "payload", "cleanup", "garbage", "fields"Group 2
"names", "naming", "titles", "readability", "descriptions"Group 3
"resilience", "semaphors", "timeouts", "stability"Group 4
No group keyword — general requestAll groups

If scope is a single group — run Phase 1 analysis only for that group. Skip all others entirely. Still run lint-process first (its findings feed Group 1 regardless).

Examples:

  • "optimize by tacts" → AUTO + Group 1 only
  • "show tact optimizations" → PLAN + Group 1 only
  • "add missing semaphors" → AUTO + Group 4 only
  • "optimize" → AUTO + all groups

Step 0 — Resolve process

Resolve PROCESS_PATH before calling any tools:

  1. Check if the user provided a path, name, or ID.
  2. If not — ask: "Which process? Provide a file path, name, or ID."
  3. If name or ID — search locally: find . -name "*.conv.json".
  4. Read and parse the file.
  5. Call lint-process — record findings. They become Group 1 quick-wins.

Step 1 — Analyze

Build a node map: id → { title, obj_type, logics[], sems[], outgoing edges }.

Trace the execution graph from the Start node following go.to_node_id and err_node_id edges.

Collect candidates for all four groups below.


Group 1 — Tact Reduction

Formula: SC = (N – 1) × T. Every node transition costs one state change. Fewer nodes = fewer tacts.

1.1 Merge consecutive set_param nodes

Detect chains A → B → C where all nodes have type: "set_param", connected sequentially with no branching.

Merge condition: all nodes share the same err_node_id (or all have none). If err_node_id values differ — flag as candidate, do not merge automatically.

Merge action: combine all extra and extra_type objects into the first node. Remove subsequent nodes. Reconnect routing to where the chain ended.

Tacts saved: (chain length − 1) per task.


1.2 Merge consecutive code nodes

Detect chains of type: "api_code" nodes connected sequentially with no branching.

Merge condition: all share the same err_node_id. If different — flag only; note that error handling must be unified first.

Merge action: concatenate src fields in order, separated by \n// ---\n. Keep one err_node_id. Remove subsequent nodes. Reconnect routing.

Tacts saved: (chain length − 1) per task.


1.3 Merge consecutive condition nodes checking the same field

Detect chains of type: "go_if_const" nodes where all check the same arg field.

Merge action: combine all conditions[] arrays into the first node. Each original branch keeps its own to_node_id. Remove subsequent condition nodes.

Do NOT merge if conditions check different fields — different semantics, merging hurts readability.

After merging, add a note to the plan:

"Merged conditions on field '{{field}}'. Review combined node for readability."

Tacts saved: (chain length − 1) per task.


1.4 Replace api_rpc with api_copy when reply is unused

Detect api_rpc nodes where no downstream node references any field that could only originate from the called process's reply.

Check: scan all downstream extra, condition arg/val, and src fields for parameter names not present in the task before the call. If none found — candidate for api_copy.

This change requires confirmation even in AUTO mode. Present:

"Node '[title]' calls process but does not use the reply. Replace with api_copy (fire-and-forget)? [yes/no]"

If confirmed: change type: "api_rpc" → type: "api_copy". Switch extra/extra_type to data/data_type per the api_copy schema (see ${CLAUDE_PLUGIN_ROOT}/docs/node-structures.md).


1.5 Remove dead nodes

Apply lint findings:

  • Orphaned nodes — remove from scheme.nodes.
  • No-op conditions — re-route the incoming edge to the single destination; remove the condition node.
  • Unused set_params — if the node sets only unused variables, remove the node. If mixed, remove only the unused keys from extra/extra_type.

Group 2 — Data Cleanup

2.1 Inline payload cleanup after API calls

After each type: "api" node, identify response fields not referenced by any downstream node.

Do NOT add a new cleanup node — inline the cleanup into the nearest existing downstream node:

  • code node: prepend delete data.<field>; at the top of src.
  • set_param node: set_param cannot delete keys. Find the next code node and add the delete there. If no downstream code node exists — flag for the user, do not create a new node.

2.2 Remove dead code inside code nodes

Inside each api_code node's src, detect:

  • data.x = data.x — self-assignment, remove.
  • Variables declared but never read after declaration — flag for user review.
  • Large commented-out blocks — flag for user review.

Group 3 — Readability

Run this group when:

  • User explicitly requested it, OR
  • AUTO mode is active.

Critical nodes always get titles filled regardless of mode:

Node typeAlways fill title if empty
api_codeYes
apiYes
api_rpcYes
api_copyYes
obj_type: 2 (End/Error)Yes

Title inference rules

Node typeInference
api"[METHOD] [hostname][path]" from the url field
api_rpc"Call @[alias]" or "Call [conv_id]"
api_copy"Copy → @[alias]" or "Copy → [conv_id]"
api_codeFirst meaningful line of src (strip data., max 40 chars)
set_param"Set [key1], [key2], ..." (first 3 keys)
go_if_const"Check [arg field]"
obj_type: 2, icon error"Error"
obj_type: 2"Final"

Never overwrite an existing non-empty title.

3.1 Fill process params array

If params: [] and the Start node clearly receives input (inferred from downstream references to fields never set internally) — propose a params array.

Always ask for confirmation before applying — field types cannot be reliably inferred.


Group 4 — Resilience

4.1 Add missing time semaphors

Node typeSeverityDefault timeout
api_callback (Waiting for Callback)🔴 Critical — always add3600 sec
api (API Call)🟡 Important — add without asking30 sec
api_rpc (Call a Process)🟢 Recommended — add without asking60 sec

Semaphor to_node_id must point to a valid error node. If no suitable error node exists — create one at x + 300, same y as the parent node. Use obj_type: 2 with title: "Timeout" and connect the semaphor to it.

Semaphor JSON:

json
{
  "type": "time",
  "value": 30,
  "dimension": "sec",
  "to_node_id": "<error_node_id>"
}

Step 2 — Plan report

Present findings in this format before executing anything:

## Optimization Plan: <Process Title> (<ID>)

### Group 1 — Tact Reduction
| # | Type               | Nodes                                 | Tacts saved |
|---|--------------------|---------------------------------------|-------------|
| 1 | Merge set_param    | "Set ref" → "Set amount" → "Set cur"  | 2/task      |
| 2 | Merge code         | "Parse" → "Validate"                  | 1/task      |
| 3 | Remove orphaned    | "Old handler" (abc123)                | 1/task      |
| 4 | rpc→copy ⚠️ confirm | "Send notification"                   | wait saved  |

Total nodes removed: N | Tacts saved: X/task

### Group 2 — Data Cleanup
| # | After node          | Fields to remove          | Inline into          |
|---|---------------------|---------------------------|----------------------|
| 1 | "Call Stripe API"   | payment_method_details... | "Parse response"     |

### Group 3 — Readability
| # | Node (id)      | Suggested title                        |
|---|----------------|----------------------------------------|
| 1 | api (abc123)   | "POST api.stripe.com/v1/charges"       |
| 2 | api_rpc (def)  | "Call @payment-process"                |

### Group 4 — Resilience
| # | Node                    | Issue                         | Action             |
|---|-------------------------|-------------------------------|--------------------|
| 1 | "Call SMS API"          | Missing timeout semaphor      | Add 30sec          |
| 2 | "Wait callback" 🔴      | Missing timeout semaphor      | Add 3600sec        |

### Requires action outside this process
- Hardcoded URL in "Call Stripe API" → use /corezoid-variable-manager
- Numeric conv_id 1307813 (×3 nodes)  → use /corezoid-alias-manager

Step 3 — Execute

Execution order

Always apply in this sequence:

  1. Group 1 — tact reduction (graph changes first)
  2. Group 4 — resilience (semaphors reference the now-clean graph)
  3. Group 2 — data cleanup (inline into final node set)
  4. Group 3 — naming (operates on final nodes)

Confirmation rules

ChangeConfirm in AUTOConfirm in PLAN
Merge set_param / code / conditionNoYes per group
api_rpc → api_copyAlwaysAlways
Add semaphorsNoYes per group
Fill titles (critical nodes)NoNo
Fill titles (other nodes)NoYes per group
Fill params arrayAlwaysAlways
Create variable for hardcoded valueAlwaysAlways

After all changes

  1. Write updated JSON to PROCESS_PATH.
  2. Call lint-process — fix any errors before proceeding.
  3. Call push-process.
  4. Notify the user: "Deployed. Please refresh the page in Corezoid to see the updated process."

Boundaries — what the optimizer does not do

FindingAction
Hardcoded URLs / tokensFlag + point to /corezoid-variable-manager
Numeric conv_id without aliasFlag + point to /corezoid-alias-manager
Full Markdown documentationPoint to /corezoid-process-tech-writer
Cross-process auditPoint to /corezoid-project-review
Extract subprocess (architecture)Discuss with user + point to /corezoid-create

Reference Documents

PathWhen to read
${CLAUDE_PLUGIN_ROOT}/docs/node-structures.mdJSON schemas for all node types
${CLAUDE_PLUGIN_ROOT}/docs/nodes/set-parameters-node.mdset_param merge rules
${CLAUDE_PLUGIN_ROOT}/docs/nodes/code-node.mdCode node structure
${CLAUDE_PLUGIN_ROOT}/docs/nodes/api-call-node.mdAPI Call semaphor configuration
${CLAUDE_PLUGIN_ROOT}/docs/nodes/call-process-node.mdapi_rpc vs api_copy decision
${CLAUDE_PLUGIN_ROOT}/docs/nodes/copy-task-node.mdapi_copy structure
${CLAUDE_PLUGIN_ROOT}/docs/nodes/waiting-for-callback-node.mdapi_callback critical semaphor
${CLAUDE_PLUGIN_ROOT}/docs/process/error-handling.mdError node patterns
${CLAUDE_PLUGIN_ROOT}/docs/process/node-positioning-best-practices.mdPositioning new nodes

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

ماذا تفعل مهارة الذكاء الاصطناعي Corezoid Process Optimizer؟

حسّن JSON عملية Corezoid — قلّل استهلاك tact بدمج العُقد، ونظّف تدفّق البيانات، وأكمل عناوين العُقد الناقصة، وأضف أنماطًا لتعزيز المرونة. فعّل هذه المهارة عندما يقول المستخدم «حسّن» أو «طوّر» أو «قلّل tacts» أو «ادمج العُقد» أو «نظّف العملية» أو «ما الذي يمكن تحسينه؟» أو «اعرض التحسينات»، أو يستخدم أي عبارة تفيد رغبته في جعل العملية أسرع أو أقل تكلفة أو أسهل قراءة. يتوفر وضعان: التخطيط فقط (تحليل وتقرير، من دون إجراء تغييرات) والتلقائي (تخطيط ثم تنفيذ فورًا).

لماذا تستخدم Corezoid Process Optimizer على TypingMind؟

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

كيف أثبّت Corezoid Process Optimizer في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/corezoid/corezoid-ai-plugin/tree/main/plugins/corezoid/skills/corezoid-process-optimizer. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Corezoid Process Optimizer؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Corezoid Process Optimizer؟

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

هل مهارة الذكاء الاصطناعي Corezoid Process Optimizer مجانية؟

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

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

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

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

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

عرض الكل

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

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