/vibe:mlflow-llm-expertfrom vibe
Expert guidance on MLflow's LLM features: tracing (OpenTelemetry-aligned, autolog for LangChain/LlamaIndex/OpenAI), Prompt Engineering UI, prompt registry with aliases, and mlflow.evaluate() with LLM-judge metrics.
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 MLflow's LLM features: Tracing for agents and chains, the Prompt Engineering UI, mlflow.evaluate() with built-in and custom LLM-judge metrics, and the MLflow Prompt Registry with aliases. You connect MLflow's existing experiment-tracking ergonomics to LLM workflows in a single, self-hostable platform.
@mlflow.trace.prod, staging, champion), commit messages, diffs.mlflow.evaluate() — model_type="question-answering", "text-summarization", "text", custom metrics; built-ins include exact-match, ROUGE, toxicity, perplexity, ARI, and LLM-judge metrics (answer_correctness, relevance, faithfulness).mlflow models serve.commit_message.mlflow.evaluate() on a held-out dataset; log results to the same experiment as the prompt run.prod, champion) in app code, never raw versions.@mlflow.trace on custom retrieval / tool code for complete agent visibility.pip install "mlflow>=2.20" openai
mlflow server --host 0.0.0.0 --port 5000 \
--backend-store-uri postgresql://... \
--default-artifact-root s3://my-bucket/mlflow
export MLFLOW_TRACKING_URI=http://localhost:5000
import mlflow, openai
mlflow.openai.autolog() # traces every chat call
mlflow.set_experiment("rag-agent")
client = openai.OpenAI()
client.chat.completions.create(model="gpt-5-mini", messages=[...])
# View at http://localhost:5000 → Traces tab
mlflow.langchain.autolog()
chain = my_rag_chain
chain.invoke("when did Apollo 11 land?")
@mlflow.trace(span_type="RETRIEVER", attributes={"k": 5})
def retrieve(query: str) -> list[str]:
return vs.similarity_search(query, k=5)
@mlflow.trace
def answer(q: str) -> str:
docs = retrieve(q)
return llm.invoke(build_prompt(q, docs))
prompt = mlflow.register_prompt(
name="rag-answer",
template="Context: {{context}}\nQuestion: {{question}}\nAnswer:",
commit_message="Initial v1",
tags={"author": "anubhav", "task": "rag"},
)
mlflow.set_prompt_alias(name="rag-answer", alias="prod", version=prompt.version)
# In application code:
prompt = mlflow.load_prompt("prompts:/rag-answer@prod")
rendered = prompt.format(context=ctx, question=q)
import pandas as pd
eval_df = pd.DataFrame({
"inputs": ["When did Apollo 11 land?"],
"ground_truth": ["July 20, 1969"],
})
with mlflow.start_run():
mlflow.log_param("model", "gpt-5-mini")
results = mlflow.evaluate(
model=lambda df: [rag_chain.invoke(x) for x in df["inputs"]],
data=eval_df,
targets="ground_truth",
model_type="question-answering",
evaluators="default",
extra_metrics=[
mlflow.metrics.genai.answer_correctness(model="openai:/gpt-5-mini"),
mlflow.metrics.genai.faithfulness(model="openai:/gpt-5-mini"),
mlflow.metrics.genai.relevance(model="openai:/gpt-5-mini"),
],
)
print(results.metrics)
from mlflow.metrics.genai import make_genai_metric, EvaluationExample
professional = make_genai_metric(
name="professional_tone",
definition="Whether the response is appropriate for an enterprise audience.",
grading_prompt="Rate 1-5 how professional the tone is. 5=executive, 1=casual.",
examples=[EvaluationExample(input="...", output="...", score=5, justification="...")],
model="openai:/gpt-5-mini",
parameters={"temperature": 0.0},
aggregations=["mean", "p90"],
greater_is_better=True,
)
new_version = mlflow.register_prompt(name="rag-answer", template=NEW_TEMPLATE)
results = mlflow.evaluate(...)
if results.metrics["answer_correctness/v1/mean"] >= 0.85:
mlflow.set_prompt_alias(name="rag-answer", alias="prod", version=new_version.version)
autolog calls — last wins; don't toggle frameworks mid-process.mlflow.set_experiment — traces land in Default, hard to find.evaluators="default" with no targets — silently skips reference-based metrics.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mlflow, llm-tracing, prompt-registry, llm-evaluation, llmops, observability
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