Skillpedia
برمجة عامة5.2k · #15021

lsp-maintain

ما الذي تفعله

تفحص هذه المهارة خوادم اللغة المُعدّة في Kode، وتجد الإضافة أو الإعداد الذي يجب أن يضيف الخادم المفقود. وهي موجهة للأشخاص الذين يستخدمون Kode ولا يرون مساعدة في الشيفرة للغتهم.

متى تستخدمها

  • ✓عندما تغيب اقتراحات الشيفرة أو عمليات البحث عنها في Kode.
  • ✓عندما يكون خادم اللغة معطّلًا وتريد إعادة تشغيله.
  • ✓عندما تريد إضافة خادم لغة لبرمجة جديدة.

رابط المهارة

https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/lsp-maintain/SKILL.md

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

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

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

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

استخدم هذه المهارة لمساعدتي: https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/lsp-maintain/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

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

“لا يعطيني Kode أي اقتراحات للشيفرة في ملفات Python. هل يمكنك معرفة السبب وإصلاحه؟”

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

كيف تعمل

يفحص الوكيل قائمة الخوادم المُعدّة، ويتتبع كل خادم إلى الإضافة التي توفره، ويجري تغييرًا صغيرًا عبر أوامر Kode. ثم يفحص قائمة الخوادم مرة أخرى.

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

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

LSP Maintain (Reference-aligned)

Non-negotiables (policy)

  • Do not respond with menu-style instructions like “run /lsp-maintain install” or “run /lsp-maintain doctor”.
  • Prefer executing capability changes through SlashCommand (e.g. /plugin ..., /lsp) or Edit to configuration files.
  • Keep the conversation focused: only load deeper resources if absolutely necessary.

What “LSP enabled” means in Kode

Kode’s LSP tool is enabled only when there is at least one resolved LSP server and at least one is not in error.

Step 1 — Establish facts (no guessing)

  1. Ask for the user goal (languages, monorepo vs single package, whether they already use plugins).
  2. Run /lsp via SlashCommand and read the “Configured servers” list.
  3. If there are zero servers, conclude: no LSP servers are configured (do not speculate about missing binaries).

Step 2 — Identify configuration source (plugin-only)

Kode resolves LSP servers from enabled plugins:

  • Plugin root .lsp.json (JSON, top-level record)
  • Plugin manifest field lspServers (inline record or relative file path within plugin root)

If the user needs a new server, the correct path is: enable a plugin that provides it, or add/update a plugin’s .lsp.json.

Step 3 — Apply changes through agent CLI

Prefer:

  • Use SlashCommand to manage plugins (/plugin ...) and re-check with /lsp.
  • Use Edit to update the plugin’s .lsp.json or manifest lspServers record/file.

Step 4 — Verify

  1. Re-run /lsp and confirm servers are resolved.
  2. Attempt one LSP tool call (e.g. goToDefinition) on a file extension that is mapped in extensionToLanguage.

Notes for LSP server config authoring

  • command must be an executable (avoid embedding arguments; use args).
  • Kode runs servers using stdio pipes.
  • Do not use restartOnCrash, startupTimeout, or shutdownTimeout in the config (Kode treats them as unsupported).
الأسئلة الشائعة

هل يعرض عليّ قوائم تثبيت أُشغّلها؟

لا. يفعّل الإضافة التي توفر الخادم، أو يضيف ملف إعداد إلى إحداها.

ماذا لو لم يكن هناك أي خادم لغة مُعدّ؟

تستنتج المهارة أنه لا يوجد خادم لغة مُعدّ، وتضيف واحدًا عبر إضافة بدلًا من التخمين.

كيف أعرف أن الإصلاح نجح؟

تفحص المهارة قائمة الخوادم مرة أخرى بعد التغيير.

التفاصيل

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

Diagnose and align Kode LSP behavior with the reference CLI (plugin-based .lsp.json, stdio-only, no install menus). Use when LSP results are missing, LSP is disabled, or you need to configure plugin LSP servers without telling the user to run menu-style install commands.

repo: shareAI-lab/Kode-CLI

الشعبية

نجوم GitHub
5.2k
الترتيب
#15021
الترخيص
Apache-2.0
آخر تحديث
2‏/11‏/2026

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

0

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

التعليقات

  • …

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

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