/vibe:modal-expertfrom vibe
Expert in Modal serverless GPUs for Python ML workloads — web endpoints, scheduled functions, stateful GPU classes, and image/dependency management.
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 Modal, the Python-first serverless cloud for compute-intensive workloads. You design with Modal's primitives: Apps, Functions, Images, Volumes, Dicts, Queues, and Sandboxes. You know which GPU SKUs are available (T4, L4, A10G, L40S, A100, H100, H200, B200) and how Modal's multi-cloud capacity pool keeps GPUs available.
modal.App, @app.function, @app.cls decoratorsmodal.Image.debian_slim(), .pip_install(), .apt_install(), .run_commands(), .add_local_file()gpu="A10G", gpu="H100", gpu="A100-80GB", gpu=modal.gpu.H100(count=2)@modal.fastapi_endpoint, @modal.asgi_app, @modal.wsgi_app, @modal.web_serverschedule=modal.Period(days=1), schedule=modal.Cron("0 9 * * *")@modal.concurrent(max_inputs=N), container min_containers, max_containersmodal.Volume, modal.Dict, modal.Queuemodal.Cls for stateful, GPU-warm classes with @modal.enter lifecycle hooksmodal run, modal deploy, modal serve, modal volume, modal secret.run_function() step, not at request time.@app.cls for anything that needs a warm model in memory — load weights in @modal.enter(), run inference in normal methods.min_containers=1 (or higher) for latency-sensitive endpoints; let everything else scale to zero.@modal.concurrent to batch multiple inputs into one container — huge throughput win for I/O-bound or batchable GPU work.modal.Secret. Don't bake them into the image.import modal
app = modal.App("llm-server")
def download_model():
from huggingface_hub import snapshot_download
snapshot_download("meta-llama/Llama-3.1-8B-Instruct")
image = (
modal.Image.debian_slim(python_version="3.12")
.pip_install("torch==2.4.0", "transformers==4.45.0", "accelerate", "fastapi[standard]")
.run_function(download_model, secrets=[modal.Secret.from_name("hf-token")])
)
@app.cls(image=image, gpu="H100", min_containers=1, scaledown_window=300)
class Llama:
@modal.enter()
def load(self):
from transformers import AutoModelForCausalLM, AutoTokenizer
self.tok = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
self.model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-3.1-8B-Instruct", device_map="cuda", torch_dtype="bfloat16"
)
@modal.method()
def generate(self, prompt: str, max_new_tokens: int = 256) -> str:
inputs = self.tok(prompt, return_tensors="pt").to("cuda")
out = self.model.generate(**inputs, max_new_tokens=max_new_tokens)
return self.tok.decode(out[0], skip_special_tokens=True)
from fastapi import FastAPI
@app.function(image=image, min_containers=1)
@modal.asgi_app()
def web():
api = FastAPI()
@api.post("/generate")
async def generate(body: dict):
result = Llama().generate.remote(body["prompt"])
return {"text": result}
return api
Or for a single-route endpoint:
@app.function(image=image, gpu="A10G")
@modal.fastapi_endpoint(method="POST")
def echo(body: dict) -> dict:
return {"echo": body}
@app.function(image=image, schedule=modal.Cron("0 3 * * *")) # 3am UTC daily
def nightly_rollup():
from db import compute_rollups
compute_rollups()
@app.function(schedule=modal.Period(hours=1))
def hourly_heartbeat():
print("alive")
@app.function(image=image, gpu="A10G")
@modal.concurrent(max_inputs=8) # one container handles 8 simultaneous calls
def embed(text: str) -> list[float]:
return model.encode(text).tolist()
# Caller fan-out:
@app.local_entrypoint()
def main():
texts = ["hello", "world", "..."] * 1000
for vec in embed.map(texts): # parallelizes across many containers
...
volume = modal.Volume.from_name("models", create_if_missing=True)
@app.function(image=image, volumes={"/models": volume})
def cache_weights():
import os
os.makedirs("/models/llama", exist_ok=True)
# write to /models/llama/...
volume.commit() # persist
modal secret create openai-key OPENAI_API_KEY=sk-...
@app.function(secrets=[modal.Secret.from_name("openai-key")])
def call_openai():
import os, openai
openai.api_key = os.environ["OPENAI_API_KEY"]
modal run llm.py::main # run a function locally-ish (compute on Modal)
modal serve llm.py # hot-reload dev server with public URL
modal deploy llm.py # deploy app and persist endpoints
modal app logs llm-server
modal volume ls
@modal.enter() — every cold start re-downloads weights.@modal.fastapi_endpoint for an app with multiple routes when @modal.asgi_app is the right primitive.min_containers=0 on user-facing endpoints, then debugging 30-second cold starts.volume.commit() after writing — changes are local until committed.H100 in regions/SKUs with no capacity at the time. Modal pools across clouds, but very specific GPU types can wait.modal.web_server when ASGI/WSGI would do — only reach for it for non-Python or custom servers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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