antdv-next/x/x-chat-provider
Claude Code and agent skill by antdv-next/x
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Focus on implementing custom Chat Provider, helping to adapt any streaming interface to Antdv Next X standard format
Install
npx vskill@latest install antdv-next/x/x-chat-providerSKILL.md
🎯 Skill Positioning
This skill focuses on solving one problem: How to quickly adapt your streaming interface to Antdv Next X's Chat Provider.
Not involved: useXChat usage tutorial (that's another skill).
Table of Contents
- 📦 Technology Stack Overview
- Antdv Next X Ecosystem
- Core Concepts
- 🚀 Quick Start
- Dependency Management
- Built-in Provider
- When to Use Custom Provider
- 📋 Four Steps to Implement Custom Provider
- Step1: Analyze Interface Format
- Step2: Create Provider Class
- Step3: Check Files
- Step4: Use Provider
- 🔧 Common Scenario Adaptation
- 📋 Joint Skill Usage
- Scenario1: Complete AI Conversation Application
- Scenario2: Only Create Provider
- Scenario3: Use Built-in Provider
- ⚠️ Important Reminders
- Mandatory Rule: Prohibit Writing request Method
- ⚡ Quick Checklist
- 🚨 Development Rules
- 🔗 Reference Resources
- 📚 Core Reference Documentation
- 🌐 SDK Official Documentation
- 💻 Example Code
📦 Technology Stack Overview
🏗️ Antdv Next X Ecosystem Architecture
| Layer | Package Name | Core Purpose | Typical Usage Scenarios | |
|---|---|---|---|---|
| UI Layer | @antdv-next/x | Vue 3 UI component library | Build chat interfaces, bubbles, input boxes | |
| Logic Layer | @antdv-next/x-sdk | Development toolkit | Data flow management, Provider, Hook | |
| Render Layer | @antdv-next/x-markdown | Markdown renderer | Content display, code highlighting |
⚠️ Important Reminder: These three packages have different functional positioning, please import required features from the correct package```ts// ✅ Correct import examplesimport { Bubble } from "@antdv-next/x"; // UI componentimport { AbstractChatProvider } from "@antdv-next/x-sdk"; // Provider base classimport { XRequest } from "@antdv-next/x-sdk"; // Request tool```
🔑 Core Concept Analysis
| Concept | Role Positioning | Core Responsibility | Usage Scenario | |
|---|---|---|---|---|
| Chat Provider | 🔄 Data Adapter | Convert any interface format to Antdv Next X standard format | Private API adaptation, format conversion | |
| useXChat | 🧩 Vue 3 Composable | Manage conversation state, message flow, request control | Build AI conversation interface | |
| XRequest | 🌐 Request Tool | Handle all network communication, authentication, error handling | Unified request management |
🚀 Quick Start
📋 Environment Preparation
System Requirements
| Package | Version Requirement | Auto Install | Purpose | |
|---|---|---|---|---|
| @antdv-next/x-sdk | ≥0.0.1 | ✅ | Core SDK, includes Provider and Hook | |
| @antdv-next/x | Latest version | ✅ | UI component library, build chat interface |
🛠️ One-click Environment Check
📊 Version Compatibility Matrix
| SDK Version | Supported Features | Compatibility | |
|---|---|---|---|
| ≥0.0.1 | Full Provider functionality | ✅ Recommended |
🎯 Provider Selection Decision Tree
🏭 Built-in Provider Overview
Out-of-the-box Providers
| Provider Type | Applicable Scenario | Usage Method | |
|---|---|---|---|
| OpenAI Provider | Standard OpenAI API | Direct import use | |
| DeepSeek Provider | Standard DeepSeek API | Direct import use |
Quick Decision Guide
| Scenario | Recommended Solution | Example | |
|---|---|---|---|
| Call official OpenAI | Built-in OpenAI Provider | new OpenAIProvider() | |
| Call official DeepSeek | Built-in DeepSeek Provider | new DeepSeekProvider() | |
| Company internal API | Custom Provider | See four-step implementation | |
| Third-party non-standard API | Custom Provider | See four-step implementation |
📋 Four Steps to Implement Custom Provider
🎯 Implementation Path Overview
Step1: Analyze Interface Format ⏱️ 2 minutes
📋 Interface Information Collection Table
| Information Type | Example Value | Your Interface | |
|---|---|---|---|
| Interface URL | https://your-api.com/chat | _____________ | |
| Request Method | POST | _____________ | |
| Request Format | JSON | _____________ | |
| Response Format | Server-Sent Events | _____________ | |
| Authentication Method | Bearer Token | _____________ |
🔍 Interface Format Template
✅ Request Format Example
✅ Response Format Example
Step2: Create Provider Class ⏱️ 5 minutes
🏗️ Code Template (Copy and Use)
🚨 Development Notes
- ✅ Only change 3 places: interface types, class name, response conversion logic
- ✅ Prohibit implementing request method: Network requests handled by XRequest
- ✅ Maintain type safety: Use TypeScript strict mode
Step3: Check Validation ⏱️ 1 minute
✅ Quick Checklist
| Check Item | Status | Description | |
|---|---|---|---|
| Correct class name | ⏳ | MyChatProvider → Your class name | |
| Type matching | ⏳ | Interface types match actual API | |
| Complete methods | ⏳ | All 3 methods implemented | |
| No request method | ⏳ | Confirm no request method implemented | |
| Type check passed | ⏳ | tsc --noEmit no errors |
🔍 Validation Code
Step4: Configure Usage ⏱️ 1 minute
🔧 Complete Integration Example
🎉 Usage Advantages
- Zero network code: XRequest handles all network details
- Type safety: Complete TypeScript support
- Easy testing: Can mock XRequest for unit testing
- Unified configuration: Authentication, parameters, error handling centralized management
🔧 Common Scenario Adaptation
📚 Scenario Adaptation Guide
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/x-skill/skills/x-chat-provider/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 11
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/antdv-next/x/x-chat-provider)