http-api-cloudbase skill
✓ DoğrulandıAjanların, SDK kullanmak yerine ham HTTP istekleri aracılığıyla veritabanları, fonksiyonlar ve depolama gibi CloudBase platform özelliklerini çağırmasına olanak tanır.
- GitHub yıldızları
- 1.164
- Dosyalar
- 4
- Son commit
- 11 Kas 2026
- Lisans
- MIT
- İzin verilen araçlar
- —
http-api-cloudbase skill ne işe yarar?
http-api-cloudbase bir agent skill'dir. Ajanların, SDK kullanmak yerine ham HTTP istekleri aracılığıyla veritabanları, fonksiyonlar ve depolama gibi CloudBase platform özelliklerini çağırmasına olanak tanır.
Özet, skill'in SKILL.md dosyasından oluşturuldu.
http-api-cloudbase skilli hakkında
Go, Python veya Java gibi Node tabanlı olmayan backend'lerle çalışan geliştiriciler, CloudBase platform özellikleriyle ham HTTP istekleri üzerinden etkileşime girmek için bu SKILL'i kullanabilirler. Platform SDK'larının mevcut olmadığı veya tercih edilmediği durumlarda; örneğin admin scriptleri yazarken, entegrasyon testleri gerçekleştirirken veya Android ve iOS için mobil uygulamalar geliştirirken alternatif bir çözüm sunar. Bu SKILL; MySQL ve PostgreSQL veritabanları, NoSQL veritabanları, bulut fonksiyonları, depolama ve AI modelleri dahil olmak üzere çeşitli servislerle doğrudan iletişim kurmayı sağlar.
Doğruluğu sağlamak için bir ajan; mysqldb, nosql veya functions gibi belirli servisler için resmi Swagger dokümantasyonunu çekmek amacıyla searchKnowledgeBase aracını mode değeri openapi olacak şekilde kullanmalıdır. Bu, hatalı uç noktaların veya parametrelerin uydurulmasını önler. Kullanıcılar bir CloudBase ortam kimliği (environment ID) ve AccessToken, API Key veya Publishable Key gibi bir kimlik doğrulama yöntemi sağlamalıdır; bunlar daha sonra HTTP isteklerinin Authorization header kısmına dahil edilir.
Bir agent bununla neler yapabilir
- 1CloudBase'i Python backend'leri ile entegre edinBir geliştirici, yerel bir SDK kullanılmayan bir Python ortamından CloudBase veritabanı veya depolama API'lerini çağırmak için bu SKILL'i kullanabilir.
- 2Doğrudan veritabanı işlemleri gerçekleştirinBir ajan, bir yönetim aracı yerine RESTful API kullanarak ilişkisel veritabanları üzerinde sorgular çalıştırabilir.
- 3Platform görevlerini scriptlerle otomatize edinGeliştiriciler, CloudBase özelliklerini yönetmek için curl veya diğer HTTP istemcilerini kullanan admin scriptleri yazabilirler.
- 4Resmi API spesifikasyonlarını alınBir AI ajanı, OpenAPI tanımları için bilgi tabanında arama yaparak kesin uç nokta yollarını ve istek şemalarını getirebilir.
Skill'in SKILL.md dosyasından yazılmıştır. Her kullanım durumu oradaki bir alıntı ile kontrol edilir.
http-api-cloudbase skill nasıl kurulur
Her komut, skill klasörünü istemcinin skills dizinine kopyalar. Yüklemek için istemciyi yeniden başlatın veya yeni bir oturum başlatın.http-api-cloudbase skill'ini Claude Code uygulamasına kur
~/.claude/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.claude/skills/http-api-cloudbasehttp-api-cloudbase skill'ini Claude Code (project) uygulamasına kur
.claude/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase .claude/skills/http-api-cloudbasehttp-api-cloudbase skill'ini Codex uygulamasına kur
~/.agents/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.agents/skills/http-api-cloudbasehttp-api-cloudbase skill'ini Gemini CLI uygulamasına kur
~/.gemini/skills/http-api-cloudbase/SKILL.md
$ npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.gemini/skills/http-api-cloudbasehttp-api-cloudbase skill'ini Claude.ai uygulamasına kur
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
Otomatik kontroller
Çalıştırıldı 15 Kas 2026Tam rapor →Otomatik kontrollerimizi geçti. Bu bir güvenlik denetimi değil: bir ajanın çalıştırmasına izin vermeden önce betikleri okuyun. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebilirtencentcloudbase/cloudbase-ai-toolkit/config/.claude/skills/http-api-cloudbase is public and reachablegithub.com/tencentcloudbase/cloudbase-ai-toolkit/tree/HEAD/c ↗Geçti
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit 2026-11-11github.com/tencentcloudbase/cloudbase-ai-toolkit/commits ↗Geçti
- Betiklerde indir-çalıştır veya kimlik bilgisi hırsızlığı yokNo scripts in the skill folderGeçti
- SKILL.md içinde gizli talimat yokNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗Geçti
- Önceden izin verilen araçlar sınırlıNo pre-approved tools; the agent asks before using onegithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗Geçti
- SKILL.md, Agent Skills biçimine uyuyorthe description does not say when to use the skillgithub.com/tencentcloudbase/cloudbase-ai-toolkit/blob/HEAD/c ↗Bulgu
SKILL.md
GitHub'da görüntüleSibling 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):
Bu becerideki dosyalar
4http-api-cloudbase skill soruları
http-api-cloudbase skill'ini Claude Code uygulamasına nasıl kurarım?
npx degit TencentCloudBase/CloudBase-AI-Toolkit/config/.claude/skills/http-api-cloudbase ~/.claude/skills/http-api-cloudbase komutunu çalıştırın. Claude Code, skill'leri ~/.claude/skills (tüm projeler) veya .claude/skills (tek proje) konumundan yükler ve açıklaması görevle eşleştiğinde skill'i kullanır.
http-api-cloudbase skill'ini hangi istemciler kullanabilir?
Agent Skills biçimini okuyan her istemci: Claude Code, Codex, Gemini CLI ve claude.ai (ZIP olarak yükleyin). Skill içindeki betikler yalnızca istemcinin kod çalıştırmaya izin verdiği yerlerde çalışır.
Bu SKILL'i bir CloudBase SDK'sı yerine ne zaman kullanmalıyım?
Node tabanlı olmayan backend'ler (Go, Python, Java, PHP) ile çalışırken, admin scriptleri yazarken veya ham HTTP gerektiren entegrasyon testlerinde bu SKILL'i kullanın.
Doğru API uç noktalarını ve parametrelerini nasıl bulabilirim?
Resmi Swagger dokümantasyonunu almak için searchKnowledgeBase aracını mode=openapi ve ilgili apiName ile kullanmalısınız.
İstemci tarafı kodunda API Key kullanabilir miyim?
Hayır, API Key'ler yönetici izinlerine sahip sunucu ortamları içindir ve istemci tarafı kodlarında kullanılmamalıdır.