antdv-next/x/x-request
Claude Code and agent skill by antdv-next/x
- community
Checking that the SKILL.md file is still in the repository.
Focus on explaining the practical configuration and usage of XRequest, providing accurate configuration instructions based on official documentation
Install
npx vskill@latest install antdv-next/x/x-requestSKILL.md
π― Skill Positioning
This skill focuses on solving: How to correctly configure XRequest to adapt to various streaming interface requirements.
Table of Contents
- π Quick Start - Get started in 3 minutes
- Dependency Management
- Basic Configuration
- π¦ Technology Stack Overview
- π§ Core Configuration Details
- Global Configuration
- Security Configuration
- Streaming Configuration
- π‘οΈ Security Guide
- Environment Security Configuration
- Authentication Methods Comparison
- π Debugging and Testing
- Debug Configuration
- Configuration Validation
- π Usage Scenarios
- Standalone Usage
- Integration with Other Skills
- π¨ Development Rules
- π Reference Resources
- π Core Reference Documentation
- π SDK Official Documentation
- π» Example Code
π Quick Start
Dependency Management
π System Requirements
| Package | Version Requirement | Auto Install | Purpose | |
|---|---|---|---|---|
| @antdv-next/x-sdk | β₯2.2.2 | β | Core SDK, includes XRequest tool |
π οΈ One-click Installation
Basic Configuration
Simplest Usage
π‘ Tip: XRequest has built-in reasonable default configurations. In most cases, you only need to provide the API URL to use it.
π¦ Technology Stack Overview
ποΈ Technology Stack Architecture
π Core Concepts
| Concept | Role Positioning | Core Responsibilities | Usage Scenarios | |
|---|---|---|---|---|
| XRequest | π Request Tool | Handle all network communication, authentication, error handling | Unified request management | |
| Global Config | βοΈ Config Center | Configure once, use everywhere | Reduce duplicate code | |
| Streaming Config | π Streaming Processing | Support SSE and JSON response formats | AI conversation scenarios |
π§ Core Configuration Details
Core functionality reference content CORE.md
π‘οΈ Security Guide
Environment Security Configuration
π Security Strategies for Different Environments
| Runtime Environment | Security Level | Configuration Method | Risk Description | |
|---|---|---|---|---|
| Browser Frontend | π΄ High Risk | β Prohibit key configuration | Keys will be directly exposed to users | |
| Node.js Backend | π’ Safe | β Environment variable configuration | Keys stored on server side | |
| Proxy Service | π’ Safe | β Same-origin proxy forwarding | Keys managed by proxy service |
π Authentication Methods Comparison
| Authentication Method | Applicable Environment | Configuration Example | Security | |
|---|---|---|---|---|
| Bearer Token | Node.js | Bearer ${process.env.API_KEY} | β Safe | |
| API Key Header | Node.js | X-API-Key: ${process.env.KEY} | β Safe | |
| Proxy Forwarding | Browser | /api/proxy/service | β Safe | |
| Direct Configuration | Browser | Bearer sk-xxx | β Dangerous |
π Debugging and Testing
Debug Configuration
π οΈ Debug Templates
Node.js Debug Configuration:
Frontend Debug Configuration:
Configuration Validation
β Security Check Tools
π Usage Scenarios
Standalone Usage
π― Direct Request Initiation
Integration with Other Skills
π Skill Collaboration Workflow
| Usage Method | Cooperating Skill | Purpose | Example | |
|---|---|---|---|---|
| Standalone | None | Direct network request initiation | Test interface availability | |
| With x-chat-provider | x-chat-provider | Configure requests for custom Provider | Configure private API | |
| With use-x-chat | use-x-chat | Configure requests for built-in Provider | Configure OpenAI API | |
| Complete AI Application | x-request β x-chat-provider β use-x-chat | Configure requests for entire system | Complete AI conversation application |
β οΈ useXChat Integration Security Warning
Important Warning: useXChat is only for frontend environments, XRequest configuration must not contain Authorization!
β Incorrect Configuration (Dangerous):
β Correct Configuration (Safe):
π¨ Development Rules
Test Case Rules
- If the user does not explicitly need test cases, do not add test files
- Only create test cases when the user explicitly requests them
Code Quality Rules
- After completion, must check types: Run
tsc --noEmitto ensure no type errors - Keep code clean: Remove all unused variables and imports
β Configuration Checklist
Before using XRequest, please confirm the following configurations are correctly set:
π Configuration Checklist
| Check Item | Status | Description | |
|---|---|---|---|
| API URL | β Must Configure | XRequest('https://api.xxx.com') | |
| Auth Info | β οΈ Environment Related | FrontendβProhibited, Node.jsβ Available | |
| manual Config | β Provider Scenario | In Provider needs to be set to true, other scenarios need to be set according to actual situation | |
| Other Config | β No Need to Configure | Built-in reasonable default values | |
| Interface Availability | β Recommended Test | Verify with debug configuration |
π οΈ Quick Verification Script
π― Skill Collaboration
π Skill Usage Comparison Table
| Usage Scenario | Required Skills | Usage Order | Completion Time | |
|---|---|---|---|---|
| Test Interface | x-request | Direct Use | 2 minutes | |
| Private API Adaptation | x-request β x-chat-provider | Configure request first, then create Provider | 10 minutes | |
| Standard AI Application | x-request β use-x-chat | Configure request first, then build interface | 15 minutes | |
| Complete Customization | x-request β x-chat-provider β use-x-chat | Complete workflow | 30 minutes |
π Reference Resources
π Core Reference Documentation
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-request/SKILL.md
Popularity
- Repository stars
- 67
- Repository forks
- 10
- 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-request)