Initialize HuggingFace integration - validates .env variables, tests API connectivity, and ensures the dataset repository structure exists. Use when onboarding a new project to HuggingFace or when credentials change.
From huggingface-utilsnpx claudepluginhub richfrem/agent-plugins-skills --plugin huggingface-utilsThis skill is limited to using the following tools:
acceptance-criteria.mdevals/evals.jsonevals/results.tsvfallback-tree.mdreferences/acceptance-criteria.mdreferences/fallback-tree.mdrequirements.txtscripts/hf_config.pyscripts/hf_init.pyGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
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
Sets up everything needed for HuggingFace persistence. Run this once when onboarding a new project, or whenever credentials change.
.env variables are setlineage/, data/, metadata/)| Variable | Required | Description |
|---|---|---|
HUGGING_FACE_USERNAME | ✅ Yes | Your HF username |
HUGGING_FACE_TOKEN | ✅ Yes | API token (set in ~/.zshrc, NOT .env) |
HUGGING_FACE_REPO | ✅ Yes | Model repo name |
HUGGING_FACE_DATASET_PATH | ✅ Yes | Dataset repo name |
HUGGING_FACE_TAGS | ❌ No | Comma-separated discovery tags for dataset card |
HUGGING_FACE_PROJECT_NAME | ❌ No | Pretty name for dataset card heading |
SOUL_VALENCE_THRESHOLD | ❌ No | Moral/emotional charge filter (default: -0.7) |
python ./hf_config.py
python ./hf_init.py
python ./hf_init.py --validate-only
# Token goes in shell profile (never committed):
export HUGGING_FACE_TOKEN=hf_xxxxxxxxxxxxx
# Project vars go in .env:
HUGGING_FACE_USERNAME=<your-username>
HUGGING_FACE_REPO=<your-model-repo>
HUGGING_FACE_DATASET_PATH=<your-dataset-repo>
# Optional customization:
HUGGING_FACE_TAGS=reasoning-traces,cognitive-continuity,your-project-tag
HUGGING_FACE_PROJECT_NAME=My Project Soul
# Run init
python ./hf_init.py