Agent skill

Deploy To Hf Spaces

by adithya-s-k in adithya-s-k/FineEnvs

Deploy the article to a Hugging Face Space. An agent skill from adithya-s-k/FineEnvs.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Deploy To Hf Spaces

skills CLI
$ npx skills add adithya-s-k/FineEnvs --skill deploy-to-hf-spaces -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install adithya-s-k/FineEnvs deploy-to-hf-spaces --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/adithya-s-k/FineEnvs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/articles/geoguesser/.ai/skills/deploy-to-hf-spaces .claude/skills/deploy-to-hf-spaces && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deploy-to-hf-spaces
GitHub stars
461
Token cost
~864 tokens
SKILL.md length
352 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

Deploy the article to a Hugging Face Space. An agent skill from adithya-s-k/FineEnvs.

  • Works in 3 steps: Create the Space → Add the remote → Push
  • The user asks to deploy
  • SKILL.md covers Prerequisites, First deployment, Updating an existing Space and Verifying deployment, plus 3 more sections
  • Calls git and huggingface-cli; reaches huggingface.co

What it does

Deploy To Hf Spaces is an agent skill from adithya-s-k/FineEnvs. Deploy the article to a Hugging Face Space. Use when the user asks to deploy, push, publish, or update their Space on Hugging Face.

Its SKILL.md is about 860 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Model hubs and datasets, Deployment and Reinforcement learning. It works with Hugging Face and Docker. The repository describes itself as: FineEnvs — RL Environments 101: building and scaling RL environments in the age of LLMs. The licence is Apache-2.0.

When your agent uses it

  • The user asks to deploy
  • Update their Space on Hugging Face

Example prompts

  • “/deploy-to-hf-spaces”

Requirements

  • Docker

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Create the Space
  2. Add the remote
  3. Push

What it can do on your machine

Read from SKILL.md and the folder at commit 5e0b46e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • huggingface-cli

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • huggingface.co

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deploy To Hf Spaces loads about 864 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 352 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~864

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from adithya-s-k/FineEnvs at commit 5e0b46e, republished under its Apache-2.0 licence (© adithya-s-k). 352 words, ~864 tokens.

