degit
ما الذي تفعله
يوضح كيف تنسخ قالب مشروع أو نسخة مستودع إلى مجلد جديد باستخدام degit، دون سجل Git الكامل. وهو موجه إلى المطورين الذين يريدون بدء مشروع بسرعة من قالب.
متى تستخدمها
- ✓عندما يريد مطور بدء مشروع جديد من قالب على GitHub أو GitLab.
- ✓عندما يريد مطور نسخة من مستودع دون سجل Git الخاص به.
- ✓عندما يريد مطور ملفات أو مجلدات محددة فقط من مستودع.
رابط المهارة
https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد بدء مشروع جديد من قالب بداية على GitHub. ساعدني في نسخه.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تعطي المهارة أمر نسخ لقطة المستودع إلى مجلد، وتساعد في الفروع والمجلدات الفرعية. وتعمل مع GitHub وGitLab وBitbucket وSourcehut وGists.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Help the user scaffold a project with degit. Use npx degit@latest unless they have installed degit globally.
Start with the smallest command that matches their request:
npx degit@latest user/repo
npx degit@latest user/repo my-project
npx degit@latest user/repo#branch my-project
Sources can be GitHub (user/repo, github:user/repo, or a GitHub URL), GitLab (gitlab:user/repo, a GitLab URL, or gitlab://host/user/repo), Bitbucket (bitbucket:user/repo or URL), Sourcehut (git.sr.ht/user/repo, SSH form, or URL), or Gist (https://gist.github.com/<id>, https://gist.github.com/<user>/<id>, git@gist.github.com:<id>.git, or ssh://git@gist.github.com/<id>). A #ref can name a branch, tag, or commit. A source may include a subdirectory path.
- The destination defaults to the current directory and must be empty. Do not suggest
--forceunless the user explicitly wants to overwrite its contents. - Use
--cacheto require a cached copy (no network). Without--cache, degit tries the network first and falls back to the cached copy if the network is unreachable. Use--verboseto diagnose failures.--mode=gitstill works but is unnecessary; tar snapshots are the default. - Use
--files <paths>or-F <paths>to clone only specific files or directories; separate multiple paths with commas or repeat the flag. - Private repositories are handled automatically, with SSH fallback when needed. SSH/private use requires
gitonPATHand working repository credentials. - For reusable shortcuts, use
degit alias <repo> <name>, thendegit <name>; usedegit lsanddegit unalias <name>to manage aliases. - If a template needs post-download changes, explain that its top-level
degit.jsoncan useclone,search_replace, andremoveactions.search_replaceuses a named environment variable for its replacement value. - A downloaded
degit.jsonruns automatically and is template-controlled. For untrusted templates, prefer--no-actionsto skip actions, or--allow-env <names>to limit which environment variablessearch_replacemay read.
If source, ref, destination, or whether the destination is empty is unknown, ask before giving a potentially destructive command.
الأسئلة الشائعة
هل تتضمن النسخة سجل Git؟
لا. تصف المهارة degit بأنه ينسخ لقطة، لذلك لا يتضمن السجل.
هل يمكنني نسخ بعض الملفات فقط؟
نعم. تشرح المهارة كيف تنسخ ملفات أو مجلدات محددة فقط.
هل يمكنني استخدامها في مجلد فيه ملفات؟
تقول المهارة إن المجلد الوجهة يجب أن يكون فارغًا، ولا تقترح فرض الكتابة فوق الملفات إلا إذا أردت ذلك فعلًا.
التفاصيل
الشعبية
- نجوم GitHub
- 8.0k
- الترتيب
- #12654
- الترخيص
- MIT
- آخر تحديث
- 21/10/2026
التعليقات
- …
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.