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…
от TencentCloudBase★ 1 172 звезды на GitHubОб этом скилле
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 the bind-a
Установить cloudbase-sites-runtime в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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". 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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloudbase-sites-runtime запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic