http-api-cloudbase skill
✓ 인증됨SDK 대신 raw HTTP 요청을 통해 데이터베이스, 함수, 스토리지와 같은 CloudBase 플랫폼 기능을 에이전트가 호출할 수 있도록 합니다.
- GitHub 스타
- 1,164
- 파일
- 4
- 마지막 커밋
- 2026년 11월 11일
- 라이선스
- MIT
- 허용된 도구
- —
http-api-cloudbase skill은 무엇을 하나요?
http-api-cloudbase은(는) agent skill입니다. SDK 대신 raw HTTP 요청을 통해 데이터베이스, 함수, 스토리지와 같은 CloudBase 플랫폼 기능을 에이전트가 호출할 수 있도록 합니다.
skill의 SKILL.md에서 생성된 요약입니다.
http-api-cloudbase skill 정보
Go, Python, Java와 같은 비 Node 백엔드에서 작업하는 개발자는 이 SKILL을 사용하여 raw HTTP 요청을 통해 CloudBase 플랫폼 기능과 상호작용할 수 있습니다. 플랫폼 SDK를 사용할 수 없거나, 관리자 스크립트 작성, 통합 테스트 수행, Android 및 iOS용 모바일 애플리케이션 구축 등 SDK 사용을 선호하지 않는 상황에서 대안으로 활용됩니다. 이 SKILL을 통해 MySQL 및 PostgreSQL 데이터베이스, NoSQL 데이터베이스, 클라우드 함수, 스토리지, AI 모델 등 다양한 서비스와 직접 통신할 수 있습니다.
정확성을 보장하기 위해 에이전트는 mode를 openapi로 설정한 searchKnowledgeBase 도구를 사용하여 mysqldb, nosql 또는 functions와 같은 특정 서비스에 대한 공식 Swagger 문서를 가져와야 합니다. 이를 통해 잘못된 엔드포인트나 파라미터를 생성하는 것을 방지할 수 있습니다. 사용자는 CloudBase 환경 ID와 AccessToken, API Key 또는 Publishable Key와 같은 인증 방법을 제공해야 하며, 이는 HTTP 요청의 Authorization 헤더에 포함됩니다.
agent가 수행할 수 있는 작업
- 1Python 백엔드와 CloudBase 통합개발자는 네이티브 SDK를 사용하지 않는 Python 환경에서 CloudBase 데이터베이스 또는 스토리지 API를 호출하기 위해 이 SKILL을 사용할 수 있습니다.
- 2직접적인 데이터베이스 작업 수행에이전트는 관리 도구 대신 RESTful API를 사용하여 관계형 데이터베이스에 대한 쿼리를 실행할 수 있습니다.
- 3스크립트를 통한 플랫폼 작업 자동화개발자는 curl 또는 기타 HTTP 클라이언트를 사용하여 CloudBase 기능을 관리하는 관리자 스크립트를 작성할 수 있습니다.
- 4공식 API 사양 조회AI 에이전트는 지식 베이스에서 OpenAPI 정의를 검색하여 정확한 엔드포인트 경로와 요청 스키마를 가져올 수 있습니다.
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 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
CloudBase SDK 대신 이 SKILL을 언제 사용해야 하나요?
Go, Python, Java, PHP와 같은 비 Node 백엔드 환경에서 작업하거나, 관리자 스크립트 또는 raw HTTP가 필요한 통합 테스트를 수행할 때 이 SKILL을 사용하십시오.
올바른 API 엔드포인트와 파라미터는 어떻게 찾나요?
searchKnowledgeBase 도구를 mode=openapi 및 특정 apiName과 함께 사용하여 공식 Swagger 문서를 가져와야 합니다.
클라이언트 측 코드에서 API Key를 사용할 수 있나요?
아니요, API Key는 관리자 권한이 있는 서버 환경용이며 클라이언트 측 코드에서 사용해서는 안 됩니다.