AI Agent Hub
Back to skills
CloudBase Development Guidelines icon

CloudBase Development Guidelines

Development Updated 2026.08.30

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, and ai-model-web, rather than relying on repository paths or generated artifacts.
  • MCP / mcporter first: 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 the EnvId directly; 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 use miniprogram-development, native apps use http-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 the model field of generateText / 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.