Agent skill

Dspy Agent Framework Quick Ref

by Qredence in Qredence/agentic-fleet

Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs.

MITAuto-check passedAI & LLM Engineering

Install Dspy Agent Framework Quick Ref

skills CLI
$ npx skills add Qredence/agentic-fleet --skill dspy-agent-framework-quick-ref -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Qredence/agentic-fleet dspy-agent-framework-quick-ref --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Qredence/agentic-fleet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.fleet/context/skills/dspy-agent-framework-quick-ref .claude/skills/dspy-agent-framework-quick-ref && rm -rf skills-src

Use ~/.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/

Facts

Skill name
dspy-agent-framework-quick-ref
GitHub stars
111
Token cost
~1k tokens
SKILL.md length
23 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs.

  • Tasks that involve Building AI agents
  • SKILL.md covers Typed Signatures, DSPy Assertions, Routing Cache and DSPy-Enhanced Agent, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Multi-agent orchestration

What it does

Dspy Agent Framework Quick Ref is an agent skill from Qredence/agentic-fleet. Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Building AI agents, Multi-agent orchestration and Third-party API integration. The repository describes itself as: Adaptive Agentic AI Reasoning using Microsoft Agent Framework -- Join the Discord for suggestion or support ! https://discord.gg/ebgy7gtZHK. The licence is MIT.

When your agent uses it

  • Tasks that involve Building AI agents
  • Tasks that involve Multi-agent orchestration
  • Tasks that involve Third-party API integration

Example prompts

  • “/dspy-agent-framework-quick-ref”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 46a254b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python, bash and yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dspy Agent Framework Quick Ref loads about 1k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 23 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from Qredence/agentic-fleet at commit 46a254b, republished under its MIT licence (© Qredence). 23 words, ~1,000 tokens.

