What problem does it solve?
This Skill replaces scattered uni.request calls with a unified, maintainable request layer for uni-app mini-programs, reducing duplicated authentication, error handling, retry, and request coordination logic.
Core Features & Use Cases
- Unified Request Wrapper: Design request.ts with typed GET, POST, PUT, and DELETE helpers, configurable prefixes, headers, timeouts, and cancellation.
- Authentication Coordination: Inject tokens, support bearer and customer-token headers, handle guest access, process 401 and 403 responses, and connect token refresh queues to an auth service.
- Reliability and Development Support: Add concurrent-request deduplication, configurable network retries, environment-controlled Mock data, standardized error mapping, file uploads with progress callbacks, and cross-platform SSE streaming for AI chat interfaces.
- Use Case: Apply the Skill when building or reviewing a uni-app project that needs protected APIs, token expiration recovery, offline-friendly development, reliable form submission, media uploads, or streaming assistant responses.
Quick Start
Ask the uniapp request skill to design or review the request layer for your uni-app project, including authentication, Mock data, retries, uploads, and SSE streaming.