cloudbase-sites-runtime
Use when the user wants to develop, run, preview, save, deploy, or roll back a CloudBase Web app in this conversation as a Lovable/Codex-Sites-like vibe- coding session — i.e. any request that maps to "spin up a React+Vite project, see it live in the browser, iterate, save versions, deploy".
Install / Use
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtimeInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
OperationsSupported Platforms
Our assessment of cloudbase-sites-runtime
cloudbase-sites-runtime scores 86/100 on our quality scale, 401st of 740 Operations skills we index.
Its SKILL.md is 19 KB long, well organised into 17 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 1,124 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 9 days ago, so cloudbase-sites-runtime is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
cloudbase-sites-runtime compared with similar skills
All 4 of these similar skills score higher than cloudbase-sites-runtime; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cloudbase-sites-runtime (this skill)by TencentCloudBase | 86 | 1.1k | 9d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 11d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 11d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 12d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 12d ago | SKILL.md |
Frequently asked questions
- How do I install cloudbase-sites-runtime?
- Run
npx skills add TencentCloudBase/CloudBase-AI-Toolkit --skill cloudbase-sites-runtime. The install tabs above show the steps for each supported agent. - Which AI agents does cloudbase-sites-runtime work with?
- It is written for OpenAI Codex, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is cloudbase-sites-runtime safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cloudbase-sites-runtime still maintained?
- The repository was last updated 9 days ago, so cloudbase-sites-runtime is actively maintained.
Skill content
View source on GitHubname: cloudbase-sites-runtime description: | Use when the user wants to develop, run, preview, save, deploy, or roll back a CloudBase Web app in this conversation as a Lovable/Codex-Sites-like vibe- coding session — i.e. any request that maps to "spin up a React+Vite project, see it live in the browser, iterate, save versions, deploy". Activate ONLY for browser-rendered Web projects based on the CloudBase official React (or Vue) + Vite template. Do NOT activate for: WeChat/Alipay mini-program, React Native / Flutter / Electron, pure cloud functions / CloudRun backends, or Next.js / Nuxt / Astro / Remix / SvelteKit (those frameworks are explicitly out of scope).
CloudBase Sites Runtime
This skill orchestrates a single working directory = single project flow for CloudBase Web apps. The cwd itself is the workspace; we do not manage cross-cwd state or session IDs at the skill level.
This runtime is shared by the Codex, Claude Code, and CodeBuddy plugin surfaces. The CLI and CloudBase MCP workflows are the source of truth. Some hosts also run bundled lifecycle hooks that start previews or inject compact rules at session start; if hooks are unavailable, disabled, or not yet trusted, use the explicit CLI commands in this skill.
Activation contract
Use this skill when
- The user says "build me a website / app", "I want to make a landing page", "create a React app and let me preview", "deploy this to CloudBase", "save this version", "roll back to v1", or similar.
- The current cwd looks like a CloudBase + Vite project (has
package.jsonwithvite+reactorvue). - The user is running this conversation inside Codex, Claude Code, CodeBuddy,
or a compatible host with the
cloudbase-sitesplugin enabled —cloudbase-mcpis registered and thecloudbase-sitesbinary is either on PATH or available from the plugin root'sbin/cloudbase-sites.
Do NOT use this skill when
- It's a mini-program project — route to mini-program guidance instead.
- It's a native app project — route to http-api guidance.
- It's a backend-only project — route to cloud-functions / cloudrun guidance.
- The framework is Next/Nuxt/Astro/Remix — politely tell the user this skill only covers Vite-based React/Vue apps and stop. Do NOT try to adapt the scripts to those frameworks.
What this skill orchestrates — three layers
1. CloudBase MCP tools (provided by cloudbase-mcp, registered via plugin's .mcp.json)
These are the only tools that produce CloudBase side effects. Highlights:
downloadTemplate({ template: "react" | "vue", ide })— pull official templatequeryEnv({ action: "info" })+auth({ action: "set_env", envId })— bind envmanageApps({ action: "deployApp", ... })— deploy to CloudApp (independent subdomain)envDomainManagement({ action: "create", domains })— whitelist dev origin for CORSsearchKnowledgeBase({ mode: "skill", skillName: "<name>" })— fetch CloudBase domain skills (see below)
For all CloudBase operations beyond the dev-server lifecycle (auth, db,
storage, ai), fetch the corresponding CloudBase domain skill via
searchKnowledgeBase(mode="skill", skillName=...). Common ones:
ui-designUI design spec (mandatory before new UI work)web-developmentWeb project conventionsauth-tool-cloudbaseprovider config (management-side)auth-web-cloudbaseWeb SDK auth client codepostgresql-development-cloudbasePG mode schema/RLS/app.rdb()(PG envs)cloudbase-document-database-web-sdkdocument database Web SDKcloud-storage-webcloud storage Web SDKrelational-database-web-cloudbaseMySQL Web SDKcloudbase-platformplatform overview / console links
These are NOT Claude Code native skills and are NOT bundled with this
plugin. They live inside cloudbase-mcp and are fetched on demand. When this
file (or the injected RULES_BLOCK) says "调 ui-design skill" or "follow the
auth-tool skill", that means: call searchKnowledgeBase(mode="skill", skillName="<that-name>") and apply the returned content.
2. The cloudbase-sites CLI (provided by this plugin's bin/ directory)
First resolve the CLI path:
- Try
command -v cloudbase-sites. - If that fails and the host exposes
CODEX_PLUGIN_ROOT, use$CODEX_PLUGIN_ROOT/bin/cloudbase-sites. - If that fails and the host exposes
CLAUDE_PLUGIN_ROOT, use$CLAUDE_PLUGIN_ROOT/bin/cloudbase-sites. - If SessionStart injected an absolute CLI path, use that path.
Do not assume Codex has injected the plugin bin/ directory into PATH.
Single binary, multiple subcommands. Use these — and ONLY these — for the dev-server / version / deploy lifecycle:
cloudbase-sites init --start— scaffold from empty cwd and start preview when the user explicitly wants a Sites appcloudbase-sites preview— daemonize Vite for an existing Vite projectcloudbase-sites preview --status [--quiet]— JSON status / exit codecloudbase-sites preview --restart/--stop [--force]cloudbase-sites save -m "<label>"— create a saved versioncloudbase-sites versions— list saved versions + deploy statuscloudbase-sites deploy [--version <n>]— deploy a saved version (Phase 1: emit nextAction)cloudbase-sites deploy --post --version <n> --access-url <url> [--build-id <BuildId>] [--version-name <VersionName>]— record deploycloudbase-sites rollback [--to-version <n>]— revert to a saved versioncloudbase-sites supervisor status|list|heal|reload|start|stop
Never invent npm run dev / vite / vite build invocations. The CLI
handles host=0.0.0.0 forcing, port allocation (17173..17272), daemonization,
base path injection, version metadata, and deploy history.
3. Standard tools (Bash, git, Edit, Write)
Use for editing files. The plugin's PostToolUse hook handles automatic restart on config-file edits — you don't need to manage that.
Lifecycle hooks and fallback
Do NOT invoke cloudbase-sites init or cloudbase-sites preview
proactively in your first message just because the plugin is installed.
SessionStart is intentionally passive for empty directories so the plugin does
not interfere with unrelated sessions. A UserPromptSubmit hook may initialize
after the first user message, but only when deterministic Chinese/English
intent rules detect an explicit Sites/Web-app creation request. By the time you
read the user's first prompt:
- If the cwd was an existing Vite project: dev server is up (or installing).
- If the cwd was empty: no files were downloaded by SessionStart. If the first
prompt clearly asked to build/create a Sites app, UserPromptSubmit may have
started
init --start; otherwise initialize only after the user asks. - If the cwd is a non-Vite / blacklisted project: hook stayed silent.
Codex supports bundled plugin hooks, but non-managed command hooks may require
the user to review and trust them before they run. If Codex hooks have not run,
resolve the CLI path as described above, then fall back to
<cloudbase-sites-cli> preview --status, <cloudbase-sites-cli> init, and the
other explicit commands below instead of assuming automatic startup.
If SessionStart reports that it skipped a non-empty non-Vite cwd, do not assume
the runtime is active. If a template is downloaded later through MCP
downloadTemplate, run <cloudbase-sites-cli> preview --status and then
<cloudbase-sites-cli> preview if no preview is running.
You only invoke a CLI verb when:
- User asks to create/build a new Sites app in an empty cwd →
cloudbase-sites init --start - User explicitly says "stop the dev server" →
cloudbase-sites preview --stop - User asks for the URL or "is it running" →
cloudbase-sites preview --status - User wants to save a version →
cloudbase-sites save -m "<label>" - User wants to deploy →
cloudbase-sites deploy(then bridge tomanageApps) - User wants to roll back →
cloudbase-sites rollback
When the user just walked into the conversation
-
Read the SessionStart status first. If it says the cwd is passive/empty, do not assume a project exists. Wait for the user's first concrete Sites app request, then run
cloudbase-sites init --start. -
For existing Vite projects, check preview state — read
<cwd>/.cloudbase-sites/preview.jsonor runcloudbase-sites preview --status. If no preview is running, start it withcloudbase-sites preview. -
Tell the user the URL — surface
internalUrlfrom the JSON. If the file is missing after init/preview, inspect.cloudbase-sites/logs/. -
Offer to open the preview. Ask: "要不要我用内置浏览器打开 <URL> 预览一下?" If yes, use the host Browser / in-app browser tool to open
internalUrl. Do not use macOSopen, and do not run browser interaction tests unless the user explicitly asks you to test the UI. -
DO NOT re-init / re-start. Calling
initagain will fail with code 10 (cwd no longer empty). Callingpreviewis idempotent and safe but wastes a turn. -
NEVER guess the port. It is NOT 5173/5174/5175 — the plugin uses 17173..17272. Always read the recorded port from
preview.json.
Two-stage save → deploy workflow
Inspired by Codex Sites' saved version model:
- Save: label a git checkpoint.
cloudbase-sites save -m "<label>"runsgit initwhen needed, thengit add -A && git commit && git tag version/<n>and appends to<cwd>/.cloudbase-sites/app.json.versions[]. No build, no deploy. - Deploy: publish a saved version to a CloudApp.
cloudbase-sites deploy [--version <n>](default: latest saved) buildsdist/locally then emitsnextActiontelling you to callmanageApps({ action: "deployApp", serviceName: <stable from app.json>, filePath: cwd, buildPath: "dist", framework: "static", installCmd: "", buildCmd: "" }). Theframework=staticshape skips remote install/build because we built locally. - Record: after
manageAppssucceeds and gives you the access URL, callcloudbase-sites deploy --post --version <n> --access-url <url> --build-id <BuildId> [--version-name <VersionName>]. This appends toapp.json.deployments[], records CloudBase build metadata, tags gitdeploy/<n>-<ts>, and returnsfinalUrlwith a cache-busting query. If themanageAppsresult includesBuildId, you MUST pass it to--build-id; otherwise future build status and log queries cannot be traced directly from the saved deployment. - Rollback:
cloudbase-sites rollback [--to-version <n>](default: current production deploy). Stashes uncommitted edits,git reset --hardto the version's commit, marks newer versions asrolled-back, and restarts the dev server.
Why CloudApp (manageApps) not static hosting? Each CloudApp has its
own subdomain (*.webapps.tcloudbase.com); two vibe sessions on the same
env never collide. The stable siteName in app.json ensures re-deploys
preserve the URL.
Pre-flight: if manageApps fails with "no envId" / env-related error,
call queryEnv({ action: "info" }). If multiple envs exist, ask the user
to pick. After binding, retry the deploy.
Proactive prompts (do not act unsolicited)
When you finish a user-requested feature (especially "make me a X app", "build me a Y", "add Z feature"), end your reply by asking:
- Save? "要保存这一版吗?(下次能再调出来)" → if yes, run
cloudbase-sites save -m "<auto-generated label>". - Deploy? "现在要部署看一下吗?(独立 URL,可分享)" → if yes, run the two-stage deploy described above.
- Open preview? "要不要我用内置浏览器打开 <URL> 预览一下?" — if yes,
use the host Browser / in-app browser tool to open
internalUrl. Only click through interactions or run browser-driving verification after the user explicitly asks for testing. Do NOT spawn playwright / agent-browser by default. - After successful deploy ask: "要我用 ui-design 能力进一步优化样式和体验吗?" If yes, fetch
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
