KS
Killer-Skills

create-agent-provider — how to use create-agent-provider how to use create-agent-provider, create-agent-provider setup guide, create-agent-provider alternative, create-agent-provider vs Microsoft Agent Framework, what is create-agent-provider, create-agent-provider install, AgentFrameworkToolkit integration, LLM service integration, OpenAI-compatible API

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing seamless integration with various LLM services through the AgentFrameworkToolkit create-agent-provider is a C# Toolkit that simplifies the creation of Agent Provider NuGet packages for the AgentFrameworkToolkit, supporting integration with multiple LLM services.

Features

Supports OpenAI-compatible API for seamless integration with services like OpenRouter and Cohere
Enables creation of Agent Provider NuGet packages for the AgentFrameworkToolkit
Allows integration with different LLM services, including Anthropic and Google
Provides an OpenAI-Compatible Template for easy implementation
Facilitates the development of custom Agent Providers for specific LLM services

# Core Topics

rwjdk rwjdk
[53]
[5]
Updated: 2/28/2026

Quality Score

Top 5%
44
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add rwjdk/AgentFrameworkToolkit

Agent Capability Analysis

The create-agent-provider MCP Server by rwjdk is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use create-agent-provider, create-agent-provider setup guide, create-agent-provider alternative.

Ideal Agent Persona

Perfect for AI Agents needing seamless integration with various LLM services through the AgentFrameworkToolkit

Core Value

Empowers agents to create a new Agent Provider NuGet package, enabling integration with different LLM services like Anthropic, OpenAI, and Google, using the AgentFrameworkToolkit and supporting OpenAI-compatible APIs

Capabilities Granted for create-agent-provider MCP Server

Creating custom Agent Provider packages for specific LLM services
Integrating OpenAI-compatible LLM services with the AgentFrameworkToolkit
Developing NuGet packages for the AgentFrameworkToolkit to support various LLM services

! Prerequisites & Limits

  • Requires knowledge of the AgentFrameworkToolkit
  • Limited to LLM services with OpenAI-compatible APIs or custom implementation
  • Needs .NET environment for NuGet package creation
Project
SKILL.md
6.1 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8
SKILL.md
Readonly

Create Agent Provider Package

This skill guides you through creating a new Agent Provider NuGet package for the AgentFrameworkToolkit. Agent Providers enable integration with different LLM services (e.g., Anthropic, OpenAI, Google, Mistral).

Quick Decision Guide

Choose implementation approach:

  1. OpenAI-Compatible Provider - If the LLM service has an OpenAI-compatible API:

  2. Custom Provider - If the LLM service has a unique API:

    • Examples: Anthropic (Claude), Google (Gemini), GitHub Models, Mistral
    • See: Custom Provider Template
    • Full control, follows standard patterns

Core Provider Components

Most provider packages include these components (OpenAI-compatible providers reuse AgentFrameworkToolkit.OpenAI.AgentOptions):

1. Connection Class (<Provider>Connection)

  • Manages API credentials and configuration
  • Creates and configures the SDK client
  • Supports network timeout and custom endpoints (if applicable)
  • Provides raw HTTP call inspection hooks (if possible)

2. Agent Factory (<Provider>AgentFactory)

  • Creates agent instances from options (or from simplified overloads)
  • Builds the inner ChatClientAgent (custom providers)
  • Applies middleware via AgentFrameworkToolkit.MiddlewareHelper

3. Agent Options (<Provider>AgentOptions) (custom providers only)

  • Configuration for agent creation (model, instructions, tools, max tokens, etc.)
  • Provider-specific settings (e.g., thinking budget)
  • Middleware configuration (raw HTTP/tool inspection, tool-calling middleware, OpenTelemetry, logging)

4. Agent Wrapper (<Provider>Agent)

  • Inherits from AIAgent
  • Delegates to an inner agent instance
  • Exposes an InnerAgent property

