Agent skill

Hugging Face Spaces Deploy

by Vincentqyw in 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.

Apache-2.0Auto-check passedDevOps & Cloud

Install Hugging Face Spaces Deploy

skills CLI
$ npx skills add Vincentqyw/image-matching-webui --skill deploy-hf -a claude-code

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

GitHub CLI
$ gh skill install Vincentqyw/image-matching-webui deploy-hf --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/Vincentqyw/image-matching-webui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/deploy-hf .claude/skills/deploy-hf && 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-hf
GitHub stars
1.3k
Token cost
~721 tokens
SKILL.md length
192 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

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

  • Works in 4 steps: Release new version on GitHub → Update huggingface branch → Deploy to test Space → …
  • Releasing a new imcui version
  • SKILL.md covers Prerequisites, Branch Setup (one-time), Release & Deploy Workflow and HuggingFace Space Configuration, plus 1 more section
  • Calls git and gh; reaches huggingface.co and huggingface.co.username

What it does

A full release pipeline for the image-matching-webui project: bump the version in pyproject.toml, add any new dependencies, tag and publish the release on GitHub, then deploy to a Hugging Face test Space and finally the production Space. The GitHub release triggers CI workflows that publish a Docker Hub image and a PyPI wheel.

Deployment uses a lightweight orphan branch named huggingface that holds app.py, requirements.txt pinned to the imcui version, packages.txt, config/app.yaml and a README with Space metadata. The agent waits for the PyPI release to finish (about 10 minutes), force-pushes the branch to the test remote, checks the Space, and only then pushes to production. ZeroGPU needs the Gradio SDK, and Python is pinned to 3.12 because imcui does not yet support 3.13. Config changes on main are synced across by hand.

When your agent uses it

  • Releasing a new imcui version
  • Deploying the huggingface branch to the test Space before production
  • Syncing matcher config from main into the huggingface branch

Example prompts

  • “Ship a new version of imcui and deploy it to Hugging Face.”
  • “Push the huggingface branch to the test Space and tell me when I can check it.”
  • “New matchers were added on main, so sync config/app.yaml to the huggingface branch.”

Requirements

  • A checkout of the image-matching-webui repository
  • GitHub CLI (gh) and Hugging Face CLI (hf), both authenticated
  • Git remotes named hf-test and hf-prod for the two Spaces

Workflow steps

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

  1. Release new version on GitHub
  2. Update huggingface branch
  3. Deploy to test Space
  4. Deploy to production Space

What it can do on your machine

Read from SKILL.md and the folder at commit aa4a6d0. 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
    • gh

    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
    • huggingface.co.username

    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

Hugging Face Spaces Deploy loads about 721 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 192 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
~721

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 Vincentqyw/image-matching-webui at commit aa4a6d0, republished under its Apache-2.0 licence (© Vincentqyw). 192 words, ~721 tokens.

