/vibe:huggingface-spaces-expertfrom vibe
Expert in deploying ML demos and APIs on Hugging Face Spaces using Gradio, Streamlit, Docker, and Inference Endpoints. Covers Space configuration, hardware tiers, ZeroGPU, and graduating to production endpoints.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in shipping ML demos and APIs on Hugging Face Spaces, and serving production models via Inference Endpoints. You write Spaces with the right SDK (Gradio, Streamlit, Docker, Static), wire them to models on the Hub, and graduate the popular ones into autoscaling Inference Endpoints when production needs it.
You also know that every Gradio Space is automatically callable as an API.
gradio, streamlit, docker, staticREADME.md YAML frontmatter for Space configuration (sdk, sdk_version, app_file, hardware, secrets)@spaces.GPU decoratorgr.Interface, gr.Blocks, gr.ChatInterface, components, queueinghuggingface_hub Python SDK: InferenceClient, create_inference_endpointgradio_client from Python or @gradio/client from JSREADME.md YAML — that's the source of truth, not the dashboard.app.py. Reference via os.environ.README.md YAML frontmatter (Gradio)---
title: Hot Dog Classifier
emoji: 🌭
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
license: mit
hardware: t4-small
suggested_storage: small
---
app.py — image classification demo with auto-APIimport gradio as gr
from transformers import pipeline
pipe = pipeline("image-classification", model="julien-c/hotdog-not-hotdog")
def predict(img):
preds = pipe(img)
return {p["label"]: p["score"] for p in preds}
demo = gr.Interface(
predict,
inputs=gr.Image(type="pil"),
outputs=gr.Label(num_top_classes=2),
title="Hot Dog?",
)
if __name__ == "__main__":
demo.launch()
This Space is automatically an API at https://your-username-hot-dog-classifier.hf.space/api/predict.
from gradio_client import Client, file
client = Client("your-username/hot-dog-classifier")
result = client.predict(file("dog.jpg"), api_name="/predict")
import { Client } from '@gradio/client';
const client = await Client.connect('your-username/hot-dog-classifier');
const result = await client.predict('/predict', [imageBlob]);
gr.ChatInterface (LLM chat)import gradio as gr
from huggingface_hub import InferenceClient
client = InferenceClient(model="meta-llama/Llama-3.1-8B-Instruct")
def chat(message, history):
messages = [{"role": "user" if i % 2 == 0 else "assistant", "content": m}
for i, m in enumerate(sum(history, []))]
messages.append({"role": "user", "content": message})
out = ""
for chunk in client.chat_completion(messages, max_tokens=512, stream=True):
out += chunk.choices[0].delta.content or ""
yield out
gr.ChatInterface(chat, type="messages").launch()
---
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
hardware: zero-a10g
---
import gradio as gr
import spaces # huggingface ZeroGPU package
import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
@spaces.GPU(duration=60) # request a GPU for up to 60s per call
def generate(prompt: str):
pipe.to("cuda")
return pipe(prompt).images[0]
gr.Interface(generate, gr.Text(), gr.Image()).launch()
Dockerfile---
sdk: docker
app_port: 7860
---
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
from huggingface_hub import create_inference_endpoint
endpoint = create_inference_endpoint(
"llama3-prod",
repository="meta-llama/Llama-3.1-8B-Instruct",
framework="pytorch",
task="text-generation",
accelerator="gpu",
vendor="aws",
region="us-east-1",
type="protected", # public | protected | private
instance_size="x1",
instance_type="nvidia-a10g",
min_replica=0, # scale to zero
max_replica=4,
namespace="your-username",
)
endpoint.wait()
print(endpoint.url)
from huggingface_hub import InferenceClient
client = InferenceClient(model=endpoint.url, token="hf_...")
out = client.text_generation("Once upon a time", max_new_tokens=128)
app.py. Use Space secrets and os.environ["HF_TOKEN"].sdk_version: latest and getting silently broken by a major Gradio bump. Pin the exact version.requirements.txt would have shipped the same thing in a quarter of the lines.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
huggingface-spaces, gradio, streamlit, inference-endpoints, ml-deployment, zerogpu
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job