Download SKILL.mdSave it as .claude/skills/deploy-to-hf-spaces/SKILL.md (or your agent's skills folder).
name
deploy-to-hf-spaces
description
Deploy the article to a Hugging Face Space. Use when the user asks to deploy, push, publish, or update their Space on Hugging Face.

Deploy to Hugging Face Spaces

Guide for deploying and updating a research article on Hugging Face Spaces.

Prerequisites

  • A Hugging Face account with an SSH key configured (git@hf.co)
  • Or HTTPS access with huggingface-cli login

First deployment

1. Create the Space

Via CLI:

bash
huggingface-cli repo create <username>/<space-name> --repo-type space --space_sdk docker

Or manually at https://huggingface.co/new-space (select Docker SDK).

2. Add the remote
bash
git remote add space git@hf.co:spaces/<username>/<space-name>
3. Push
bash
git push space main

The Space will build automatically using the included Dockerfile and nginx.conf. Build typically takes 3-5 minutes.

Updating an existing Space

bash
git add -A
git commit -m "feat: describe your changes"
git push space main
Force push (when needed)

If the Space history has diverged (e.g., after a factory reset or manual edit on HF):

bash
git push space main --force

Verifying deployment

  1. Go to https://huggingface.co/spaces/<username>/<space-name>
  2. Check the Factory tab for build logs
  3. The build is complete when status shows "Running"
  4. If the page looks stale, append ?v=<timestamp> to the URL to bypass CDN cache
Cache busting

Hugging Face Spaces aggressively cache static assets. If changes don't appear after a successful build:

  1. Check that the CSS bundle hash has changed (view page source, look for /_astro/*.css)
  2. If unchanged, the build used a stale cache - push an empty commit to force rebuild:
    bash
    git commit --allow-empty -m "chore: trigger rebuild"
    git push space main
  3. Wait for the new build to complete before checking again
Show full SKILL.md (160 more words)Show less

README tag (critical)

The README.md YAML frontmatter must contain:

yaml
tags:
  - research-article-template

NEVER remove this tag. It is used by the Research Article Gallery to list the article. Without it, the Space becomes invisible in the gallery.

README frontmatter reference

yaml
---
title: "Article Title"
emoji: 📝
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 8080
header: mini
pinned: false
tags:
  - research-article-template
---
FieldDescription
titleDisplayed in the Space card
emojiEmoji shown on the Space card
colorFrom / colorToGradient colors for the card header
sdk: dockerRequired - uses the Dockerfile for build
app_port: 8080Required - nginx serves on 8080
header: miniCompact header (recommended for articles)
tagsMust include research-article-template

Troubleshooting

ProblemSolution
Build failsCheck build logs in the Factory tab. Common issue: missing dependencies in package.json
CSS/layout looks wrongCache issue - force rebuild with empty commit
Images not showingIf using Git LFS, ensure LFS files are pushed. Otherwise check image paths
PDF not generatedPlaywright is included in Docker build; check build logs for errors
Space shows old contentWait 2-3 min after build completes for CDN propagation, then hard refresh

© adithya-s-k, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in content/articles/geoguesser/.ai/skills/deploy-to-hf-spaces of adithya-s-k/FineEnvs.

Open the folder on GitHubat commit 5e0b46e

Compare with similar skills

Deploy To Hf Spaces next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deploy To Hf Spaces compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deploy To Hf Spaces this skilladithya-s-k/FineEnvs461—~864Automated safety check: PassApache-2.0
Hugging Face Spaces DeployVincentqyw/image-matching-webui1.3k—~721Automated safety check: PassApache-2.0
SageMaker Serving Image Selectionhuggingface/skills11k1 repos~4.6kAutomated safety check: PassApache-2.0
Hugging Face LLM Trainerhuggingface/skills11k1 repos~7.2kAutomated safety check: PassApache-2.0
Huggingface LLM Trainerwaybarrios/opencode-power-pack534—~3kAutomated safety check: PassApache-2.0
Rtvi Byom PortingNVIDIA-AI-Blueprints/video-search-and-summarization1.9k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Hugging Face Spaces Deploy

    Vincentqyw/image-matching-webui

    Releases a new imcui version on GitHub, then deploys it to a test and a production Hugging Face Space from a dedicated huggingface branch.

    1.3k GitHub stars~721 tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Official

    Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.

    11k GitHub starsUsed in 1 repo~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Hugging Face LLM Trainer

    huggingface/skills

    Official

    Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.

    11k GitHub starsUsed in 1 repo~7.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Huggingface LLM Trainer

    waybarrios/opencode-power-pack

    Train or fine-tune language models with TRL or Unsloth on Hugging Face Jobs, including SFT, DPO, GRPO, reward models, and GGUF conversion.

    534 GitHub stars~3k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Rtvi Byom Porting

    NVIDIA-AI-Blueprints/video-search-and-summarization

    A skill your agent uses when adding, debugging, or validating a bring-your-own VLM in VSS RT-VLM, including custom Hugging Face or NGC checkpoints, vLLM adapters or plugins, model shims, and…

    1.9k GitHub stars~1.4k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Huggingface Spaces

    huggingface/skills

    Official

    Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community…

    11k GitHub starsUsed in 1 repo~4.4k tokens
    AI & LLM EngineeringAuto-check passed

More from adithya-s-k/FineEnvs

All 8 skills in this repo
  • Generate Verifiers Env

    adithya-s-k/FineEnvs

    Builds a Verifiers (PrimeIntellect) variant of an RL environment.

    461 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Generate Nemo Gym Env

    adithya-s-k/FineEnvs

    Builds a NeMo Gym (NVIDIA) variant of an RL environment. An agent skill from adithya-s-k/FineEnvs.

    461 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Generate Openenv Env

    adithya-s-k/FineEnvs

    Builds an OpenEnv (Hugging Face) variant of an RL environment.

    461 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Generate Ors Env

    adithya-s-k/FineEnvs

    Builds an Open Reward Standard (ORS) variant of an RL environment using the official openreward Python package.

    461 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check: notes
  • Rl Env From Description

    adithya-s-k/FineEnvs

    Turns a user's plain-English description of an RL training environment into runnable code across the four target frameworks — OpenEnv, OpenReward (ORS), Verifiers, and NeMo Gym.

    461 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check: notes
  • Article Frontmatter

    adithya-s-k/FineEnvs

    Configure article metadata via MDX frontmatter. An agent skill from adithya-s-k/FineEnvs.

    461 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed

Questions about Deploy To Hf Spaces

What does Deploy To Hf Spaces do?

Deploy the article to a Hugging Face Space. An agent skill from adithya-s-k/FineEnvs. Deploy To Hf Spaces is an agent skill from adithya-s-k/FineEnvs. Deploy the article to a Hugging Face Space.

When should I use Deploy To Hf Spaces?

Deploy To Hf Spaces fits situations like: the user asks to deploy; update their Space on Hugging Face.

How do I install Deploy To Hf Spaces in Claude Code?

Run `npx skills add adithya-s-k/FineEnvs --skill deploy-to-hf-spaces -a claude-code`. Or copy the skill folder (content/articles/geoguesser/.ai/skills/deploy-to-hf-spaces in adithya-s-k/FineEnvs) into .claude/skills/deploy-to-hf-spaces in your project. Claude Code loads it when a task matches its description.

How do I install Deploy To Hf Spaces in Codex?

Run `npx skills add adithya-s-k/FineEnvs --skill deploy-to-hf-spaces -a codex`. Or copy the skill folder (content/articles/geoguesser/.ai/skills/deploy-to-hf-spaces in adithya-s-k/FineEnvs) into .agents/skills/deploy-to-hf-spaces in your project. Codex loads it when a task matches its description.

Can I use Deploy To Hf Spaces in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add adithya-s-k/FineEnvs --skill deploy-to-hf-spaces -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deploy-to-hf-spaces, .gemini/skills/deploy-to-hf-spaces, .github/skills/deploy-to-hf-spaces and .opencode/skills/deploy-to-hf-spaces in your project.

What does Deploy To Hf Spaces need to run?

Going by SKILL.md and its folder, Deploy To Hf Spaces needs the command-line tools its instructions call (git and huggingface-cli). Our summary lists: Docker.

Does Deploy To Hf Spaces access the network?

SKILL.md names 1 domain. In commands or code: huggingface.co; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Deploy To Hf Spaces safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Deploy To Hf Spaces use?

Deploy To Hf Spaces is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deploy To Hf Spaces use?

About 864 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Deploy To Hf Spaces?

Skills that share tags, products or a category with Deploy To Hf Spaces: Hugging Face Spaces Deploy (Vincentqyw/image-matching-webui, 1.3k stars), SageMaker Serving Image Selection (huggingface/skills, 11k stars), Hugging Face LLM Trainer (huggingface/skills, 11k stars) and Huggingface LLM Trainer (waybarrios/opencode-power-pack, 534 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deploy To Hf Spaces?

adithya-s-k (a GitHub user) maintains it in adithya-s-k/FineEnvs, which has 461 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 8, 2026.

Source: adithya-s-k/FineEnvs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.