Cursor Advanced Composer
jeremylongshore/tons-of-skills-marketplace
Advanced Cursor Composer techniques: agent mode, parallel agents, complex refactoring, and multi-step orchestration.
A skill your agent uses for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-composition --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dspy-advanced-module-composition .claude/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .claude/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-compositionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-composition --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/dspy-advanced-module-composition .agents/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .agents/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-composition --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/dspy-advanced-module-composition .cursor/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .cursor/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/OmidZamani/dspy-skills.git --path skills/dspy-advanced-module-composition--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-composition --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/dspy-advanced-module-composition .gemini/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .gemini/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-compositionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/dspy-advanced-module-composition .github/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .github/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install OmidZamani/dspy-skills dspy-advanced-module-composition --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/OmidZamani/dspy-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/dspy-advanced-module-composition .opencode/skills/dspy-advanced-module-composition && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dspy-advanced-module-composition" agent skill from https://github.com/OmidZamani/dspy-skills/tree/master/skills/dspy-advanced-module-composition into .opencode/skills/dspy-advanced-module-composition/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dspy-advanced-module-composition", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dspy-advanced-module-compositionA skill your agent uses for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
Dspy Advanced Module Composition is an agent skill from OmidZamani/dspy-skills. Use for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `example.py`).
The repository describes itself as: Collection of Claude Skills for DSPy framework - program language models, optimize prompts, and build RAG pipelines systematically. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f5db3b7. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
dspy.aigithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dspy Advanced Module Composition loads about 2.2k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 219 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from OmidZamani/dspy-skills at commit f5db3b7, republished under its MIT licence (© OmidZamani). 219 words, ~2,159 tokens.
.claude/skills/dspy-advanced-module-composition/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Compose complex DSPy programs using the Ensemble optimizer, MultiChainComparison for reasoning synthesis, and sequential module patterns.
| Input | Type | Description |
|---|---|---|
modules | list[dspy.Module] | Modules to compose |
composition_type | str | "ensemble", "sequential", "comparison" |
| Output | Type | Description |
|---|---|---|
composed_program | dspy.Module | Composed multi-module program |
Combine multiple programs using the Ensemble optimizer:
import dspy
from dspy.teleprompt import Ensemble
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
# Define a signature for the task
class BasicQA(dspy.Signature):
"""Answer questions with short factoid answers."""
question = dspy.InputField()
answer = dspy.OutputField()
# Create multiple program instances (should be optimized/compiled programs)
# For simple demonstration, we'll use different predictors
program1 = dspy.Predict(BasicQA)
program2 = dspy.ChainOfThought(BasicQA)
program3 = dspy.Predict(BasicQA)
# Ensemble is an optimizer that compiles programs together
ensemble = Ensemble(reduce_fn=dspy.majority)
ensembled_program = ensemble.compile([program1, program2, program3])
# Use the ensembled program
result = ensembled_program(question="What is 2 + 2?")
print(result.answer) # Voted answerCompare multiple reasoning attempts:
import dspy
class BasicQA(dspy.Signature):
"""Answer questions with short factoid answers."""
question = dspy.InputField()
answer = dspy.OutputField(desc="often between 1 and 5 words")
class ComparisonPipeline(dspy.Module):
def __init__(self):
# Generate multiple reasoning attempts
self.cot = dspy.ChainOfThought(BasicQA)
# Compare M attempts and select best
# Must pass a Signature class, not a string
self.compare = dspy.MultiChainComparison(
BasicQA,
M=3, # Number of attempts to compare
temperature=0.7
)
def forward(self, question):
# Generate multiple completions to compare
# Each completion must have rationale/reasoning field
completions = [
self.cot(question=question)
for _ in range(3)
]
# MultiChainComparison synthesizes them into best answer
# Pass completions as positional arg, not keyword arg
return self.compare(completions, question=question)
# Usage
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
pipeline = ComparisonPipeline()
result = pipeline(question="Explain quantum computing")
print(f"Best answer: {result.answer}")
print(f"Rationale: {result.rationale}")Chain modules for multi-step workflows:
import dspy
# Define signatures for each step
class QueryRewrite(dspy.Signature):
"""Rewrite a question for better retrieval."""
question = dspy.InputField()
refined_query: str = dspy.OutputField()
class GenerateAnswer(dspy.Signature):
"""Generate answer from context and question."""
context = dspy.InputField()
question = dspy.InputField()
answer = dspy.OutputField()
class ValidateAnswer(dspy.Signature):
"""Validate answer quality."""
answer = dspy.InputField()
question = dspy.InputField()
is_valid: bool = dspy.OutputField()
confidence: float = dspy.OutputField()
class SequentialRAG(dspy.Module):
"""Multi-step RAG pipeline."""
def __init__(self):
# Step 1: Query rewriting
self.rewrite = dspy.Predict(QueryRewrite)
# Step 2: Retrieval
self.retrieve = dspy.Retrieve(k=5)
# Step 3: Answer generation
self.generate = dspy.ChainOfThought(GenerateAnswer)
# Step 4: Validation
self.validate = dspy.Predict(ValidateAnswer)
def forward(self, question):
# Sequential execution
refined = self.rewrite(question=question)
passages = self.retrieve(refined.refined_query).passages
answer_pred = self.generate(
context=passages,
question=question
)
validation = self.validate(
answer=answer_pred.answer,
question=question
)
return dspy.Prediction(
answer=answer_pred.answer,
is_valid=validation.is_valid,
confidence=validation.confidence
)
# Usage
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
rag = SequentialRAG()
result = rag(question="What causes lightning?")
print(f"Answer: {result.answer} (valid: {result.is_valid})")Handle failures with fallback modules:
import dspy
import logging
logger = logging.getLogger(__name__)
class BasicQA(dspy.Signature):
"""Answer questions with short factoid answers."""
question = dspy.InputField()
answer = dspy.OutputField()
class RobustQA(dspy.Module):
"""Fallback strategy for errors."""
def __init__(self):
self.primary = dspy.ChainOfThought(BasicQA)
self.fallback = dspy.Predict(BasicQA)
def forward(self, question):
try:
result = self.primary(question=question)
if result.answer and len(result.answer) > 10:
return result
except Exception as e:
logger.error(f"Primary failed: {e}")
return self.fallback(question=question)import dspy
from dspy.teleprompt import BootstrapFewShot, Ensemble
class GenerateAnswer(dspy.Signature):
"""Generate answer from context and question."""
context = dspy.InputField()
question = dspy.InputField()
answer = dspy.OutputField()
class MultiStrategyQA(dspy.Module):
"""Production QA with retrieval."""
def __init__(self):
self.retrieve = dspy.Retrieve(k=3)
self.generate = dspy.ChainOfThought(GenerateAnswer)
def forward(self, question: str):
context = self.retrieve(question).passages
return self.generate(context=context, question=question)
# Usage with optimization
dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
qa = MultiStrategyQA()
# First, optimize the base program
optimizer = BootstrapFewShot(
metric=lambda ex, pred, trace: ex.answer in pred.answer,
max_bootstrapped_demos=3
)
compiled_qa = optimizer.compile(qa, trainset=trainset)
# Then create ensemble from multiple optimized programs
# (train with different seeds or optimizers to get diversity)
program1 = optimizer.compile(qa, trainset=trainset)
program2 = optimizer.compile(qa, trainset=trainset)
program3 = optimizer.compile(qa, trainset=trainset)
ensemble = Ensemble(reduce_fn=dspy.majority)
final_program = ensemble.compile([program1, program2, program3])© OmidZamani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/dspy-advanced-module-composition of OmidZamani/dspy-skills.
Open the folder on GitHubat commit f5db3b7
Dspy Advanced Module Composition next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dspy Advanced Module Composition this skillOmidZamani/dspy-skills | 124 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Cursor Advanced Composerjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Motion Advancedaffaan-m/ECC | 276k | 1 repos | ~4.7k | Automated safety check: Pass | MIT | |
| DSPy Language Model ProgrammingOrchestra-Research/AI-Research-SKILLs | 13k | 9 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Es Modulesthedaviddias/Front-End-Checklist | 74k | — | ~482 | Automated safety check: Pass | MIT | |
| Composition Patternssickn33/agentic-awesome-skills | 47k | 1 repos | ~742 | Automated safety check: Pass | MIT |
jeremylongshore/tons-of-skills-marketplace
Advanced Cursor Composer techniques: agent mode, parallel agents, complex refactoring, and multi-step orchestration.
affaan-m/ECC
Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree.
Orchestra-Research/AI-Research-SKILLs
Teaches an agent to build LM pipelines, RAG systems and agents in DSPy using signatures, modules and optimizers instead of hand-tuned prompts.
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing scripts, client components, bundles, or runtime behavior related to Use ES modules (import/export).
sickn33/agentic-awesome-skills
A skill your agent uses when working with composition-patterns tasks or workflows
sickn33/agentic-awesome-skills
Define and run multi-container Docker applications using Docker Compose.
OmidZamani/dspy-skills
A skill your agent uses when you need to QA audit and fix a plugin skill file.
OmidZamani/dspy-skills
A skill your agent uses for integrating DSPy with Haystack, optimizing Haystack prompts, improving retrieval pipelines, and extracting DSPy prompts.
OmidZamani/dspy-skills
A skill your agent uses for DSPy adapter selection, JSONAdapter, XMLAdapter, ChatAdapter, native function calling, structured outputs, and multimodal inputs like dspy.Image or dspy.Audio.
OmidZamani/dspy-skills
A skill your agent uses for BetterTogether, prompt plus weight optimization, fine-tuning sequences, and strategy chains like p - w - p.
OmidZamani/dspy-skills
A skill your agent uses for BootstrapFewShot, bootstrapped demonstrations, teacher-model demos, and low-data DSPy prompt optimization.
OmidZamani/dspy-skills
A skill your agent uses for creating custom DSPy modules, extending dspy.Module, reusable components, stateful modules, serialization, and module testing.
A skill your agent uses for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows. Dspy Advanced Module Composition is an agent skill from OmidZamani/dspy-skills. Use for composing DSPy modules with Ensemble, MultiChainComparison, ensemble voting, sequential pipelines, and multi-program workflows.
Dspy Advanced Module Composition fits situations like: composing DSPy modules with Ensemble; multiChainComparison; ensemble voting; sequential pipelines.
Run `npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a claude-code`. Or copy the skill folder (skills/dspy-advanced-module-composition in OmidZamani/dspy-skills) into .claude/skills/dspy-advanced-module-composition in your project. Claude Code loads it when a task matches its description.
Run `npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a codex`. Or copy the skill folder (skills/dspy-advanced-module-composition in OmidZamani/dspy-skills) into .agents/skills/dspy-advanced-module-composition in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OmidZamani/dspy-skills --skill dspy-advanced-module-composition -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dspy-advanced-module-composition, .gemini/skills/dspy-advanced-module-composition, .github/skills/dspy-advanced-module-composition and .opencode/skills/dspy-advanced-module-composition in your project.
Going by SKILL.md and its folder, Dspy Advanced Module Composition needs Python for the scripts in its folder. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Glob, Grep.
SKILL.md names 2 domains. As links in the text: dspy.ai and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dspy Advanced Module Composition is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dspy Advanced Module Composition: Cursor Advanced Composer (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Motion Advanced (affaan-m/ECC, 276k stars), DSPy Language Model Programming (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Es Modules (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
OmidZamani (a GitHub user) maintains it in OmidZamani/dspy-skills, which has 124 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on June 23, 2026.
Source: OmidZamani/dspy-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.