
from cloudbase-skills15
Reference guide for browser-side CloudBase storage using @cloudbase/js-sdk: upload, temp URLs, download, delete, and CORS/security-domain best practices.
This reference skill documents how to perform browser-based storage operations with the CloudBase Web SDK. It explains initializing the SDK, uploading files from frontends, creating temporary preview/download URLs, deleting objects, and handling download flows in client code. The file also includes a local-development recipe for matching dev origins to CloudBase security domains.
Use when implementing or debugging browser uploads/downloads that rely on @cloudbase/js-sdk: uploadFile, getTempFileURL, downloadFile, or deleteFile. Use it to resolve CORS/security-domain failures during local development or on custom domains. Do NOT use for backend storage administration or Mini Program file APIs.
Useful to coding assistants that can generate or patch frontend JavaScript/TypeScript (Copilot, Codex, Cursor, Claude Code, Gemini). The guidance is best consumed by agents that edit client-side code or advise on CORS and environment configuration.
Reference skill for browser-side CloudBase storage using @cloudbase/js-sdk. Covers upload, download, temp URLs, delete, CORS/security-domain config, and PG/pgstore-specific patterns. Well-structured with activation contracts, common mistakes, and minimal checklists. No scripts included — purely a reference document. Niche audience limited to CloudBase/Tencent Cloud developers.
No security issues found — no curl-pipe-bash, no hardcoded credentials, no destructive commands. The skill is a pure reference/documentation skill with no executable scripts. Activation contract and scope boundaries are well-defined. Architecture is good with frontmatter, clear sections, and progressive disclosure via sibling references, but it's a single large monolithic document rather than using references/ or scripts/ directories. Usefulness is limited by niche audience (CloudBase developers).