Waldek Mastykarz

gitload

開發程式設計v1.0.1
作者:Waldek Mastykarz更新於 2026-05-16共 2 個版本 · 最新版本釋出於 2026-05-16@clawhub_waldekmastykarz/gitload
Git 輔助#GitHub

據 AlphaMoat 統計,截至 2026-09,gitload 累計下載 4,204 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 2,380 位,在「開發程式設計」分類(577 個)中排名第 306 位。

累計安裝
247
累計下載
4204
星標
3
全站排名
#2,380
全站前 47% · 「開發程式設計」前 54%
平台累計安裝累計下載星標評論
ClawHub ↗13339333-
SkillHub ↗24742043—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

透過 gitload CLI 從 GitHub URL 下載指定檔案、資料夾或倉庫內容,無需獲取完整 Git 歷史。下載前核對倉庫所有者、路徑和分支,避免從不可信來源執行程式碼。

資料釋出於 2026-10-27

可以用來做什麼

  • 從 GitHub 獲取指定目錄
  • 下載倉庫中的特定檔案

什麼時候用

  • 需要只獲取倉庫部分內容時
  • 檢查下載來源和目標路徑時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

從這個 GitHub 倉庫下載指定資料夾,不要執行其中程式碼。
先展示倉庫、分支和目標路徑供我檢查。

月度資料趨勢

累計下載4204
2849357743042026-03 · 累計下載 29492026-05 · 累計下載 34292026-06 · 累計下載 35682026-07 · 累計下載 37932026-08 · 累計下載 38872026-09 · 累計下載 420426-0326-09
星標3
2342026-03 · 星標 32026-05 · 星標 32026-06 · 星標 32026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094204—3
2026-083887+2.5%3
2026-073793+6.3%3
2026-063568+4.1%3
2026-053429—3
2026-032949—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.8 KB · ClawHub v1.0.1
---
name: gitload
description: This skill should be used when the user asks to "download files from GitHub", "fetch a folder from a repo", "grab code from GitHub", "download a GitHub repository", "get files from a GitHub URL", "clone just a folder", or needs to download specific files/folders from GitHub without cloning the entire repo.
---

# gitload

Download files, folders, or entire repos from GitHub URLs using the gitload CLI.

## When to Use
展開全部(共 147 行)

Use gitload when:
- Downloading a specific folder from a repo (not the whole repo)
- Fetching a single file from GitHub
- Downloading repo contents without git history
- Creating a ZIP archive of GitHub content
- Accessing private repos with authentication

Do NOT use gitload when:
- Full git history is needed (use `git clone` instead)
- The repo is already cloned locally
- Working with non-GitHub repositories

## Prerequisites

Run gitload via npx (no install needed):
```bash
npx gitload-cli https://github.com/user/repo
```

Or install globally:
```bash
npm install -g gitload-cli
```

## Basic Usage

### Download entire repo
```bash
gitload https://github.com/user/repo
```
Creates a `repo/` folder in the current directory.

### Download a specific folder
```bash
gitload https://github.com/user/repo/tree/main/src/components
```
Creates a `components/` folder with just that folder's contents.

### Download a single file
```bash
gitload https://github.com/user/repo/blob/main/README.md
```

### Download to a custom location
```bash
gitload https://github.com/user/repo/tree/main/src -o ./my-source
```

### Download contents flat to current directory
```bash
gitload https://github.com/user/repo/tree/main/templates -o .
```

### Download as ZIP
```bash
gitload https://github.com/user/repo -z ./repo.zip
```

## Authentication (for private repos or rate limits)

### Using gh CLI (recommended)
```bash
gitload https://github.com/user/private-repo --gh
```
Requires prior `gh auth login`.

### Using explicit token
```bash
gitload https://github.com/user/repo --token ghp_xxxx
```

### Using environment variable
```bash
export GITHUB_TOKEN=ghp_xxxx
gitload https://github.com/user/repo
```

**Token priority:** `--token` > `GITHUB_TOKEN` > `--gh`

## URL Formats

gitload accepts standard GitHub URLs:
- **Repo root:** `https://github.com/user/repo`
- **Folder:** `https://github.com/user/repo/tree/branch/path/to/folder`
- **File:** `https://github.com/user/repo/blob/branch/path/to/file.ext`

## Common Patterns

### Scaffold from a template folder
```bash
gitload https://github.com/org/templates/tree/main/react-starter -o ./my-app
cd my-app && npm install
```

### Grab example code
```bash
gitload https://github.com/org/examples/tree/main/authentication
```

### Download docs for offline reading
```bash
gitload https://github.com/org/project/tree/main/docs -z ./docs.zip
```

### Fetch a single config file
```bash
gitload https://github.com/org/configs/blob/main/.eslintrc.json -o .
```

## Options Reference

| Option | Description |
|--------|-------------|
| `-o, --output <dir>` | Output directory (default: folder named after URL path) |
| `-z, --zip <path>` | Save as ZIP file at the specified path |
| `-t, --token <token>` | GitHub personal access token |
| `--gh` | Use token from gh CLI |
| `--no-color` | Disable colored output |
| `-h, --help` | Display help |
| `-V, --version` | Output version |

## Error Handling

If gitload fails:
1. **404 errors:** Verify the URL exists and is accessible
2. **Rate limit errors:** Add authentication with `--gh` or `--token`
3. **Permission errors:** For private repos, ensure token has `repo` scope
4. **Network errors:** Check internet connectivity

## Notes

- gitload downloads content via GitHub's API, not git protocol
- No git history is preserved (use `git clone` if history is needed)
- Large repos may take time; consider downloading specific folders
- Output directory is created if it doesn't exist

「開發程式設計」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。