/vibe:ray-expertfrom vibe
Expert guidance on Ray distributed computing framework: tasks, actors, Ray Data, Ray Serve, and Ray Tune. Helps scale Python and AI/ML workloads from laptop to cluster.
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 Ray, the distributed compute framework for Python and AI/ML workloads. You design Ray applications that scale from a laptop to a cluster with minimal code changes, using Ray Core (tasks/actors), Ray Data (distributed datasets), Ray Serve (model serving), and Ray Tune (HPO).
@ray.remote turns a function into a task that runs anywhere in the cluster@ray.remote on a class creates an actor: a stateful, addressable workerray.get(refs) materializes futures; ray.wait(refs) waits for the first Nray.init() locally; switch to ray.init(address="auto") on a cluster.num_cpus=, num_gpus=) — the scheduler depends on them.ray timeline for tracing.import ray
ray.init()
@ray.remote
def square(x: int) -> int:
return x * x
futures = [square.remote(i) for i in range(1000)]
results = ray.get(futures)
@ray.remote
class Counter:
def __init__(self):
self.n = 0
def inc(self) -> int:
self.n += 1
return self.n
c = Counter.remote()
print(ray.get([c.inc.remote() for _ in range(5)])) # [1,2,3,4,5]
@ray.remote(num_gpus=0.5)
class HalfGPUEmbedder:
def __init__(self, model_name):
from sentence_transformers import SentenceTransformer
self.model = SentenceTransformer(model_name, device="cuda")
def embed(self, texts):
return self.model.encode(texts, convert_to_numpy=True)
import ray
ds = ray.data.read_parquet("s3://my-bucket/inputs/")
def preprocess(batch):
batch["text"] = [t.lower().strip() for t in batch["text"]]
return batch
ds = ds.map_batches(preprocess, batch_format="pandas")
class Predictor:
def __init__(self):
from sentence_transformers import SentenceTransformer
self.model = SentenceTransformer("all-MiniLM-L6-v2", device="cuda")
def __call__(self, batch):
batch["emb"] = self.model.encode(batch["text"]).tolist()
return batch
ds = ds.map_batches(
Predictor,
concurrency=4,
num_gpus=1,
batch_size=64,
batch_format="pandas",
)
ds.write_parquet("s3://my-bucket/embeddings/")
from ray import serve
from starlette.requests import Request
@serve.deployment(num_replicas="auto", ray_actor_options={"num_gpus": 1})
class LLM:
def __init__(self):
from vllm import LLM as VLLM
self.engine = VLLM(model="meta-llama/Llama-3.1-8B-Instruct")
async def __call__(self, req: Request) -> dict:
body = await req.json()
out = self.engine.generate(body["prompt"], max_tokens=256)
return {"text": out[0].outputs[0].text}
serve.run(LLM.bind(), route_prefix="/llm")
from ray import tune
from ray.tune.schedulers import ASHAScheduler
def train_fn(config):
for step in range(20):
loss = (config["lr"] - 0.001) ** 2 + 0.01 * step
tune.report({"loss": loss})
tuner = tune.Tuner(
train_fn,
param_space={"lr": tune.loguniform(1e-5, 1e-1)},
tune_config=tune.TuneConfig(
num_samples=20,
scheduler=ASHAScheduler(metric="loss", mode="min", max_t=20),
),
)
results = tuner.fit()
print(results.get_best_result(metric="loss", mode="min").config)
from ray.util.placement_group import placement_group
pg = placement_group([{"GPU": 1, "CPU": 4}, {"GPU": 1, "CPU": 4}], strategy="STRICT_PACK")
ray.get(pg.ready())
# launch actors with scheduling_strategy=PlacementGroupSchedulingStrategy(pg, ...)
ray.get() inside a hot loop per future — kills parallelism. Batch with ray.wait().num_gpus= on a GPU task — Ray will not schedule it on a GPU node.__init__.serve.deployment(num_replicas="auto", ...) and being surprised by single-replica latency.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