Cloudbase All In One 标志

Cloudbase All In One

组织热门
TencentCloudBase
cloudbase-all-in-one

适用于一体化技能安装的 CloudBase 统一执行指南。处理 CloudBase 应用任务时请优先使用,尤其是带有 TODO、固定页面或正在运行的处理程序的现有应用。对于 PostgreSQL / CloudBase PG / app.rdb() / queryPgDatabase / managePgDatabase 相关工作,本指南会引导您避开旧版 NoSQL 和过时的身份验证模式。

Add to TypingMind

概览

发布者TencentCloudBase
代码仓库CloudBase-AI-Toolkit
技能名称cloudbase-all-in-one
星标数
1.1K
复刻数
141
附带文件
110
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 110 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 TencentCloudBase 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Cloudbase All In One AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit.git /tmp/CloudBase-AI-Toolkit
mkdir -p .claude/skills
cp -r /tmp/CloudBase-AI-Toolkit/config/source/skills .claude/skills/cloudbase-all-in-one
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Cloudbase All In One,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Cloudbase All In One。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Cloudbase All In One 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

CloudBase All-In-One

Step 0 — Confirm the site (domestic vs international)

CloudBase runs 国内站 (domestic, cloud.tencent.com) and 国际站 (international, tencentcloud.com) as two independent account systems — environments, consoles, API keys, and login state do not cross over. A wrong-site login looks like "logged in, but no environments" rather than a clear error, so settle the site before logging in or configuring MCP.

  • International (国际站) — connect the international remote MCP endpoint directly: https://tcb-api.tencentcloud.com/mcp/v1. For local stdio set TCB_SITE=intl + TCB_REGION=ap-singapore; for the tcb CLI set TCB_IS_INTL=true.
  • Domestic (国内站) — https://tcb-api.cloud.tencent.com/mcp/v1. Both switches are the defaults, so nothing extra to declare.
  • Two gaps to plan around: remote endpoints take no site / region query parameter (the hostname decides), and the international site has no NoSQL / document-database tools.

Workflow

Every CloudBase task follows this three-stage process:

1. Exploration  →  Read the matching skill completely before writing any code.
                   Search for it if needed, then Read the full SKILL.md content.
                   Only start implementing after understanding the API patterns,
                   pitfalls, and correct usage from the skill document.
2. Implementation
   ├── 2a. Resource preparation → Prefer MCP to prepare backend resources
   │     (enable auth providers, create database tables, configure storage domains,
   │      set up security rules — before writing frontend code).
   │     If MCP tools are missing in THIS session, configure MCP for next time and
   │     use `tcb` CLI now (`./cloudbase-cli/SKILL.md`).
   └── 2b. Frontend implementation → Write code, install deps, start server, test
3. Close-out  →  Run cloudbase-code-review, fix all errors, declare done

Key constraints:

  • Stage 2a (resource preparation) must come before frontend code. Prefer MCP tools; when they are not loaded yet (first session / pre-restart), fall back to tcb CLI after configuring MCP. Don't write frontend code that depends on uncreated resources (tables, auth providers, storage buckets) — the app cannot run end-to-end without them.
  • Do not skip Stage 3. The close-out catches known pitfalls that agents commonly miss during implementation.

Scope

Only handle tasks that are part of building, integrating, or maintaining a CloudBase application — including UI design, spec planning, and other development activities when they are in service of a CloudBase app. If the request has no CloudBase application context at all, stop and tell the user this skill only covers CloudBase-based development.

Activation Contract

Use this first when

  • The task is a CloudBase app build, integration, or repair and the workspace already contains an application implementation.
  • The request mixes auth, database, storage, and frontend work in one CloudBase application task.