Download SKILL.mdSave it as .claude/skills/dspy-agent-framework-quick-ref/SKILL.md (or your agent's skills folder).
name
dspy-agent-framework-quick-ref
description
Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs.

DSPy + Agent Framework Quick Reference

Typed Signatures

python
class TaskRouting(dspy.Signature):
    task: str = dspy.InputField(desc="Task to route")
    team: str = dspy.InputField(desc="Available agents")
    decision: RoutingDecisionOutput = dspy.OutputField()

class RoutingDecisionOutput(BaseModel):
    assigned_to: list[str] = Field(min_length=1)
    execution_mode: Literal["delegated", "sequential", "parallel"]
    subtasks: list[str] = Field(default_factory=list)
    tool_plan: list[str] = Field(default_factory=list)
    reasoning: str

DSPy Assertions

python
dspy.Assert(condition, "error message")  # Hard constraint
dspy.Suggest(condition, "guidance")       # Soft constraint

def validate_agent_exists(agents, available):
    Assert(len(agents) > 0, "Must assign at least one agent")
    for a in agents:
        Assert(a.lower() in [x.lower() for x in available],
               f"Agent {a} not in pool")

Routing Cache

python
class RoutingCache:
    def __init__(self, ttl_seconds=300, max_size=1024):
        self.ttl = ttl_seconds
        self.max_size = max_size

    def get(self, key): ...  # Returns None if expired/missing
    def set(self, key, value): ...  # Auto-evicts oldest
    def clear(self): ...

DSPy-Enhanced Agent

python
class DSPyEnhancedAgent(ChatAgent):
    def __init__(self, reasoning_strategy="chain_of_thought"):
        self.reasoning_strategy = reasoning_strategy
        if reasoning_strategy == "react":
            self.react_module = dspy.ReAct("q -> a", tools=self.tools)
        elif reasoning_strategy == "chain_of_thought":
            self.cot_module = dspy.ChainOfThought("q -> a")

Workflow with Checkpoints

python
from agent_framework._workflows import (
    WorkflowStartedEvent, WorkflowStatusEvent,
    WorkflowOutputEvent, ExecutorCompletedEvent,
    RequestInfoEvent, FileCheckpointStorage
)

class SupervisorWorkflow:
    def __init__(self, checkpoint_dir=".var/checkpoints"):
        self.checkpoint_storage = FileCheckpointStorage(checkpoint_dir)

    async def resume(self, checkpoint_id: str):
        state = self.checkpoint_storage.load(checkpoint_id)
        self.context.restore_from_state(state)

Agent Handoffs

python
class HandoffManager:
    def prepare_handoff(self, from_agent, to_agent, context):
        return {
            "task": context["original_task"],
            "findings": context.get("findings", []),
            "decisions": context.get("decisions", []),
            "from_agent_summary": self._summarize(from_agent)
        }

    def execute_sequential_with_handoffs(self, agents, tasks):
        context = {"original_task": tasks[0], "findings": [], "decisions": []}
        results = []
        for i, (agent, task) in enumerate(zip(agents, tasks)):
            handoff = self.prepare_handoff(
                agents[i-1] if i > 0 else None, agent, context
            )
            result = self._run_with_context(agent, task, handoff)
            context["findings"].extend(result.get("findings", []))
            results.append(result)
        return results

GEPA Optimization

bash
agentic-fleet optimize  # Outputs: .var/cache/dspy/compiled_reasoner.json

Config:

yaml
dspy:
  use_typed_signatures: true
  enable_routing_cache: true
  routing_cache_ttl_seconds: 300
  optimization:
    use_gepa: true
    gepa_auto: light

Key Imports

python
# DSPy
import dspy
from dspy import TypedPredictor, ChainOfThought, ReAct, ProgramOfThought

# Agent Framework
from agent_framework._agents import ChatAgent
from agent_framework._workflows import Workflow, AgentThread
from agent_framework._types import AgentRunResponse, ChatMessage

# Pydantic
from pydantic import BaseModel, Field
from typing import Literal

© Qredence, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .fleet/context/skills/dspy-agent-framework-quick-ref of Qredence/agentic-fleet.

Open the folder on GitHubat commit 46a254b

Compare with similar skills

Dspy Agent Framework Quick Ref 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.

Dspy Agent Framework Quick Ref compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dspy Agent Framework Quick Ref this skillQredence/agentic-fleet111—~1kAutomated safety check: PassMIT
Ms Agent Framework RAGshuyu-labs/WebCode278—~1.1kAutomated safety check: PassCustom licence
Langchain ArchitectureHermeticOrmus/LibreUIUX-Claude-Code11110 repos~2.5kAutomated safety check: PassMIT
Langgraph Agent Patternssoba-labs/langchain-agent-skills107—~3.6kAutomated safety check: PassMIT
AI Engineerkid-sid/claude-spellbook189—~3.7kAutomated safety check: PassMIT
Crewaidavila7/claude-code-templates32k3 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Ms Agent Framework RAG

    shuyu-labs/WebCode

    Comprehensive guide for building Agentic RAG systems using Microsoft Agent Framework in C.

    278 GitHub stars~1.1k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Langchain Architecture

    HermeticOrmus/LibreUIUX-Claude-Code

    Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns.

    111 GitHub starsUsed in 10 repos~2.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Langgraph Agent Patterns

    soba-labs/langchain-agent-skills

    Implement multi-agent coordination patterns (supervisor-subagent, router, orchestrator-worker, handoffs) for LangGraph applications.

    107 GitHub stars~3.6k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • AI Engineer

    kid-sid/claude-spellbook

    A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…

    189 GitHub stars~3.7k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Crewai

    davila7/claude-code-templates

    Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies.

    32k GitHub starsUsed in 3 repos~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Building Agent Systems

    telagod/code-abyss

    AI agent and LLM system engineering reference covering single-agent dev (ReAct, tool calling, plan-execute), multi-agent coordination (swarm, role decomposition, file locking), LLM security (prompt…

    244 GitHub stars~691 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed

More from Qredence/agentic-fleet

All 11 skills in this repo
  • Changelog Generator

    Qredence/agentic-fleet

    Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes.

    111 GitHub starsUsed in 20 repos~772 tokens
    Auto-check passed
  • Python Backend Reviewer

    Qredence/agentic-fleet

    Expert Python backend code reviewer that identifies over-complexity, duplicates, bad optimizations, and violations of best practices.

    111 GitHub stars~3.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Memory System

    Qredence/agentic-fleet

    Complete guide to the AgenticFleet memory system. An agent skill from Qredence/agentic-fleet.

    111 GitHub stars~1.2k tokensUpdated 5 mo ago
    Auto-check passed
  • Recall

    Qredence/agentic-fleet

    Semantic search for memory. An agent skill from Qredence/agentic-fleet.

    111 GitHub stars~445 tokensUpdated 5 mo ago
    Auto-check passed
  • Fleet Agent

    Qredence/agentic-fleet

    Context-aware development assistant for AgenticFleet with auto-learning and dual memory (NeonDB + ChromaDB).

    111 GitHub stars~994 tokensUpdated 5 mo ago
    Auto-check passed
  • Initiate Memory

    Qredence/agentic-fleet

    Comprehensive guide for initializing or reorganizing agent memory and project context.

    111 GitHub stars~2k tokensUpdated 5 mo ago
    Auto-check passed

Questions about Dspy Agent Framework Quick Ref

What does Dspy Agent Framework Quick Ref do?

Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs. Dspy Agent Framework Quick Ref is an agent skill from Qredence/agentic-fleet. Quick reference card for DSPy + Agent Framework integration patterns: typed signatures, assertions, routing cache, and agent handoffs.

When should I use Dspy Agent Framework Quick Ref?

Dspy Agent Framework Quick Ref fits situations like: tasks that involve Building AI agents; tasks that involve Multi-agent orchestration; tasks that involve Third-party API integration.

How do I install Dspy Agent Framework Quick Ref in Claude Code?

Run `npx skills add Qredence/agentic-fleet --skill dspy-agent-framework-quick-ref -a claude-code`. Or copy the skill folder (.fleet/context/skills/dspy-agent-framework-quick-ref in Qredence/agentic-fleet) into .claude/skills/dspy-agent-framework-quick-ref in your project. Claude Code loads it when a task matches its description.

How do I install Dspy Agent Framework Quick Ref in Codex?

Run `npx skills add Qredence/agentic-fleet --skill dspy-agent-framework-quick-ref -a codex`. Or copy the skill folder (.fleet/context/skills/dspy-agent-framework-quick-ref in Qredence/agentic-fleet) into .agents/skills/dspy-agent-framework-quick-ref in your project. Codex loads it when a task matches its description.

Can I use Dspy Agent Framework Quick Ref in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Qredence/agentic-fleet --skill dspy-agent-framework-quick-ref -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-agent-framework-quick-ref, .gemini/skills/dspy-agent-framework-quick-ref, .github/skills/dspy-agent-framework-quick-ref and .opencode/skills/dspy-agent-framework-quick-ref in your project.

What does Dspy Agent Framework Quick Ref need to run?

SKILL.md names no scripts, command-line tools or credentials: Dspy Agent Framework Quick Ref is instructions for the agent only. Our summary lists: Python 3.

Does Dspy Agent Framework Quick Ref access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dspy Agent Framework Quick Ref safe to install?

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.

What licence does Dspy Agent Framework Quick Ref use?

Dspy Agent Framework Quick Ref is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dspy Agent Framework Quick Ref use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dspy Agent Framework Quick Ref?

Skills that share tags, products or a category with Dspy Agent Framework Quick Ref: Ms Agent Framework RAG (shuyu-labs/WebCode, 278 stars), Langchain Architecture (HermeticOrmus/LibreUIUX-Claude-Code, 111 stars), Langgraph Agent Patterns (soba-labs/langchain-agent-skills, 107 stars) and AI Engineer (kid-sid/claude-spellbook, 189 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dspy Agent Framework Quick Ref?

Qredence (a GitHub organization) maintains it in Qredence/agentic-fleet, which has 111 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on April 13, 2026.

Source: Qredence/agentic-fleet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.