# degit Snapshot

Downloads a repository snapshot or template with degit.

- Repository: https://github.com/Rich-Harris/degit (7959 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-21
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Rich-Harris/degit --skill degit -g -a claude-code -y`
Codex: `npx skills add Rich-Harris/degit --skill degit -g -a codex -y`
Cursor: `npx skills add Rich-Harris/degit --skill degit -g -a cursor -y`
Gemini CLI: `npx skills add Rich-Harris/degit --skill degit -g -a gemini-cli -y`

## Description

Download a repository snapshot or template with degit

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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:

```sh
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 rest: https://github.com/Rich-Harris/degit/blob/HEAD/skills/degit/SKILL.md
