degit
Fungsinya
Menunjukkan cara menyalin templat proyek atau snapshot repositori ke folder baru dengan degit, tanpa riwayat git lengkap. Skill ini untuk developer yang ingin memulai proyek dengan cepat dari templat.
Kapan dipakai
- ✓Saat developer ingin memulai proyek baru dari templat GitHub atau GitLab.
- ✓Saat developer menginginkan salinan repositori tanpa riwayat git-nya.
- ✓Saat developer hanya menginginkan file atau folder tertentu dari repositori.
Link skill
https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Saya ingin memulai proyek baru dari templat awal di GitHub. Bantu saya menyalinnya.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini memberikan perintah untuk menyalin snapshot repositori ke sebuah folder, dan membantu dengan branch serta subfolder. Skill ini bekerja dengan GitHub, GitLab, Bitbucket, Sourcehut, dan Gist.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah salinan menyertakan riwayat git?
Tidak. Skill ini menggambarkan degit sebagai penyalinan snapshot, jadi riwayatnya tidak disertakan.
Bisakah saya hanya menyalin sebagian file?
Bisa. Skill ini menjelaskan cara menyalin file atau folder tertentu saja.
Bisakah saya memakainya di folder yang sudah berisi file?
Skill ini menyatakan folder tujuan harus kosong, dan tidak menyarankan memaksa penimpaan kecuali memang benar-benar diinginkan.
Detail
Deskripsi asli dari pembuat
Download a repository snapshot or template with degit
repo: Rich-Harris/degit
Popularitas
- Bintang GitHub
- 8.0k
- Peringkat
- #12654
- Lisensi
- MIT
- Diperbarui
- 21/10/2026
Komentar
- …
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.