Logo Cloudbase All In One

Cloudbase All In One

Tổ chứcPhổ biến
TencentCloudBase
cloudbase-all-in-one

Hướng dẫn thực thi CloudBase thống nhất cho các bộ kỹ năng cài đặt tất cả trong một. Hãy dùng hướng dẫn này trước tiên cho các tác vụ ứng dụng CloudBase, đặc biệt là ứng dụng hiện có chứa TODO, trang cố định hoặc handler đang hoạt động. Định tuyến PostgreSQL / CloudBase PG / app.rdb() / queryPgDatabase / managePgDatabase mà không dùng NoSQL cũ hoặc các mẫu xác thực lỗi thời.

Add to TypingMind

Tổng quan

Nhà phát hànhTencentCloudBase
Kho mãCloudBase-AI-Toolkit
Tên kỹ năngcloudbase-all-in-one
Sao
1.1K
Bản fork
141
Tệp đi kèm
110
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 110 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được TencentCloudBase công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cloudbase All In One trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cloudbase All In One trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cloudbase All In One ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cloudbase All In One với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

và 50 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Cloudbase All In One làm được gì?

Hướng dẫn thực thi CloudBase thống nhất cho các bộ kỹ năng cài đặt tất cả trong một. Hãy dùng hướng dẫn này trước tiên cho các tác vụ ứng dụng CloudBase, đặc biệt là ứng dụng hiện có chứa TODO, trang cố định hoặc handler đang hoạt động. Định tuyến PostgreSQL / CloudBase PG / app.rdb() / queryPgDatabase / managePgDatabase mà không dùng NoSQL cũ hoặc các mẫu xác thực lỗi thời.

Vì sao nên dùng Cloudbase All In One trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cloudbase All In One là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cloudbase All In One trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/config/source/skills. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cloudbase All In One?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cloudbase All In One với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cloudbase All In One với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cloudbase All In One có miễn phí không?

Có. Kỹ năng này được TencentCloudBase phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