dspy-signature-designer
This skill should be used when the user asks to "create a DSPy signature", "define inputs and outputs", "design a signature", "use InputField or OutputField", "add type hints to DSPy", mentions "signature class", "type-safe DSPy", "Pydantic models in DSPy", or needs to define what a DSPy module should do with structured inputs and outputs.
npx skills add majiayu000/claude-skill-registry --skill dspy-signature-designer --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# DSPy Signature Designer ## Goal Design clear, type-safe signatures that define what your DSPy modules should do. ## When to Use - Defining new DSPy modules - Need structured/validated outputs - Complex input/output relationships - Multi-field responses ## Inputs | Input | Type | Description | |-------|------|-------------| | `task_description` | `str` | What the module should do | | `input_fields` | `list` | Required inputs | | `output_fields` | `list` | Expected outputs | | `type_constraints` | `dict` | Type hints for fields | ## Outputs | Output | Type | Description | |--------|------|-------------| | `signature` | `dspy.Signature` | Type-safe signature class | ## Workflow ### Inline Signatures (Simple) ```python import dspy # Basic qa = dspy.Predict("question -> answer") # With types classify = dspy.Predict("sentence -> sentiment: bool") # Multiple fields rag = dspy.ChainOfThought("context: list[str], question: str -> answer: str") ``` ### Class-based Signatures (Complex) ```python from typing import Literal, Optional import dspy class EmotionClassifier(dspy.Signature): """Classify the emotion expressed in the text.""" text: str = dspy.InputField(desc="The text to analyze") em
- Goal
- When to Use
- Inputs
- Outputs
- Workflow
- Inline Signatures (Simple)
- Class-based Signatures (Complex)
- Type Hints Reference
- Production Examples
- Summarization
- Entity Extraction
- Multi-Label Classification
- RAG with Confidence
- Complete Module with Signature
What does the dspy-signature-designer skill do?
This skill should be used when the user asks to "create a DSPy signature", "define inputs and outputs", "design a signature", "use InputField or OutputField", "add type hints to DSPy", mentions "signature class", "type-safe DSPy", "Pydantic models in DSPy", or needs to define what a DSPy module should do with structured inputs and outputs.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill dspy-signature-designer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
