Skip to content
Skillv1.0.0

new-provider

Scaffold a new model provider for obot-tools

by David-Li0406(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from David-Li0406/meta-skill-evloving (skill-flow/data/skills-refined-36k/skillsmp/new-provider/SKILL.md). Install upstream with npx skills add David-Li0406/meta-skill-evloving --skill new-provider. Copyright stays with the author.

New Model Provider

Create a new model provider following established patterns.

When to Use

  • Adding support for a new LLM provider (Anthropic, Mistral, etc.)
  • Creating a custom model provider
  • Understanding model provider structure

Available Operations

  1. Scaffold: Create directory structure from template
  2. Configure: Set up tool.gpt and credentials
  3. Implement: Write provider-specific code
  4. Test: Validate the implementation

Instructions

Step 1: Gather Information

Required:

  • Provider name (e.g., "anthropic", "mistral")
  • API base URL
  • Authentication method (API key, OAuth)

Step 2: Copy Template

cp -r obot-tools/openai-model-provider obot-tools/{name}-model-provider

Step 3: Update tool.gpt

See references/tool-gpt-template.md for format:

  • Change Name: to {Name} Model Provider
  • Update Description:
  • Update credential if different auth method

Step 4: Update Go Code

  • Rename package
  • Update API endpoint
  • Adjust request/response mapping if API differs

Step 5: Update index.yaml

Add to modelProviders: section:

- name: {name}-model-provider
  description: {Name} model provider for Obot
  path: ./{name}-model-provider

Step 6: Test

cd obot-tools/{name}-model-provider
export OBOT_{NAME}_MODEL_PROVIDER_API_KEY=...
go run . validate

Resources

Load these Level 3 resources as needed:

  • references/tool-gpt-template.md - GPTScript template for model providers
  • references/provider-patterns.md - Common provider implementation patterns
  • assets/main.go.tmpl - Go main.go template

Examples

Example: Anthropic Provider

User asks: "Create an Anthropic model provider"

Response:

  1. Copy openai-model-provider
  2. Update Name to "Anthropic Model Provider"
  3. Update API endpoint to api.anthropic.com
  4. Adjust message format for Claude API
  5. Test with validate command

Example: Mistral Provider

User asks: "Add Mistral AI support"

Response:

  1. Copy openai-model-provider (Mistral is OpenAI-compatible)
  2. Update Name to "Mistral Model Provider"
  3. Update base URL to api.mistral.ai
  4. Minimal code changes (OpenAI compatible)
  5. Test with validate command

Checklist

Before committing:

  • tool.gpt has correct Name, Description, Tools
  • Environment variable follows pattern: OBOT_{NAME}_MODEL_PROVIDER_*
  • Implements OpenAI-compatible /v1/chat/completions endpoint
  • Error responses are user-friendly
  • Added to index.yaml
  • Tested with go run . validate

Notes

  • Most providers follow OpenAI-compatible format
  • Check if provider has OpenAI-compatible endpoint first
  • Environment variables follow pattern: OBOT_{NAME}_MODEL_PROVIDER_*

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/david-li0406-meta-skill-evloving-new-provider/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

david-li0406-meta-skill-evloving-new-provider.ocm.jsonjson
{
  "ocm": "1",
  "id": "david-li0406-meta-skill-evloving-new-provider",
  "kind": "skill",
  "name": "new-provider",
  "description": "Scaffold a new model provider for obot-tools",
  "publisher": "David-Li0406",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "scaffold",
      "obot",
      "provider",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Scaffold a new model provider for obot-tools"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/David-Li0406/meta-skill-evloving",
      "path": "skill-flow/data/skills-refined-36k/skillsmp/new-provider/SKILL.md",
      "ref": "ca3a335628981df10c36e00cb9850df2c247ab9a",
      "url": "https://github.com/David-Li0406/meta-skill-evloving/blob/ca3a335628981df10c36e00cb9850df2c247ab9a/skill-flow/data/skills-refined-36k/skillsmp/new-provider/SKILL.md",
      "key": "David-Li0406/meta-skill-evloving/skill-flow/data/skills-refined-36k/skillsmp/new-provider/SKILL.md"
    }
  },
  "instructions": "# New Model Provider\n\nCreate a new model provider following established patterns.\n\n## When to Use\n\n- Adding support for a new LLM provider (Anthropic, Mistral, etc.)\n- Creating a custom model provider\n- Understanding model provider structure\n\n## Available Operations\n\n1. **Scaffold**: Create directory structure from template\n2. **Configure**: Set up tool.gpt and credentials\n3. **Implement**: Write provider-specific code\n4. **Test**: Validate the implementation\n\n## Instructions\n\n### Step 1: Gather Information\n\nRequired:\n\n- Provider name (e.g., \"anthropic\", \"mistral\")\n- API base URL\n- Authenticat",
  "cost": {
    "context_tokens": 688
  }
}

Fetch it by URL: GET /api/v1/registry/david-li0406-meta-skill-evloving-new-provider/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.