Pudu Cloud API
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_d100ce3d/pudu-open-api.
About this skill
Problem Addressed
When integrating Pudu robot Open APIs, engineers often need to manage credentials, cluster endpoints, path prefixes, parameter shapes, and response validation at the same time. If these details are scattered across docs, scripts, and logs, failures can surface as 401, 403, 404, or an HTTP success that is still a business failure.
How It Works
- Credential checks: Prefer
PUDU_API_APP_KEYandPUDU_API_APP_SECRET; prompt for missing values and maskApiAppSecretinstead of echoing full secrets. - Cluster confirmation: Map
PUDU_API_CLUSTERvalues such ascn,sea,de, andusto the correspondinghostname; require explicit user selection when the cluster is ambiguous instead of defaulting tocn. - Endpoint lookup: Read the matching
assets/*.jsonspec files for robot status, delivery, errands, lifting and tray tasks, cruise guidance, calls, Flash Cabinet, media, control reporting, and analytics. - Request execution: Prefer
pudu-request.js, with fallbacks to Python, Go, Java, and C# scripts when needed; include the required/pudu-entryor/data-boardpath prefix defined by the spec. - Result rendering: Treat the call as successful only when the HTTP status is
200andmessage === "SUCCESS"; otherwise report the error code and remediation hint.
Boundaries
This skill is intended for developers who already have valid Pudu Open Platform credentials and want to call Open APIs directly. It does not replace API permission provisioning, and parameters should not be guessed from natural language alone. Confirm sn, shopId, cluster, and API version against the spec files.
Use Cases
- Query robot status by SN, render location and task state cleanly.
- Set the cluster, then call delivery APIs to dispatch multi-stop tasks.
- Build analytics request params from spec files and fetch store dashboards.
- Diagnose 401/404 errors by checking credentials, cluster, and path prefix.
Best For
- Backend engineers integrating Pudu Open Platform APIs need reliable status, delivery, and analytics calls.
- System integrators wiring robot task data into business systems need cluster-aware, SN-based requests.
- Developers maintaining multilingual callers want the same Open API request via JS, Python, or Go.
- Engineers debugging permission or path errors need to align credentials, cluster, and API specs.
Related Skills
Analyzes code to extract control and data flow, then outputs Markdown with Mermaid source and high-resolution PNG diagrams.
For development and programming scenarios around VSCode and TypeScript IDE.
A TypeScript-oriented Windmill Wrap development reference.
A Python-based Selenium wrapper for engineering browser automation workflows.