plugins/dev-utils/skills/hf-download/SKILL.md
Download primitives for HuggingFace assets - files, folder snapshots, and model weights with exponential backoff on rate limits. Use when pulling models, datasets, or caches from HuggingFace to the local environment.
npx skillsauth add richfrem/agent-plugins-skills hf-downloadInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ./requirements.txt for the dependency lockfile (currently empty — standard library only).
Status: Active
Author: Richard Fremmerlid
Domain: HuggingFace Integration
Depends on: hf-init (credentials must be configured first)
Provides consolidated download operations for all HF-consuming plugins (Primary Agent, local-llm-bench, etc.) to fetch files, models, and snapshots. All downloads include exponential backoff for rate-limit handling.
| Function | Description | Source Repo |
|---|---|---|
| download_file() | Download a single file | Custom or default repo |
| download_folder() | Download an entire folder snapshot | Custom or default repo |
from hf_download import download_file, download_folder
from pathlib import Path
# Download a single file from dataset repository to local directory
local_file_path = await download_file(
filename="data/soul_traces.jsonl",
local_dir=Path("./local_data")
)
# Download a model snapshot (e.g. GGUF weights)
model_dir = await download_folder(
local_dir=Path("./models"),
repo_id="unsloth/gemma-4-12b-it-GGUF",
repo_type="model",
allow_patterns=["*UD-Q4_K_XL.gguf"]
)
# Download a single file
python ./hf_download.py --filename data/soul_traces.jsonl --local-dir ./local_data
# Download a specific model snapshot using glob patterns
python ./hf_download.py \
--repo-id unsloth/gemma-4-12b-it-GGUF \
--repo-type model \
--allow-patterns "*UD-Q4_K_XL.gguf" \
--local-dir ./models
hf-init first to validate credentials and dataset structure.huggingface_hub installed (pip install huggingface_hub).HUGGING_FACE_USERNAME, HUGGING_FACE_TOKEN.All operations return paths on success or raise appropriate exceptions with exponential backoff retries (up to 5 attempts) on rate limits or API connectivity issues.
testing
Skill for creating and managing isolated git worktrees (`.worktrees/issue-NNN`) for issue execution branches. USE ONLY when setting up or cleaning up isolated git worktrees for specific issue execution. DO NOT USE for managing local task files (use `task-agent`) or escalating tasks to issues (use `github-issue-backlog-agent`).
data-ai
Skill for orchestrating the end-to-end GitHub issue lifecycle flow: Issue -> Worktree -> Implementation -> PR Creation -> Resolution Closure. USE ONLY when running or dry-running full lifecycle orchestration for resolving an issue with a PR. DO NOT USE for isolated worktree management only (use `issue-worktree-agent`) or logging issues (use `github-issue-agent`).
tools
Automatically ranks GitHub issues (P0-P3) based on friction tier, frequency, and blockages, synchronizing priority labels and GitHub Projects v2 custom fields.
testing
Bridge skill for escalating ephemeral local task scratchpad items (`tasks/*.md`) into durable, taxonomy-validated, evidence-rich GitHub Issues. USE ONLY when promoting a single-session local task into durable repository backlog. DO NOT USE for managing local kanban boards (use `task-agent` instead) or directly querying/commenting on issues (use `github-issue-agent` instead).