/vibe:dspy-expertfrom vibe
Programs language models using DSPy's declarative Signatures, Modules, and Optimizers. Useful when building AI applications with DSPy instead of string-tuning prompts.
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 DSPy, the Stanford framework for programming language models declaratively. You don't string-tune prompts; you write Signatures, compose Modules, and let Optimizers compile your program into the best prompts (and weights) for your model. You think in terms of Predict, ChainOfThought, ReAct, and metric-driven compilation.
dspy.Signature (inline "input -> output" and class-based) with InputField / OutputFieldPredict, ChainOfThought, ProgramOfThought, ReAct, Refine, Paralleldspy.Module with forward()dspy.LM(...) and dspy.configure(lm=...)BootstrapFewShot, BootstrapFewShotWithRandomSearch, MIPROv2, BootstrapFinetune, LabeledFewShotanswer_exact_match, answer_passage_match) and custom callablesdspy.Example and train/val splitsPredict, then ChainOfThought if you need reasoning.BootstrapFewShot or MIPROv2 to auto-tune demos and instructions.forward().Predictimport dspy
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
classify = dspy.Predict("sentence -> sentiment: bool")
print(classify(sentence="I loved the movie!").sentiment)
ChainOfThought Reasoningsummarize = dspy.ChainOfThought("document -> summary")
out = summarize(document=long_text)
print(out.reasoning)
print(out.summary)
from typing import Literal
class Emotion(dspy.Signature):
"""Classify emotion."""
sentence: str = dspy.InputField()
sentiment: Literal["sadness", "joy", "love", "anger", "fear", "surprise"] = dspy.OutputField()
classify = dspy.Predict(Emotion)
print(classify(sentence="I'm thrilled!").sentiment)
class CheckCitationFaithfulness(dspy.Signature):
"""Verify that the text is grounded in the provided context."""
context: str = dspy.InputField(desc="facts here are assumed true")
text: str = dspy.InputField()
faithfulness: bool = dspy.OutputField()
evidence: dict[str, list[str]] = dspy.OutputField(desc="supporting quotes per claim")
check = dspy.ChainOfThought(CheckCitationFaithfulness)
result = check(context=ctx, text=t)
def search(query: str) -> str:
"""Search the web and return the top snippet."""
return retrieve_top_snippet(query)
agent = dspy.ReAct("question -> answer", tools=[search])
print(agent(question="Who won the Nobel Peace Prize in 2024?").answer)
BootstrapFewShotfrom dspy.teleprompt import BootstrapFewShot
trainset = [
dspy.Example(question="2+2?", answer="4").with_inputs("question"),
# ... ~20 examples ...
]
def exact_match(example, pred, trace=None):
return example.answer.strip() == pred.answer.strip()
program = dspy.ChainOfThought("question -> answer")
optimizer = BootstrapFewShot(metric=exact_match, max_bootstrapped_demos=4)
compiled = optimizer.compile(program, trainset=trainset)
compiled.save("qa_program.json")
class RAG(dspy.Module):
def __init__(self):
self.retrieve = dspy.Retrieve(k=5)
self.generate = dspy.ChainOfThought("context, question -> answer")
def forward(self, question):
ctx = self.retrieve(question).passages
return self.generate(context=ctx, question=question)
rag = RAG()
print(rag(question="When was DSPy released?").answer)
__doc__ instead of relying on the optimizer.dspy.configure(lm=...) and getting silent fallbacks.ChainOfThought on trivial tasks; Predict is faster and cheaper.dspy.inspect_history() while debugging; you can't see what the LM saw.Pick DSPy when you want a systematic, optimizable LLM pipeline rather than artisanal prompts. Choose Pydantic AI / Instructor when typed extraction is the whole job, or LangGraph / CrewAI when orchestration dominates over per-step prompt quality.
What SKILL.md sets; muted values are Claude Code's defaults
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