Web development

From infometa/workbuddyskills · View interactive version

Web development is an AI agent skill from the GitHub repository infometa/workbuddyskills. 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)

Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.

If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). 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

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.