Skillpedia
الوكلاء41k · #6559

v4-best-practices

ما الذي تفعله

تمنح هذه المهارة الوكيل مجموعة قواعد للأعمال الطويلة متعددة الخطوات عند استخدام نماذج DeepSeek V4. وهي موجهة لمن يشغّل هذه النماذج في مهام مخططة ويريد أخطاء أقل.

متى تستخدمها

  • ✓عندما تطلب من الوكيل تنفيذ خطة تغيّر عدة ملفات.
  • ✓عندما تريد من الوكيل التحقق من أسماء الملفات والدوال قبل كتابة الشيفرة.
  • ✓عندما تريد أن تشير مخرجات الخطة إلى مواقع دقيقة في الشيفرة.

رابط المهارة

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“قبل أن أغيّر عدة ملفات، تحقق من أن كل مسار ملف ودالة موجودان، ثم أعطني الخطة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يبحث الوكيل في المشروع ليتأكد من وجود كل ملف ودالة قبل استخدامه. وفي الخطط الأكبر، يمكنه أن يطلب من مساعد ثانٍ التحقق من الافتراضات أولاً.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

V4 Best Practices

Rules for multi-step V4 thinking-mode workflows. Each rule prevents a specific, observable failure class.

1. Verify references before writing

Before referencing a file path, function, or type in code or plan output, call grep_files or read_file to confirm it exists in the workspace.

# Bad:  edit_file path="src/config/loader.rs" (assumed from memory)
# Good: grep_files pattern="pub fn load_config" → confirms src/config/mod.rs:42
#        then reference src/config/mod.rs:42

Failure avoided: edit_file errors on non-existent paths; LSP diagnostics on hallucinated symbols.

2. Spawn a verifier sub-agent before multi-file execution

Before executing a plan that touches 3+ files, spawn a deepseek-v4-flash sub-agent (thinking off) to read the target files and confirm path/symbol assumptions still hold.

agent type="verifier" model="deepseek-v4-flash"
  prompt: "Read these files and confirm: [list assumptions]. Report mismatches."

Failure avoided: multi-step edits fail partway because file structure changed since the plan was drafted.

3. Plan output must use confirmed path:line references

In plan-mode output, replace vague location pointers with path:line references drawn from a prior grep_files result.

# Bad:  "Update the retry logic in the client module"
# Good: "Update retry loop at crates/engine/src/client.rs:187"

Failure avoided: agent-mode execution cannot locate the intended edit target when plan directions are imprecise.

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

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

لا. المهارة مكتوبة لنموذجي DeepSeek V4 Pro وFlash في وضع التفكير.

لماذا نتحقق من أسماء الملفات أولاً؟

تنص المهارة على أن التعديلات تفشل عندما يُخمَّن مسار ملف أو دالة من الذاكرة، لذلك تطلب تأكيدها أولاً.

كيف تبدو خطوات الخطة؟

تطلب المهارة مراجع دقيقة للملف والسطر بدلاً من الأوصاف الغامضة.

التفاصيل

الوصف الأصلي من المؤلف

Use when working with deepseek-v4-pro or deepseek-v4-flash in thinking mode on multi-step or plan-driven tasks. Provides rules to prevent stale references, unverified plan assumptions, and vague plan output.

repo: codewhale-hq/Codewhale

الشعبية

نجوم GitHub
41k
الترتيب
#6559
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة