degit
하는 일
프로젝트 템플릿이나 저장소의 스냅숏을 전체 git 기록 없이 degit으로 새 폴더에 복사하는 방법을 보여 줍니다. 템플릿으로 프로젝트를 빨리 시작하고 싶은 개발자를 위한 것입니다.
사용하는 경우
- ✓개발자가 GitHub나 GitLab 템플릿으로 새 프로젝트를 시작하고 싶을 때.
- ✓개발자가 git 기록 없이 저장소 복사본을 원할 때.
- ✓개발자가 저장소의 특정 파일이나 폴더만 필요한 경우.
스킬 링크
https://github.com/Rich-Harris/degit/blob/master/skills/degit/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“GitHub에 있는 스타터 템플릿으로 새 프로젝트를 시작하고 싶어요. 복사하는 방법을 도와주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 저장소 스냅숏을 폴더에 복사하는 명령을 알려 주고, 브랜치와 하위 폴더 사용도 돕습니다. GitHub, GitLab, Bitbucket, Sourcehut, Gist에서 작동합니다.
기술 내용 (원본 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
- 업데이트
- 2026. 10. 21.
댓글
- …