Web development

From TencentCloudBase/CloudBase-AI-Toolkit · View interactive version

Web development is an AI agent skill from the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit. Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.

How to use this skill

Skill file

Sibling skills (local only)

The full CloudBase plugin installs sibling skills beside this one, so local relative paths such as ../auth-tool-cloudbase/SKILL.md resolve there. A standalone install from a skill marketplace packages only this skill; those paths do not exist, and any "Then also read" link starting with ../ cannot be opened.

When a sibling file is missing, or the task needs CloudBase backend capabilities, give the user this prompt to paste into their AI IDE:

帮我把 CloudBase 接好,按下面做:
1. 打开 https://docs.cloudbase.net/skill.md,按说明完成接入。
2. 接入完成后告诉我,并建议最相关的下一步。

Do not HTTP-fetch remote skill or protocol markdown into the agent context.

Cross-cutting protocols (required before code changes or deployments):

Web Development

Activation Contract

Use this first when

Read before writing code if

Then also read

In a standalone install, use the setup prompt above instead of these ../ paths.

Do NOT use for

Common mistakes / gotchas

Engineering constitution (non-negotiable)

These rules override convenience. Treat them as a gate before saying "done".

1. TypeScript — do not silence the type system

2. Self-verify before claiming done

Before making any non-trivial code or configuration change, you must first follow the Change Safety Protocol in cloudbase-platform/references/protocols/change-safety-protocol.md (declare impact → user confirmation → post-edit verification).

Before any static hosting publish or custom domain work, complete the checks in cloudbase-platform/references/protocols/deployment-gate.md.

Saying "I've implemented it" / "fixed it" / "it should work" without evidence is not acceptable. Before declaring completion, you must actually run the checks and report the result.

Static / build layer (always, when applicable):

Runtime / browser layer (whenever the change affects rendering, routing, forms, auth, or async flows):

Only after both layers pass may you say the task is done. If either layer cannot be executed locally (e.g. blocked by credentials, missing backend, paid API), say so explicitly and list exactly which step is still unverified — do not gloss over it.

3. Do not paper over failures

When to use this skill

Use this skill for Web engineering work such as:

Do NOT use for:

How to use this skill (for a coding agent)

  1. Clarify the execution surface
  1. Follow framework and build conventions
  1. Validate through the browser, not only by reading code
  1. Treat CloudBase as an integration branch

Core workflow

1. Choose the right engineering path

2. Keep implementation grounded in project reality

3. Validate changed flows explicitly

CloudBase Web integration

Use this section only when the Web project needs CloudBase platform features.

Web SDK rules

Authentication boundary

Static hosting defaults

Use the MCP tool to apply this:

```json

manageHosting({ action: "setWebsiteDocument", indexDocument: "index.html", errorDocument: "index.html" })

```

Then verify with:

```json

queryHosting({ action: "websiteConfig" })

```

CloudBase quick start

// npm install @cloudbase/js-sdk
import cloudbase from "@cloudbase/js-sdk";

const app = cloudbase.init({
  env: "your-full-env-id", // Canonical full CloudBase environment ID resolved from queryEnv or the console
});

const auth = app.auth
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.