CloudBase Development Guidelines
Paste the following prompt into your AI chat to install this skill:
Please install @user_15292d5a/yjkj-cloudbase according to https://skillhub.cn/install/skillhub.md.
About this skill
What It Solves
In CloudBase projects, failures are often not caused by a missing frontend snippet, but by routing the wrong scenario: Web login handled like a mini program flow, native apps routed through Web auth, AI calls debugged only at the model parameter, or management actions attempted before MCP availability is confirmed. This skill turns CloudBase development into a set of routing rules: identify the platform, auth domain, resource type, and call boundary before opening the matching capability docs.
How It Works
- Identify the scenario first, then read the matching skill: use stable identifiers such as
auth-tool,auth-web,http-api,cloud-functions,cloudrun-development, andai-model-web, rather than relying on repository paths or generated artifacts. - MCP /
mcporterfirst: before querying environments, deploying, or managing databases and functions, confirm CloudBase MCP is available and inspect tool schemas before execution. - Explicit
EnvId: code, configuration, and command examples should name theEnvIddirectly; aliases or short names should be resolved to the canonical full environment ID first. - Respect platform boundaries: Web login uses
auth-tool/auth-web, WeChat mini programs useminiprogram-development, native apps usehttp-api, and NoSQL vs. MySQL follow their own SDK or OpenAPI paths. - AI calls need eligibility checks:
createModel(...)accepts a GroupName, while the concrete model ID belongs in themodelfield ofgenerateText/streamText; check resource-package and growth-plan status before code changes. - Verify with evidence: avoid masking type issues with
any, require static checks and builds, and add runtime verification when routing, forms, auth, or async UI is affected.
Boundaries and Caveats
Use this for development and troubleshooting across CloudBase Web, mini programs, native apps, cloud functions, CloudRun, AI agents, and AI model integration. It does not replace official SDK docs, and it is not a substitute for clarifying the platform, environment, or MCP setup when those are ambiguous. If the same implementation path fails two or three times, stop patching and re-check routing, auth domain, permission model, and SDK boundary.
Use Cases
- In a Web login project, configure SMS/email sign-in and publishable keys using auth-tool and auth-web.
- When integrating a WeChat mini program with CloudBase, separate wx.cloud from Web SDK, login state, and DB access.
- Before calling an LLM from Node.js, check Token Credits packages and place the model ID in the model field.
- When deploying CloudRun backends, read cloudrun-development first and check Dockerfile, CORS, and container boundaries.
Best For
- Frontend engineers handling Web login and auth who need to avoid mixing mini program or native app auth paths.
- Platform engineers maintaining CloudBase cloud functions and CloudRun backends who need to verify MCP, EnvId, and runtime boundaries before deployment.
- Node.js or Web engineers integrating LLMs who need to troubleshoot Token Credits, GroupName, and streaming calls.
- Mini program engineers doing cloud development who need to separate wx.cloud, NoSQL Web SDK, and relational database management.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.