5. Chat Models Constants (<Provider>ChatModels) (only if provider is specific. if it offers multiple LLMs don't include such)

  • Constants for available model IDs
  • Makes model selection discoverable

Implementation Steps

Step 1: Project Setup

bash
1mkdir src/AgentFrameworkToolkit.<Provider>

Important repo conventions (don’t fight the build system):

  • src/* projects inherit defaults from Directory.Build.props (currently net8.0).
  • NuGet packaging defaults are imported via nuget-package.props in each src/* .csproj.
  • Central package versions are in Directory.Packages.props (no versions in .csproj).

Step 2: Implement Core Components

Follow existing providers:

  • OpenAI-compatible: src/AgentFrameworkToolkit.OpenRouter/, src/AgentFrameworkToolkit.XAI/, src/AgentFrameworkToolkit.Cohere/
  • Custom: src/AgentFrameworkToolkit.Anthropic/, src/AgentFrameworkToolkit.GitHub/, src/AgentFrameworkToolkit.Google/, src/AgentFrameworkToolkit.Mistral/

Step 3: Add Service Extensions

Create ServiceCollectionExtensions.cs for dependency injection using the repo naming convention:

  • Add<Provider>AgentFactory(this IServiceCollection services, string apiKey)
  • Add<Provider>AgentFactory(this IServiceCollection services, <Provider>Connection connection)

Step 4: Write Tests (Integration Tests)

Provider tests live in development/Tests/ and make real API calls. See Testing Guide for the repo’s concrete pattern.

Quick checklist:

  1. Add provider project references:
    • development/Tests/Tests.csproj
    • development/Sandbox/Sandbox.csproj
  2. Add provider to the shared test harness:
    • Add a value to AgentProvider enum in development/Tests/TestBase.cs
    • Add a case to GetAgentForScenarioAsync(...) in development/Tests/TestBase.cs
  3. Create development/Tests/<Provider>Tests.cs:
    • Call the shared scenario tests (SimpleAgentTestsAsync, NormalAgentTestsAsync, etc.)
    • Add DI tests for Add<Provider>AgentFactory(...)
  4. Add a sandbox runner in development/Sandbox/Providers/<Provider>.cs and optionally wire it in development/Sandbox/Program.cs
  5. Add your API key to user-secrets:
    • Update development/Secrets/Secrets.cs and development/Secrets/SecretsManager.cs
    • Set the secret using dotnet user-secrets for the development/Secrets/Secrets.csproj project

Step 5: Repository Integration

  1. Add the project to AgentFrameworkToolkit.slnx under /Packages/
  2. Add any new SDK package versions to Directory.Packages.props
  3. Update documentation:
    • Main README.md provider table
    • Provider-specific src/AgentFrameworkToolkit.<Provider>/README.md
    • CHANGELOG.md

Step 6: Validation

bash
1dotnet build --configuration Release

Key Architectural Patterns

Middleware Configuration (custom providers)

Use the shared helper instead of re-implementing ordering rules:

  • AgentFrameworkToolkit.MiddlewareHelper.ApplyMiddleware(...)

Agent Factory Pattern (custom providers)

csharp
1public class <Provider>AgentFactory 2{ 3 public <Provider>Connection Connection { get; } 4 5 public <Provider>AgentFactory(string apiKey); 6 public <Provider>AgentFactory(<Provider>Connection connection); 7 8 public <Provider>Agent CreateAgent(<Provider>AgentOptions options) 9 { 10 // 1. Get SDK client from connection 11 // 2. Build IChatClient (or use SDK-provided one) 12 // 3. Create ChatClientAgent 13 // 4. Apply middleware via MiddlewareHelper 14 // 5. Wrap in provider-specific agent 15 } 16}

Common Pitfalls

  1. Missing XML documentation (warnings are errors in this repo)
  2. Putting versions in .csproj instead of Directory.Packages.props
  3. Forgetting to update AgentFrameworkToolkit.slnx and README.md
  4. Forgetting to add provider to development/Tests/TestBase.cs test harness
  5. Hardcoding API keys instead of using user-secrets (development/Secrets/SecretsManager.cs)

Reference Documentation

Related Skills

Looking for an alternative to create-agent-provider or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication