شعار Skill Digester

Skill Digester

مؤسسةشائع
lessweb
skill-digester

Reviews and improves another DeepCode skill's SKILL.md description field, and guides Agent Skill installation into user or project .agents/skills roots. Use when the user asks to digest a skill, install an Agent Skill, install a skill to user/project scope, or says "消化技能" or "安装 agent skill".

نظرة عامة

الناشرlessweb
المستودعdeepcode-cli
اسم المهارةskill-digester
النجوم
2.2K
التفريعات
215
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/lessweb/deepcode-cli/tree/main/packages/core/templates/skills/bundled/skill-digester
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lessweb/deepcode-cli.git /tmp/deepcode-cli
mkdir -p .claude/skills
cp -r /tmp/deepcode-cli/packages/core/templates/skills/bundled/skill-digester .claude/skills/skill-digester
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Skill Digester

Use this skill for two related tasks:

  • Review and optionally rewrite the description field of another DeepCode skill.
  • Guide installation of an Agent Skill into an interoperable .agents/skills root.

Interaction Rule

Whenever user input is needed, call the AskUserQuestion tool. Do not ask follow-up questions as plain assistant text. This includes missing skill names or paths, install scope, language preference, duplicate matches, malformed frontmatter decisions, and whether to apply a recommended rewrite.

Workflow

First classify the request:

Digest Description Workflow

  1. Identify the target skill from the user's request.

    • If the user did not provide a skill name, use AskUserQuestion to ask for one.

    • Locate the skill by running the bundled Node script from this skill directory:

      bash
      node ~/.deepcode/skills/skill-digester/scripts/find-skill.js "<skill-name-or-path>" "<project-root>"

      If this skill is loaded from a project-level or different user-level path, use the scripts/find-skill.js file next to this SKILL.md instead.

    • The script searches the same roots Deep Code CLI scans, in priority order:

      1. Project native skills: ./.deepcode/skills/<folder>/SKILL.md
      2. Project interoperable skills: ./.agents/skills/<folder>/SKILL.md
      3. User native skills: ~/.deepcode/skills/<folder>/SKILL.md
      4. User interoperable skills: ~/.agents/skills/<folder>/SKILL.md
    • Treat ./ as the current Deep Code project root only; do not scan parent directories unless the running project root is changed.

    • The script resolves each candidate's skill name the way Deep Code does: use the trimmed frontmatter name when present, otherwise use the folder name with underscores converted to hyphens.

    • Match the user's input against the resolved skill name first. If needed, also consider the folder name or an explicit path the user provided.

    • Treat the matched skill's path as the source SKILL.md to review.

    • Treat the matched skill's digestTarget.path as the only output SKILL.md path to create or edit.

    • digestTarget.path always points to the same scope's native Deep Code root:

      • Project sources from ./.deepcode/skills or ./.agents/skills digest to ./.deepcode/skills/<folder>/SKILL.md.
      • User sources from ~/.deepcode/skills or ~/.agents/skills digest to ~/.deepcode/skills/<folder>/SKILL.md.
    • If the script returns one active match, use its path for reading and digestTarget.path for writing.

    • If the script returns active and shadowed matches, present each source path and digest target path, then use AskUserQuestion before using a shadowed source.

    • If the script returns no match, state that the skill was not found in Deep Code's scanned skill roots and use AskUserQuestion to ask whether the user wants to try another name.

  2. Infer the user's preferred language before reviewing.

    • Infer a likely language from the user's wording. For example, if the user says 消化pdf技能, infer Chinese.
    • Confirm the language with AskUserQuestion in the inferred language. For Chinese, ask: 请选择您偏好的语言。
    • Offer the inferred language first and include English as a fallback. The UI provides an Other option, so the user can type a different language.
    • Use the confirmed preferred language for every later question, recommendation, and rewritten description field.
  3. Read the source SKILL.md.

    • Parse the YAML frontmatter and Markdown body from the matched source path.
    • Preserve all frontmatter fields and body content except for the description field if the user approves a rewrite.
    • If frontmatter is missing or malformed, explain the issue and use AskUserQuestion before making structural repairs.
  4. Review the current description field against the Agent Skills specification.

    • Required constraints:
      • It must be non-empty.
      • It must be 1-1024 characters.
      • It should describe what the skill does.
      • It should describe when to use the skill.
      • It should include specific keywords that help agents identify relevant tasks.
    • Compare the description with the actual SKILL.md body. Flag mismatches, missing capabilities, overbroad activation language, vague wording, or important trigger keywords that are absent.
    • Do not rewrite for style alone if the existing description is accurate, specific, and useful.
  5. Present the review and recommendation.

    • If the description is already good, say so and do not change the file unless the user asks.
    • If improvements are useful, show:
      • The current description.
      • Concise review findings.
      • A recommended replacement written in the preferred language.
      • The source path being reviewed.
      • The digest output path that would be created or edited.
    • Use AskUserQuestion to ask the user to choose one of three actions in the preferred language:
      • Apply the recommended change.
      • Abandon the change.
      • Continue discussing the wording.
  6. Apply the change only after explicit approval.

    • Write only to digestTarget.path; never write the digested result to .agents/skills.
    • If digestTarget.sameAsSource is true, update only the description field in that existing native SKILL.md.
    • If digestTarget.sameAsSource is false and digestTarget.exists is false, create the native target skill directory by copying the source skill directory first, then update only the target SKILL.md description. This preserves bundled scripts, references, and assets.
    • If digestTarget.sameAsSource is false and digestTarget.exists is true, update only the description field in the existing native target SKILL.md; do not overwrite its body or bundled files unless the user explicitly asks.
    • Keep the original name and any other frontmatter fields unchanged in the file being written.
    • Preserve body content exactly unless the user separately asks to edit it.
    • After editing, report the source path, updated digest output path, and final description.

Install Agent Skill Workflow

Use this workflow when the user asks to install an Agent Skill. Installation always writes to .agents/skills, not .deepcode/skills.

  1. Identify the source skill directory.

    • If the user provided an explicit file or directory path, resolve it:
      • ~/... relative to the user's home directory.
      • ./... relative to the current project root.
      • Absolute paths as written.
      • A SKILL.md path means its parent directory is the source skill directory.
    • If the user provided a skill name instead of a path, locate it with scripts/find-skill.js using the same command and match rules as the digest workflow.
    • If the user did not provide a skill name or path, use AskUserQuestion to ask for the source skill name or path.
    • The source directory must contain SKILL.md. If it does not, report that the path is not an Agent Skill and ask for another source only if the user still wants to install.
  2. Determine the installed skill folder name.

    • Parse the source SKILL.md frontmatter.
    • Use the trimmed frontmatter name when present.
    • Otherwise use the source folder name with underscores converted to hyphens.
    • Use that resolved name as the target folder name.
  3. Ask exactly one installation scope question.

    • Use AskUserQuestion to ask whether to install the skill at user level or project level.
    • Offer only these scope choices:
      • User-level install: ~/.agents/skills/<skill-name>/
      • Project-level install: ./.agents/skills/<skill-name>/
    • Do not ask any other installation preference before copying.
  4. Copy the complete skill directory.

    • User-level destination: ~/.agents/skills/<skill-name>/.
    • Project-level destination: ./.agents/skills/<skill-name>/.
    • Copy the whole source skill directory, including SKILL.md, references/, scripts/, templates/, examples, assets, and other support files.
    • Preserve file contents and relative paths exactly.
    • Create the .agents/skills parent directory if needed.
    • If the destination directory already exists, stop and report the conflict. Do not overwrite or merge files unless the user explicitly asks in a later message.
  5. Report the result.

    • Report the source directory and installation destination.
    • Mention that the agent client may need to reload or restart before the installed skill appears.
    • Do not digest, rewrite, or normalize the installed skill unless the user separately asks for that.

AskUserQuestion Patterns

Use one question at a time unless two decisions are tightly coupled. Each question must include options; rely on the UI's Other option for free-form input.

Examples:

json
{
  "questions": [
    {
      "question": "请选择您偏好的语言。",
      "options": [
        { "label": "中文", "description": "后续询问和推荐描述都使用中文。" },
        { "label": "English", "description": "Use English for follow-up questions and the recommended description." }
      ]
    }
  ]
}
json
{
  "questions": [
    {
      "question": "How should I proceed with this description recommendation?",
      "options": [
        {
          "label": "Apply change",
          "description": "Update only the description field in the native digest output SKILL.md."
        },
        { "label": "Abandon change", "description": "Leave the file unchanged." },
        { "label": "Discuss wording", "description": "Continue refining the proposed description before editing." }
      ]
    }
  ]
}
json
{
  "questions": [
    {
      "question": "Where should I install this Agent Skill?",
      "options": [
        { "label": "User-level", "description": "Install to ~/.agents/skills so it is available across projects." },
        { "label": "Project-level", "description": "Install to ./.agents/skills so it is available in this project." }
      ]
    }
  ]
}

Review Heuristics

A strong description is short, concrete, and activation-oriented. Prefer this pattern:

text
<What the skill does>. Use when <task types, file types, tools, domains, or user phrases that should trigger it>.

Avoid descriptions that are only generic labels, marketing copy, or internal implementation notes.

Safety Notes

  • Never modify a different skill with a similar name without asking.
  • Never save the digested output under .agents/skills; .agents/skills is only a source root for digestion.
  • Never save installed Agent Skills under .deepcode/skills; installation writes only to .agents/skills.
  • Never move a skill between project and user level during digestion.
  • Never overwrite or merge an existing installed skill directory unless the user explicitly asks after seeing the conflict.
  • Never change the target skill's language preference after confirmation unless the user asks.

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

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

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

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

Reviews and improves another DeepCode skill's SKILL.md description field, and guides Agent Skill installation into user or project .agents/skills roots. Use when the user asks to digest a skill, install an Agent Skill, install a skill to user/project scope, or says "消化技能" or "安装 agent skill".

لماذا تستخدم Skill Digester على TypingMind؟

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

كيف أثبّت Skill Digester في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/lessweb/deepcode-cli/tree/main/packages/core/templates/skills/bundled/skill-digester. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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