Download SKILL.mdSave it as .claude/skills/deploy-hf/SKILL.md (or your agent's skills folder).
name
deploy-hf
description
Release a new imcui version and deploy to HuggingFace Spaces (test → prod). Invoke when user asks to release, deploy, or ship a new version.

Deploy to HuggingFace Spaces

This skill handles the full release pipeline: version bump → tag → release → deploy to HF test → deploy to HF prod.

Prerequisites

  • Working inside image-matching-webui project root
  • Authenticated with GitHub (gh) and HuggingFace (hf)
  • HF git credential configured (see branch setup below)

Branch Setup (one-time)

bash
# Add HF remotes (only needed once)
git remote add hf-test https://huggingface.co/spaces/Realcat/imcui
git remote add hf-prod https://huggingface.co/spaces/Realcat/image-matching-webui

# Configure git credential for HF
git config --global credential.https://huggingface.co.username Realcat

Release & Deploy Workflow

Step 1: Release new version on GitHub
bash
# On main branch
# 1. Bump version in pyproject.toml
# 2. Add any new deps to requirements.txt
# 3. Commit
git add pyproject.toml requirements.txt
git commit -m "chore: bump version to X.Y.Z"
git push origin main

# 4. Tag and release
git tag -a vX.Y.Z -m "vX.Y.Z: <description>"
git push origin vX.Y.Z
gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."

This triggers two CI workflows:

  • docker-publish.yml (on tag v*) → Docker Hub image
  • release.yml (on release published) → PyPI whl
Step 2: Update huggingface branch
bash
git checkout huggingface
# Update requirements.txt: imcui==X.Y.Z
git add requirements.txt
git commit -m "chore: bump imcui to X.Y.Z"
git push origin huggingface
Step 3: Deploy to test Space

Wait for PyPI release to complete (~10 min), then:

bash
git push hf-test huggingface:main --force

Verify at https://huggingface.co/spaces/Realcat/imcui

Step 4: Deploy to production Space

After confirming test Space works:

bash
git push hf-prod huggingface:main --force

HuggingFace Space Configuration

The huggingface branch is a lightweight orphan branch containing only deployment files:

FilePurpose
app.pyLauncher importing from imcui package
requirements.txtimcui==X.Y.Z (pulls all deps from PyPI)
packages.txtSystem deps: build-essential, ffmpeg, libsm6, libxext6
config/app.yamlFull matcher zoo config
README.mdHF metadata: sdk: gradio, python_version: "3.12", pinned: true

ZeroGPU requires Gradio SDK (not Docker). Python pinned to 3.12 because imcui does not support 3.13 yet.

Sync config from main

When main's imcui/config/app.yaml changes (new matchers added), sync to huggingface branch:

bash
git checkout huggingface
cp imcui/config/app.yaml config/app.yaml
git add config/app.yaml
git commit -m "chore: sync config from main"
git push origin huggingface

© Vincentqyw, 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 .claude/skills/deploy-hf of Vincentqyw/image-matching-webui.

Open the folder on GitHubat commit aa4a6d0

Compare with similar skills

Hugging Face Spaces Deploy 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.

Hugging Face Spaces Deploy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hugging Face Spaces Deploy this skillVincentqyw/image-matching-webui1.3k—~721Automated safety check: PassApache-2.0
Generate Openenv Envadithya-s-k/FineEnvs443—~2.4kAutomated safety check: PassApache-2.0
Huggingface Spaceshuggingface/skills11k1 repos~4.4kAutomated safety check: PassApache-2.0
Deploy To Hf Spacesadithya-s-k/FineEnvs443—~864Automated safety check: PassApache-2.0
Huggingface Spaceswaybarrios/opencode-power-pack533—~4.2kAutomated safety check: PassApache-2.0
Huggingface Spacessickn33/agentic-awesome-skills47k1 repos~3.9kAutomated safety check: PassApache-2.0

Similar skills

  • Generate Openenv Env

    adithya-s-k/FineEnvs

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

    443 GitHub stars~2.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
  • Deploy To Hf Spaces

    adithya-s-k/FineEnvs

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

    443 GitHub stars~864 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Huggingface Spaces

    waybarrios/opencode-power-pack

    Build, deploy, debug, or maintain a Hugging Face Space using Gradio, Docker, or Static SDKs.

    533 GitHub stars~4.2k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Huggingface Spaces

    sickn33/agentic-awesome-skills

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

    47k GitHub starsUsed in 1 repo~3.9k tokens
    AI & LLM EngineeringAuto-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

More from Vincentqyw/image-matching-webui

  • Image Matcher Integration

    Vincentqyw/image-matching-webui

    Adds a new local feature matching model from a GitHub repository to the image-matching-webui project as a working WebUI option.

    1.3k GitHub stars~4.8k tokensUpdated 2 days ago
    Auto-check passed

Questions about Hugging Face Spaces Deploy

What does Hugging Face Spaces Deploy do?

Releases a new imcui version on GitHub, then deploys it to a test and a production Hugging Face Space from a dedicated huggingface branch. toml, add any new dependencies, tag and publish the release on GitHub, then deploy to a Hugging Face test Space and finally the production Space. The GitHub release triggers CI workflows that publish a Docker Hub image and a PyPI wheel.

When should I use Hugging Face Spaces Deploy?

Hugging Face Spaces Deploy fits situations like: releasing a new imcui version; deploying the huggingface branch to the test Space before production; syncing matcher config from main into the huggingface branch.

How do I install Hugging Face Spaces Deploy in Claude Code?

Run `npx skills add Vincentqyw/image-matching-webui --skill deploy-hf -a claude-code`. Or copy the skill folder (.claude/skills/deploy-hf in Vincentqyw/image-matching-webui) into .claude/skills/deploy-hf in your project. Claude Code loads it when a task matches its description.

How do I install Hugging Face Spaces Deploy in Codex?

Run `npx skills add Vincentqyw/image-matching-webui --skill deploy-hf -a codex`. Or copy the skill folder (.claude/skills/deploy-hf in Vincentqyw/image-matching-webui) into .agents/skills/deploy-hf in your project. Codex loads it when a task matches its description.

Can I use Hugging Face Spaces Deploy 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 Vincentqyw/image-matching-webui --skill deploy-hf -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-hf, .gemini/skills/deploy-hf, .github/skills/deploy-hf and .opencode/skills/deploy-hf in your project.

What does Hugging Face Spaces Deploy need to run?

Going by SKILL.md and its folder, Hugging Face Spaces Deploy needs the command-line tools its instructions call (git and gh). Our summary lists: A checkout of the image-matching-webui repository; GitHub CLI (gh) and Hugging Face CLI (hf), both authenticated; Git remotes named hf-test and hf-prod for the two Spaces.

Does Hugging Face Spaces Deploy access the network?

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

Is Hugging Face Spaces Deploy 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 Hugging Face Spaces Deploy use?

Hugging Face Spaces Deploy 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 Hugging Face Spaces Deploy use?

About 721 tokens (SKILL.md is roughly 2.9k 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 Hugging Face Spaces Deploy?

Skills that share tags, products or a category with Hugging Face Spaces Deploy: Generate Openenv Env (adithya-s-k/FineEnvs, 443 stars), Huggingface Spaces (huggingface/skills, 11k stars), Deploy To Hf Spaces (adithya-s-k/FineEnvs, 443 stars) and Huggingface Spaces (waybarrios/opencode-power-pack, 533 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hugging Face Spaces Deploy?

Vincentqyw (a GitHub user) maintains it in Vincentqyw/image-matching-webui, which has 1,307 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 5, 2026.

Source: Vincentqyw/image-matching-webui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.