← Back to list

new-provider
by jrmatherly
AI/MCP Multi-Repo Workspace - Shared configuration and documentation
⭐ 0🍴 0📅 Jan 20, 2026
SKILL.md
name: new-provider description: Scaffold a new model provider for obot-tools version: 1.0.0 author: AI Team tags: [scaffold, obot, provider]
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
- Scaffold: Create directory structure from template
- Configure: Set up tool.gpt and credentials
- Implement: Write provider-specific code
- 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 providersreferences/provider-patterns.md- Common provider implementation patternsassets/main.go.tmpl- Go main.go template
Examples
Example: Anthropic Provider
User asks: "Create an Anthropic model provider"
Response:
- Copy openai-model-provider
- Update Name to "Anthropic Model Provider"
- Update API endpoint to api.anthropic.com
- Adjust message format for Claude API
- Test with validate command
Example: Mistral Provider
User asks: "Add Mistral AI support"
Response:
- Copy openai-model-provider (Mistral is OpenAI-compatible)
- Update Name to "Mistral Model Provider"
- Update base URL to api.mistral.ai
- Minimal code changes (OpenAI compatible)
- 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/completionsendpoint - 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_*
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

