شعار Context7 Driven Development

Context7 Driven Development

المجتمع
VenTheZone
context7-driven-development

Use when implementing features or debugging issues that involve external libraries, frameworks, or APIs. Always verify with Context7 before writing code.

نظرة عامة

الناشرVenTheZone
المستودعpi-dots
اسم المهارةcontext7-driven-development
النجوم
41
التفريعات
0
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VenTheZone/pi-dots.git /tmp/pi-dots
mkdir -p .claude/skills
cp -r /tmp/pi-dots/pi-dotfiles/skills/context7-driven-development .claude/skills/context7-driven-development
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Context7-Driven Development

Overview

Never assume you know the API. Always verify before writing code.

Tool Priority Order

Use tools in this order based on what's available locally:

1. Local Files (Fastest - use when code exists on disk)

bash
read /path/to/file          # Read specific files
grep -rn "pattern" dir/     # Search code patterns
find . -name "*.ts"         # Find files by name
bash "ls -la dir/"          # Quick directory listing

Use when: Repo is cloned, you're working in a project, or files are in /tmp

2. Exa Web Search (For discovery & solutions)

exa_web_search_exa    → General web/code search
exa_crawling_exa      → Read specific URLs
exa_get_code_context_exa → Code examples & docs

Use when: Finding solutions, discovering repos, searching for error fixes, general web queries

3. Context7 (For official library documentation)

context7_resolve-library-id → Find library
context7_query-docs → Query specific docs

Use when: You need authoritative API docs for a known library

4. jcodemunch (For deep code analysis)

jcodemunch_index_repo → Index a repo for analysis
jcodemunch_search_symbols → Find symbols across codebase
jcodemunch_find_references → Find all usages
jcodemunch_get_dependency_graph → Analyze dependencies

Use when: Complex cross-reference analysis, find dead code, symbol importance

When to Use

Use Context7-Driven Development when:

  • Writing code that uses external libraries/frameworks
  • Fixing bugs involving external code
  • Integrating with third-party services
  • Upgrading library versions
  • Debugging library-specific errors

Core Workflow

Implementation Workflow

  1. Check Local First

    • Is the code already on disk? Use read/grep/find
    • If not, consider exa_crawling_exa to fetch the repo or docs page
    • Only then use Context7 for authoritative API docs
  2. Identify Dependencies

    • Check package.json, Cargo.toml, imports
    • List all external libraries being used
  3. Resolve Library IDs or Documentation Sources

    • If Context7 tools are available, use:
    context7_resolve-library-id(libraryName, query)
    • Otherwise resolve the official docs source manually via project docs, web search, or package documentation
    • Include version if known: /org/project/v1.2.3
  4. Query Documentation

    • If Context7 tools are available, use:
    context7_query-docs(libraryId, "How to [specific operation]")
    • Otherwise query the docs manually using your available search/documentation workflow
    • Query BEFORE writing code
    • Query AFTER writing code to verify
    • Be specific: "How to authenticate with JWT in NextAuth.js" not "auth"
  5. Apply to Implementation

    • Follow documentation patterns exactly
    • Check version compatibility
    • Note breaking changes

Debugging Workflow

  1. Reproduce & Isolate

    • Understand error message
    • Identify which library is involved
  2. Search for Solutions

    • First: exa_web_search_exa for error message + fix
    • Second: context7_query-docs for official troubleshooting
    • Third: jcodemunch_find_references to see how project uses it
  3. Verify Fix

    • Apply suggested fix
    • Test thoroughly
    • Check for related issues

Clone-and-Explore Pattern

For deep inspection of external repos:

bash
# Clone to /tmp for temporary analysis
git clone --depth 1 https://github.com/org/repo /tmp/repo

# Then use local tools
read /tmp/repo/src/important.ts
grep -rn "pattern" /tmp/repo/
find /tmp/repo -name "*.test.ts"

Clean up after: rm -rf /tmp/repo

Query Best Practices

Bad QueryGood Query
"auth""How to authenticate users with JWT in Express.js"
"hooks""React useEffect cleanup function examples"
"database""How to connect to PostgreSQL with Prisma ORM"
"error""Fix ECONNREFUSED in node-fetch retry logic"

Red Flags - STOP and Query

  • "I know how this works" → You don't. Query docs.
  • "This is a common pattern" → Patterns change. Verify.
  • "I've used this before" → Memory fails. Check docs.
  • "The API is intuitive" → Assumptions cause bugs. Look it up.
  • "I'll check after writing" → No. Query first. Always.

Verification Checklist

Before submitting code:

  • Checked local files first (read/grep/find)
  • Used Exa search for error messages or alternatives
  • Resolved the correct library or docs source
  • Queried Context7 if available, otherwise checked the official docs manually
  • Followed documentation patterns exactly
  • Checked version compatibility
  • Verified again after implementation

Maximum Queries

  • Exa search: use freely for discovery
  • Context7: max 3 queries per question
  • jcodemunch: index once, then query as needed
  • If you still can't find what you need, note the uncertainty

Examples

Before (Hallucination Risk)

typescript
// Assuming API from memory - WRONG
const client = new SomeClient({ apiKey: process.env.KEY });
await client.doSomething({ option: "value" }); // Might not exist!

After (Docs-Driven)

typescript
// After querying Context7 for SomeClient API
// Learned: v2.0 changed constructor signature
const client = SomeClient.create({
  apiKey: process.env.KEY,
  region: "us-east-1" // Required in v2.0+
});
await client.executeAction({ option: "value" }); // Correct method name

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

ماذا تفعل مهارة الذكاء الاصطناعي Context7 Driven Development؟

Use when implementing features or debugging issues that involve external libraries, frameworks, or APIs. Always verify with Context7 before writing code.

لماذا تستخدم Context7 Driven Development على TypingMind؟

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

كيف أثبّت Context7 Driven Development في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles/skills/context7-driven-development. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Context7 Driven Development؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Context7 Driven Development؟

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

هل مهارة الذكاء الاصطناعي Context7 Driven Development مجانية؟

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

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

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

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

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

عرض الكل

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

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