http-api-cloudbase skill
✓ 検証済みAllows agents to call CloudBase platform features like databases, functions, and storage via raw HTTP requests instead of using SDKs.
- GitHubスター
- 1,164
- ファイル
- 4
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
http-api-cloudbase skillは何をしますか
http-api-cloudbaseはAgent Skillsです。 Allows agents to call CloudBase platform features like databases, functions, and storage via raw HTTP requests instead of using SDKs.
skillのSKILL.mdから生成された要約。
http-api-cloudbase skill について
Developers working with non-Node backends like Go, Python, or Java can use this skill to interact with CloudBase platform features through raw HTTP requests. It serves as an alternative when platform SDKs are unavailable or not preferred, such as when writing admin scripts, performing integration tests, or building mobile applications for Android and iOS. The skill enables direct communication with various services including MySQL and PostgreSQL databases, NoSQL databases, cloud functions, storage, and AI models.
To ensure accuracy, an agent must use the searchKnowledgeBase tool with the mode set to openapi to retrieve official Swagger documentation for specific services like mysqldb, nosql, or functions. This prevents the invention of incorrect endpoints or parameters. Users must provide a CloudBase environment ID and an authentication method, such as an AccessToken, API Key, or Publishable Key, which are then included in the Authorization header of the HTTP requests.
エージェントができること
- 1Integrate CloudBase with Python backendsA developer can use this skill to call CloudBase database or storage APIs from a Python environment where a native SDK is not being used.
- 2Perform direct database operationsAn agent can execute queries against relational databases using the RESTful API instead of a management tool.
- 3Automate platform tasks with scriptsDevelopers can write admin scripts that use curl or other HTTP clients to manage CloudBase features.
- 4Retrieve official API specificationsAn AI agent can fetch exact endpoint paths and request schemas by searching the knowledge base for OpenAPI definitions.
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
http-api-cloudbase skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにhttp-api-cloudbase skillをインストールする
~/.claude/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.claude/skills/http-api-cloudbaseClaude Code (project)にhttp-api-cloudbase skillをインストールする
.claude/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase .claude/skills/http-api-cloudbaseCodexにhttp-api-cloudbase skillをインストールする
~/.agents/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.agents/skills/http-api-cloudbaseGemini CLIにhttp-api-cloudbase skillをインストールする
~/.gemini/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.gemini/skills/http-api-cloudbaseClaude.aiにhttp-api-cloudbase skillをインストールする
npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase http-api-cloudbase && zip -r http-api-cloudbase.zip http-api-cloudbase # claude.ai → Customize → Skills → + → Create skill → Upload a skill → http-api-cloudbase.zip
自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能tencentcloudbase/cloudbase-ai-toolkit/config/.claude/skills/http-api-cloudbase is public and reachablegithub.com/tencentcloudbase/cloudbase-ai-toolkit/tree/HEAD/c ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/tencentcloudbase/cloudbase-ai-toolkit/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗合格
- SKILL.md が Agent Skills の形式に従っているthe description does not say when to use the skillgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗検出事項
SKILL.md
GitHubで表示Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
Activation Contract
Use this first when
- The request comes from Android, iOS, Flutter, React Native, non-Node backends, or admin scripts that must call official CloudBase APIs via raw HTTP.
- The task is to consume CloudBase platform endpoints, not to build a new HTTP service on CloudBase.
Read before writing code if
- The platform does not support a CloudBase SDK, or the user explicitly asks for HTTP API integration.
- The user says "HTTP API" but it is unclear whether they mean official CloudBase endpoints or their own business API.
Then also read
- Auth configuration ->
../auth-tool-cloudbase/SKILL.md - MySQL MCP management ->
../relational-database-mcp-cloudbase/SKILL.md - Your own HTTP service on CloudBase ->
../cloud-functions/SKILL.mdor../cloudrun-development/SKILL.md
Do NOT use for
- CloudBase Web SDK flows, mini program SDK flows, or MCP-driven management tasks.
- Building your own HTTP service or REST API on CloudBase.
Common mistakes / gotchas
- Treating Web SDK examples as valid for native Apps.
- Guessing endpoints without reading OpenAPI definitions.
- Confusing official CloudBase HTTP APIs with your own function or CloudRun endpoint.
- Mixing raw HTTP API integration with MCP management logic.
Minimal checklist
- Read HTTP API Routing Checklist before implementation.
When to use this skill
Use this skill whenever you need to call CloudBase platform features via raw HTTP APIs, for example:
- Non-Node backends (Go, Python, Java, PHP, etc.)
- Integration tests or admin scripts that use curl or language HTTP clients
- Direct database operations via 关系型数据库 RESTful API (MySQL/PostgreSQL)
- Cloud function invocation via HTTP
- Any scenario where SDKs are not available or not preferred
Do not use this skill for:
- Frontend Web apps using
@cloudbase/js-sdk(use CloudBase Web skills) - Node.js code using
@cloudbase/node-sdk(use CloudBase Node skills) - Authentication flows (use CloudBase Auth HTTP API skill for auth-specific endpoints)
How to use this skill (for a coding agent)
-
Clarify the scenario
- Confirm this code will call HTTP endpoints directly (not SDKs).
- Ask for:
env– CloudBase environment ID- Authentication method (AccessToken, API Key, or Publishable Key)
- Confirm which CloudBase feature is needed (database, functions, storage, etc.).
- For user authentication: If no specific method is requested, always default to Phone SMS Verification - it's the most user-friendly and secure option for Chinese users.
-
Determine the base URL
- Use the correct domain based on region (domestic vs. international).
- Default is domestic Shanghai region.
-
Set up authentication
- Choose appropriate authentication method based on use case.
- Add
Authorization: Bearer <token>header to requests.
-
Reference OpenAPI Swagger documentation
- MUST use
searchKnowledgeBasetool to get OpenAPI specifications - Use the tool with
mode=openapiand specify theapiName:mysqldb- 关系型数据库 RESTful API (MySQL/PostgreSQL)nosql- NoSQL RESTful API (文档型数据库) — after pgdoc is enabled this same entry point is carried by PostgreSQL; paths and request bodies do not change. See../postgresql-development-cloudbase/references/pgdoc.md.functions- Cloud Functions APIauth- Authentication APIcloudrun- CloudRun APIstorage- Storage APIai_model- AI 大模型接入 API
- Example:
searchKnowledgeBase({ mode: "openapi", apiName: "mysqldb" }) - Parse the returned YAML content to understand exact endpoint paths, parameters, request/response schemas
- Never invent endpoints or parameters - always reference the swagger documentation
- MUST use
Overview
CloudBase HTTP API is a set of interfaces for accessing CloudBase platform features via HTTP protocol, supporting database, user authentication, cloud functions, cloud hosting, cloud storage, AI, and more.
OpenAPI Swagger Documentation
⚠️ IMPORTANT: Always use searchKnowledgeBase tool to get OpenAPI Swagger specifications
Before implementing any HTTP API calls, you should:
-
Use
searchKnowledgeBasetool to get OpenAPI documentation:searchKnowledgeBase({ mode: "openapi", apiName: "<api-name>" }) -
Available API names:
mysqldb- 关系型数据库 RESTful API (MySQL/PostgreSQL)nosql- NoSQL RESTful API (文档型数据库) — pgdoc keeps this API name even when PG carries the data; do not switch tomysqldb.functions- Cloud Functions APIauth- Authentication APIcloudrun- CloudRun APIstorage- Storage APIai_model- AI 大模型接入 API
-
Parse and use the swagger documentation:
- Extract exact endpoint paths and HTTP methods
- Understand required and optional parameters
- Review request/response schemas
- Check authentication requirements
- Verify error response formats
-
Never invent API endpoints or parameters - always base your implementation on the official swagger documentation.
Prerequisites
Before starting, ensure you have:
- CloudBase environment created and activated
- Authentication credentials (AccessToken, API Key, or Publishable Key)
Authentication and Authorization
CloudBase HTTP API requires authentication. Choose the appropriate method based on your use case:
AccessToken Authentication
Applicable environments: Client/Server
User permissions: Logged-in user permissions
How to get: Use searchKnowledgeBase({ mode: "openapi", apiName: "auth" }) to get the Authentication API specification
API Key
Applicable environments: Server
User permissions: Administrator permissions
- Validity: Long-term valid
- How to get: Get from CloudBase Platform/ApiKey Management Page
⚠️ Warning: Tokens are critical credentials for identity authentication. Keep them secure. API Key must NOT be used in client-side code.
Publishable Key
Applicable environments: Client/Server
User permissions: Anonymous user permissions
- Validity: Long-term valid
- How to get: Get from CloudBase Platform/ApiKey Management Page
💡 Note: Can be exposed in browsers, used for requesting publicly accessible resources, effectively reducing MAU.
API Endpoint URLs
CloudBase HTTP API uses unified domain names for API calls. The domain varies based on the environment's region.
Domestic Regions
For environments in domestic regions like Shanghai (ap-shanghai), use:
https://{your-env}.api.tcloudbasegateway.com
Replace {your-env} with the actual environment ID. For example, if environment ID is cloud1-abc:
https://cloud1-abc.api.tcloudbasegateway.com
International Regions
For environments in international regions like Singapore (ap-singapore), use:
https://{your-env}.api.intl.tcloudbasegateway.com
Replace {your-env} with the actual environment ID. For example, if environment ID is cloud1-abc:
https://cloud1-abc.api.intl.tcloudbasegateway.com
Using Authentication in Requests
Add the token to the request header:
Authorization: Bearer <access_token/apikey/publishable_key>
:::warning Note
When making actual calls, replace the entire part including angle brackets (< >) with your obtained key. For example, if the obtained key is eymykey, fill it as:
Authorization: Bearer eymykey
:::
Extended guide
For detailed scenarios, examples, and patterns, read extended-guide.md.
Reference index
All packaged reference files (required for skill lint reachability):
このスキルのファイル
4http-api-cloudbase skillに関する質問
Claude Codeにhttp-api-cloudbase skillをインストールするには
npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.claude/skills/http-api-cloudbaseを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
http-api-cloudbase skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
When should I use this skill instead of a CloudBase SDK?
Use this skill when working with non-Node backends (Go, Python, Java, PHP), admin scripts, or integration tests where raw HTTP is required.
How do I find the correct API endpoints and parameters?
You must use the searchKnowledgeBase tool with mode=openapi and the specific apiName to retrieve the official Swagger documentation.
Can I use an API Key in client-side code?
No, API Keys are for server environments with administrator permissions and must not be used in client-side code.