Do this before broad exploration

  • Read the relevant skill before writing any code. Search for the matching skill with searchKnowledgeBase(mode="skill", skillName=...), then Read the returned file path to get the full SKILL.md content. Do not start implementing based only on the search result summary — the full document contains API signatures, parameter schemas, and pitfall warnings.
  • Inspect the existing implementation surfaces first:
    • src/lib/backend.*
    • src/lib/auth.*
    • src/lib/*service.*
    • route guards
    • the page handlers bound to the active form submit buttons
  • If these files contain TODOs, implement those TODOs in place before creating new helpers, examples, or replacement pages.
  • Do not start with UI redesign or design-spec output unless the user explicitly asks for visual changes.
  • Do not start with project-management loops such as repeated TaskCreate / TaskUpdate when the task is a single targeted repair. Read the active files and edit them directly.

Route quickly to the minimum needed skills

  • Minimal Web + database demo / Lovable-like BaaS fast path -> ./minimal-web-baas-demo/SKILL.md (default for 最小前后端 demo; BaaS-first, no cloud functions)
  • Web app execution -> ./web-development/SKILL.md
  • Declarative whole-project deploy from cloudbaserc (deployApply/deployPlan) -> ./cloudbase-declarative-deploy/SKILL.md
  • Web auth provider readiness -> ./auth-tool-cloudbase/SKILL.md
  • Web auth implementation -> ./auth-web-cloudbase/SKILL.md
  • CloudBase PostgreSQL / PG app data -> ./postgresql-development-cloudbase/SKILL.md
  • WeChat Pay / Official Account OAuth through CloudBase Integration Center -> ./cloudbase-wechat-integration/SKILL.md
  • Browser-side document database CRUD -> ./cloudbase-document-database-web-sdk/SKILL.md
  • Browser-side file upload -> ./cloud-storage-web/SKILL.md
  • Manage/operate underlying Tencent Cloud resources via cloud APIs (monitoring & alarms, CLB, CAM roles, cross-product infra) when no dedicated MCP tool exists -> ./cloud-api-operations/SKILL.md
  • Platform overview only when capability selection is still unclear -> ./cloudbase-platform/SKILL.md
  • If using searchKnowledgeBase(mode="skill"), pass the reference directory id such as postgresql-development-cloudbase or minimal-web-baas-demo, not a guessed alias.

High-yield guardrails

  • Prepare backend resources before writing frontend code. Prefer MCP for auth providers, database tables, storage domains, and security rules. If MCP tools are missing in this session, configure MCP for the next session and use tcb CLI now — do not stall waiting for restart. Frontend code written against non-existent resources will fail at runtime and require rework.
  • Change Safety Protocol: Before any non-trivial code or configuration change, you must strictly follow cloudbase-platform/references/protocols/change-safety-protocol.md (declare impact → obtain user confirmation → verify after change → escalate to root cause analysis after 3 occurrences of the same symptom).
  • Deployment Gate: Before any deployment, publish, custom domain, CloudRun, or public exposure work, you must complete the checks in cloudbase-platform/references/protocols/deployment-gate.md and present the mandatory declaration template.
  • If the same path fails 2-3 times, stop retrying and reroute. Check platform skill, auth domain, runtime, and permission model before editing more code.
  • Always specify EnvId explicitly in code, configuration, and command examples when initializing CloudBase clients or manager operations. Do not rely on the current CLI-selected environment or implicit defaults.
  • If the conversation only provides an environment alias, nickname, or other shorthand, resolve it with queryEnv(action=list, alias=..., aliasExact=true) and use the returned canonical full EnvId before calling auth.set_env, generating console links, or writing config/code. If the alias is ambiguous or missing, stop and ask the user to confirm.

Do NOT use this as

  • A reason to read every CloudBase skill before touching code.
  • A reason to start from platform overview when the existing code already reveals the stack and the missing pieces.

Working rules

  1. BaaS-first, functions as last resort:

    • For 最小前后端 / Lovable-like demos, route first to ./minimal-web-baas-demo/SKILL.md. Order: connector ready → template warmup during credential wait → queryEnv → lock one DB → MCP schema → @cloudbase/js-sdk CRUD → preview. Default cloud function count = 0.
    • Before writing any cloud function or CloudRun service, ask: can the correct JS SDK surface handle this directly? Use db.collection(...).get() only for confirmed NoSQL collections; use app.rdb().from(...) for CloudBase PG tables; use auth / storage from the matching skill.
    • Use the matching JS SDK surface directly for: data reads/writes, file uploads, real-time updates, simple queries including leaderboards, lists, aggregations.
    • Only drop down to cloud functions when: the logic requires server-side permission enforcement that cannot be expressed in database rules/RLS, calling third-party services (payment, SMS, external APIs), or background jobs not triggered by the user.
    • Only drop down to CloudRun when: persistent connections (WebSocket), long-running compute, or custom runtimes are genuinely required.
  2. Existing application with TODOs:

    • Treat it as a targeted repair task, not a greenfield build.
    • Prefer the shortest path from current code to working flow.
  3. Auth tasks:

    • Read ./auth-web-cloudbase/SKILL.md before writing auth code — the full username/password recipe and provider readiness flow live there.
    • Blocking prerequisite for username-style accounts (admin, editor, any string without @): call queryAppAuth(action="getLoginConfig"); if loginMethods.usernamePassword !== true, enable it with manageAppAuth(action="patchLoginStrategy", patch={ usernamePassword: true }) first.
    • Use auth.signInWithPassword({ username, password }); never signUpWithEmailAndPassword / signInWithEmailAndPassword for username-style flows.
    • Once readiness is confirmed, return to the active frontend handler and finish the real login/register flow.
  4. Database and storage tasks:

    • Reuse the current shared app, auth, db, and storage helpers instead of creating parallel SDK wrappers.
    • If the task mentions CloudBase PG, PostgreSQL, Postgres, PG mode, JS SDK v3 PostgreSQL, app.rdb(), queryPgDatabase, managePgDatabase, mysqldb OpenAPI, or RLS, read ./postgresql-development-cloudbase/SKILL.md before touching database code.
    • When the PG task defines an access pattern or investigates a slow query, also read ./postgresql-best-practices-cloudbase/SKILL.md.
    • For CloudBase PG, use queryPgDatabase / managePgDatabase for schema and management; do not route PG work to MySQL queryMysqlDatabase / manageMysqlDatabase or NoSQL collection APIs.
    • For OpenAPI lookup, call searchKnowledgeBase({ mode: "openapi", apiName: "mysqldb" }) directly. Do not pass guessed action values such as getApiDocs or listEndpoints; those belong to no supported tool mode.
    • For CloudBase PG Web CRUD, prefer JS SDK v3 app.rdb() and documented storage app.storage.from() APIs before raw HTTP.
    • For browser-side CloudBase storage upload from local Vite/preview, check the actual browser host:port in security domains first (queryEnv(action="domains"), then envDomainManagement(action="create") if missing). A failed cover upload must not silently skip the subsequent PG article insert.
    • For CloudBase Web SDK db.collection(...).add(...), persist the created document ID from result._id.
    • For writes, validate the actual SDK result instead of assuming success.
    • Legacy API STOP card: If the task says PostgreSQL, CloudBase PG, PG mode, app.rdb(), queryPgDatabase, managePgDatabase, PostgREST, or RLS, do not write NoSQL examples from memory. Use app.rdb().from(...) for Web CRUD, queryPgDatabase / managePgDatabase for management, and auth.getSession() for Web auth guards. Do not use app.database(), db.collection(...), .where(), .orderBy(), app.uploadFile(), getLoginState(), or auth.getUser() as the PG/auth default.
  5. Targeted repair tasks:

    • Functional closure beats exploration.
    • Avoid broad repo sweeps, UI redesign, and detached demo code.
    • Keep file discovery narrow. Prefer direct reads of the known active files over Glob / broad search across the whole project.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

还有 50 个文件。

常见问题

Cloudbase All In One AI 技能有什么作用?

适用于一体化技能安装的 CloudBase 统一执行指南。处理 CloudBase 应用任务时请优先使用,尤其是带有 TODO、固定页面或正在运行的处理程序的现有应用。对于 PostgreSQL / CloudBase PG / app.rdb() / queryPgDatabase / managePgDatabase 相关工作,本指南会引导您避开旧版 NoSQL 和过时的身份验证模式。

为什么在 TypingMind 中使用 Cloudbase All In One?

因为您只需安装一次,就能搭配任何模型使用。Cloudbase All In One 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Cloudbase All In One?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Cloudbase All In One?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Cloudbase All In One 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Cloudbase All In One 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Cloudbase All In One AI 技能免费吗?

是的。TencentCloudBase 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