Introduction¶
When web frontend tasks involve “changing routing, integrating login, packaging, deployment, and connecting CloudBase,” models often tend to mix framework scaffolding, static hosting, and @cloudbase/js-sdk modifications in a single conversation, lacking the constraints of type checking and browser acceptance testing. The following introduces @tencent-adm/web-development (Web Development · CloudBase Web Development) on SkillHub: assuming the direction is already set, it converges implementation, integration, debugging, building, deployment, and verification into an executable engineering workflow.
What is this¶
One-sentence positioning: A guide-style Agent Skill for Tencent Cloud CloudBase Web frontend development, covering React / Vue / Vite engineering, static hosting deployment, @cloudbase/js-sdk integration, and boundaries related to built-in authentication.
Maintainer: Tencent Cloud CloudBase Team (SkillHub category dev-programming, source enterprise).
Coordinates and Version: @tencent-adm/web-development, current version 2.36.0 (subject to the SkillHub page).
Overview on SkillHub: Rating 100000, Downloads 32184; Tag requires_api_key=false, no additional API Key is required to install the Skill itself.
Problems solved: It writes “when to use this Skill, and when to switch to sibling Skills like ui-design / auth / WeChat integration” into an activation contract; it provides hard rules for common pitfalls such as TypeScript, self-verification, deployment gates, and SPA hosting in History mode, reducing vague “should work” style answers.
Core Functions¶
The following content is derived from the SKILL.md description of this Skill, summarizing only the defined capability boundaries.
Applicable Tasks (Activation Contract)¶
Prioritize enabling this Skill in the following situations:
- Implementing, integrating, debugging, building, deploying, or verifying web frontends or static sites;
- The design direction is already determined, or the user requires engineering execution rather than visual exploration;
- Involving React, Vue, Vite, routing, browser-side verification, or CloudBase Web integration.
Not applicable: Pure UI direction and aesthetic exploration (should use ui-design first), Mini Programs, pure native Apps, pure backend services; details of WeChat Pay / Official Account OAuth contracts should be transferred to cloudbase-wechat-integration.
Engineering Norms (Excerpt)¶
The Skill marks some rules as “non-negotiable”:
- TypeScript: Prohibited from using
any,@ts-ignore, etc., to bypass type errors; useunknownfor boundary unknown data and narrow it down. - Self-verification before completion: Non-trivial changes must follow the Change Safety Protocol in the sibling Skill
cloudbase-platform; static hosting releases must pass the Deployment Gate.tsc --noEmit, lint, and build must be run; when involving page interactions, useagent-browserto perform browser-level verification according tobrowser-testing.md. - SPA History Mode: When using React Router / Vue Router History mode, CloudBase static hosting must set the 404 error document to
index.html, otherwiseNoSuchKey/ 404 will occur when refreshing or directly accessing sub-routes.
CloudBase Web Integration Points¶
- SDK Installation: Bundler projects should prioritize
npm install @cloudbase/js-sdk; pure static HTML or fragments can use the CDNhttps://static.cloudbase.net/cloudbase-js-sdk/latest/cloudbase.full.js. - Initialization: Use the full Environment ID (
EnvId), do not pass aliases directly intocloudbase.init({ env }). - Authentication: Web login must use CloudBase SDK built-in capabilities, do not move Web login logic to cloud functions; login and Provider configuration transfer to
auth-tool-cloudbase,auth-web-cloudbase. - Static Hosting: Build first, then deploy; default preference for hash routing (when no server-side rewriting); the initial frontend application deployment path and “managed path upload” are distinguished in the Skill (
manageApps/manageHosting, and explicitly do not fall back totcb deploy).
SDK Quick Initialization Example (Original Skill text):
// npm install @cloudbase/js-sdk
import cloudbase from "@cloudbase/js-sdk";
const app = cloudbase.init({
env: "your-full-env-id", // Full EnvId resolved from console or queryEnv
});
const auth = app.auth;
History Mode SPA Hosting Configuration Example (via MCP tools, Original Skill text):
manageHosting({ action: "setWebsiteDocument", indexDocument: "index.html", errorDocument: "index.html" })
Verification:
queryHosting({ action: "websiteConfig" })
Sibling Skills and Local References¶
CloudBase series Skills are usually installed together with plugins. This Skill requires referencing sibling Skills via local relative paths (e.g., ../auth-tool-cloudbase/SKILL.md). If missing, prompt the user to install the complete CloudBase plugin, and do not fetch remote Skill documentation via HTTP into the context.
Installation and Enablement¶
Via SkillHub CLI¶
First, confirm whether skillhub is installed:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub official installation documentation (full installation or CLI only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing this Skill, use --dir to point to the current Agent’s skills directory (installing to the default ./skills/ may not be recognized):
skillhub install @tencent-adm/web-development --dir <skills directory>
The general installation hint provided by the SkillHub page is: Please follow https://skillhub.cn/install/skillhub.md to install @tencent-adm/web-development (can be sent to AI for execution).
Common Agent skills Directories¶
Subject to the SkillHub installation documentation:
| Agent / Client | skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
See Section 4 of https://skillhub.cn/install/skillhub.md for other client paths.
Official Entry Points:
- SkillHub Display Page: https://www.skillhub.cn/skills/tencent-adm/web-development
- API Coordinate Page: https://api.skillhub.cn/tencent-adm/web-development
Typical Usage¶
When facing coding Agents, the Skill suggests working in the following order (summary):
- Clarify execution scope: Distinguish between scaffolding, page implementation, debugging, deployment, verification, or CloudBase integration; patch existing projects according to TODOs / existing handlers to avoid parallel creation of boilerplate pages.
- Follow repository conventions: Prioritize existing stacks; default to Vite for new projects; code in
src, artifacts indist(unless the repository has other conventions). - Browser verification: Interactions, routing, and rendering related changes should be smoke tested with
agent-browseraccording tobrowser-testing.md; do not just look at the code. - CloudBase as a branch: Only integrate SDK, authentication, and static hosting when the project actually needs platform capabilities; before visual specifications are finalized, load
ui-designfirst and output a Design Specification.
Core workflow paths (Original Skill classification):
- React / Vue features: Implement within existing components, routing, and state conventions;
- New Web applications: Prioritize Vite;
- Debugging: Browser reproduction → narrow down to page or interaction → modify code;
- CloudBase: Connect Web SDK, authentication, and hosting after the basic frontend path is clear.
See frameworks.md in the Skill package for more detailed framework descriptions, and browser-testing.md for browser workflows (located in the Skill directory after installation, do not fabricate unlisted configuration items).
Applicable Scenarios and Notes¶
Who is it for
- Teams already using or planning to use CloudBase for Web static hosting and
@cloudbase/js-sdk; - Developers who want Agents to enforce type discipline, building, and browser acceptance testing in React / Vue / Vite tasks;
- Frontend integration work that needs to align with CloudBase authentication and platform protocols (Change Safety, Deployment Gate).
Limitations and Notes
- Pure visual direction, Mini Programs, and backend-only tasks should switch to corresponding Skills to avoid scope drift.
- The complete experience depends on sibling Skills under the same plugin (such as
cloudbase-platform,auth-web-cloudbase); when only a single Skill is installed, reference paths may be missing, and the plugin needs to be supplemented as prompted by the Skill. - The Skill requires the use of documented SDK APIs and prohibits fabricating methods; Environment IDs must be resolved to full
EnvId. - SkillHub statistics (downloads, ratings) will change over time, subject to the values seen on the SkillHub page before installation.
Conclusion¶
@tencent-adm/web-development extends CloudBase Web frontend from “writing pages” to “deliverables”: framework and build conventions, SDK and authentication boundaries, static hosting and SPA routing, as well as type and browser verification before completion. If your Agent frequently handles React / Vue / Vite and CloudBase hosting, you can install it to the corresponding skills directory using the commands above.
Official Address: https://api.skillhub.cn/tencent-adm/web-development
SkillHub Page: https://www.skillhub.cn/skills/tencent-adm/web-development