Github sandbox file downloader

From Aradotso/trending-skills · View interactive version

Github sandbox file downloader is an AI agent skill from the GitHub repository Aradotso/trending-skills. Download files into a GitHub repository by writing special commit messages that trigger a GitHub Actions workflow.

How to use this skill

Skill file

GitHub Sandbox File Downloader

Skill by ara.so — Daily 2026 Skills collection.

A GitHub Actions-based tool that lets you download files into your repository simply by writing a specially formatted commit message — no CLI, no tokens, no secrets required.


What It Does

github-sandbox listens for commit messages containing download: or download-zip: commands. When detected, a GitHub Actions workflow runs and:


Setup

1. Fork the Repository

Fork maanimis/github-sandbox into your GitHub account.

2. Enable Read/Write Workflow Permissions

  1. Go to your forked repo on GitHub
  2. Navigate to Settings → Actions → General
  3. Scroll to Workflow permissions
  4. Select Read and write permissions
  5. Click Save

No API keys, tokens, or secrets are needed.


Usage

Trigger downloads by committing to your repo with a specially formatted commit message.

Via GitHub Web UI

  1. Open any file (e.g., README.md) in your repo
  2. Click the pencil icon (✏️) to edit
  3. Make any minor change (a space, blank line, etc.)
  4. In the Commit changes box, type your download command
  5. Select Commit directly to the main branch
  6. Click Commit changes

Via Git CLI

# Download individual files
git commit --allow-empty -m "download: https://example.com/file.zip"

# Download multiple files
git commit --allow-empty -m "download: https://example.com/a.zip https://example.com/b.pdf"

# Download and bundle into a ZIP archive
git commit --allow-empty -m "download-zip: https://example.com/a.zip https://example.com/b.pdf"

git push origin main

Command Reference

`download:` — Save Files Individually

download: URL1 URL2 URL3

Examples:

# Single file
git commit --allow-empty -m "download: https://example.com/dataset.csv"

# Multiple files
git commit --allow-empty -m "download: https://example.com/model.bin https://example.com/config.json https://example.com/vocab.txt"

Output: Files saved individually to downloads/ with original filenames:

downloads/
  dataset.csv
  model.bin
  config.json
  vocab.txt

`download-zip:` — Bundle Into ZIP Archive

download-zip: URL1 URL2 URL3

Examples:

# Single file zipped
git commit --allow-empty -m "download-zip: https://example.com/report.pdf"

# Multiple files bundled
git commit --allow-empty -m "download-zip: https://example.com/a.zip https://example.com/b.pdf https://example.com/c.csv"

Output: A single timestamped archive in downloads/:

downloads/
  archive_20260423_153012.zip

Command Summary Table

| Command | URLs | Output |

|---|---|---|

| download: URL | Single | downloads/filename.ext |

| download: URL1 URL2 | Multiple | downloads/file1.ext, downloads/file2.ext |

| download-zip: URL | Single | downloads/archive_YYYYMMDD_HHMMSS.zip |

| download-zip: URL1 URL2 | Multiple | downloads/archive_YYYYMMDD_HHMMSS.zip (all bundled) |


How the Workflow Works

The GitHub Actions workflow (.github/workflows/download.yml) operates as follows:

# Conceptual workflow structure
on:
  push:
    branches: [main]

jobs:
  download:
    runs-on: ubuntu-latest
    steps:
      - name: Check commit message for download command
        # Parses commit message for "download:" or "download-zip:"
        # Extracts URLs from the message
        # Downloads files using curl/wget
        # Commits results to downloads/ with [skip ci] to prevent loops

Key design details:


Checking Download Results

  1. Click the Actions tab in your repository
  2. Click the latest workflow run to monitor progress and view logs
  3. After completion, go to the Code tab and open downloads/ to find your files

Common Patterns

Downloading a Dataset

git commit --allow-empty -m "download: https://raw.githubusercontent.com/datasets/covid-19/main/data/worldwide-aggregated.csv"
git push origin main

Downloading Multiple Assets and Archiving

git commit --allow-empty -m "download-zip: https://example.com/weights.bin https://example.com/tokenizer.json https://example.com/config.yaml"
git push origin main

Downloading a Public GitHub Release Asset

git commit --allow-empty -m "download: https://github.com/owner/repo/releases/download/v1.0.0/binary-linux-amd64.tar.gz"
git push origin main

Troubleshooting

Workflow doesn't trigger

Files not appearing in `downloads/`

Workflow runs in an infinite loop

Multiple URLs not downloading

# ✅ Correct
git commit --allow-empty -m "download: https://example.com/a.zip https://example.com/b.zip"

# ❌ Incorrect (comma separator)
git commit --allow-empty -m "download: https://example.com/a.zip, https://example.com/b.zip"

Commit message not recognized

# ✅ Correct
git commit --allow-empty -m "download: https://example.com/file.zip"

# ❌ Won't trigger (wrong prefix)
git commit --allow-empty -m "Download: https://example.com/file.zip"

Notes & Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.