Install any skill in seconds. Free to start, no credit card required.
Get Started Free →AIOps-style one-click inspection skill for CloudBase resources. Use this skill when users need to diagnose errors, check resource health, inspect logs, or run a comprehensive health check across cloud functions, CloudRun services, databases, and other CloudBase resources.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 151% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 102% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 63% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 372% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 54% | 0% |
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.
../cloud-functions/SKILL.md../cloudrun-development/SKILL.md../postgresql-development-cloudbase/SKILL.md for CloudBase PG / PostgreSQL, ../relational-database-mcp-cloudbase/SKILL.md for MySQL, or ../cloudbase-document-database-web-sdk/SKILL.md for NoSQL../cloudbase-platform/SKILL.mdauth tool must show logged-in and env-bound state).queryLogs will fail; always check first with queryLogs(action="checkLogService").envQuery(action="info"))queryLogs(action="checkLogService"))The skill supports two modes based on user intent:
| Mode | When to use | Scope | |------|-------------|-------| | Full inspection | User asks for a general health check / 巡检 / 全面检查 | All resource types in the environment | | Targeted inspection | User reports a specific error or asks about a specific resource | One resource type or a specific resource |
Follow these steps in order for a comprehensive environment health check:
Step 1 — Environment Check
envQuery(action="info")Confirm the environment is accessible. Record the envId for console link generation.
Step 2 — Log Service Status
queryLogs(action="checkLogService")If CLS is not enabled, note this as a warning — log-based diagnosis will be unavailable. Recommend enabling CLS in the console: https://tcb.cloud.tencent.com/dev?envId=${envId}#/devops/log
Step 3 — Cloud Functions Inspection
queryFunctions(action="listFunctions")For each function, check:
queryFunctions(action="listFunctionLogs", functionName="<name>", startTime="<recent>")Step 4 — CloudRun Services Inspection
queryCloudRun(action="list")For each service, check:
queryCloudRun(action="detail", detailServerName="<name>")Step 5 — Error Log Aggregation (if CLS is enabled)
queryLogs(action="searchLogs", queryString="ERROR", service="tcb", startTime="<24h-ago>", limit=50)
queryLogs(action="searchLogs", queryString="ERROR", service="tcbr", startTime="<24h-ago>", limit=50)Look for patterns:
Step 6 — Summary Report
Generate a structured report:
markdown# CloudBase Resource Inspection Report **Environment**: ${envId} **Inspection Time**: ${timestamp} ## Overall Health: ✅ Healthy / ⚠️ Warnings Found / ❌ Issues Found ### Cloud Functions | Function | Status | Recent Errors | Severity | |----------|--------|---------------|----------| | ... | ... | ... | ... | ### CloudRun Services | Service | Status | Issues | Severity | |---------|--------|--------|----------| | ... | ... | ... | ... | ### Error Log Summary - Total errors in last 24h: N - Top error patterns: ... ## Recommendations 1. ... 2. ... ## Console Links - Cloud Functions: https://tcb.cloud.tencent.com/dev?envId=${envId}#/scf - CloudRun: https://tcb.cloud.tencent.com/dev?envId=${envId}#/platform-run - Logs: https://tcb.cloud.tencent.com/dev?envId=${envId}#/devops/log
When the user specifies a resource type or a specific resource:
queryFunctions(action="listFunctionLogs", functionName="<name>") then queryLogs(action="searchLogs", queryString="* AND functionName:<name> AND level:ERROR", ...)queryCloudRun(action="detail", detailServerName="<name>") then queryLogs(action="searchLogs", queryString="ERROR", service="tcbr", ...)ECONNREFUSED, timeout, "could not connect"): check whether VpcConf is set and matches the database VPC. See cloudrun-development/references/vpc-and-database.md.queryPgDatabase(action="context"|"metadata"|"objects") for CloudBase PG, queryMysqlDatabase for MySQL, or readNoSqlDatabaseStructure for NoSQL depending on typequeryLogs(action="searchLogs", queryString="<error-keyword>", ...)This skill follows AIOps principles for intelligent inspection:
| Level | Icon | Meaning | |-------|------|---------| | Critical | ❌ | Service is down or data is at risk; requires immediate action | | Warning | ⚠️ | Errors detected but service is still partially functional; investigate soon | | Info | ℹ️ | No errors found; informational status only | | Healthy | ✅ | Resource is operating normally |
| Operation | MCP Tool Call | |-----------|---------------| | Check environment | envQuery(action="info") | | Check CLS status | queryLogs(action="checkLogService") | | List cloud functions | queryFunctions(action="listFunctions") | | Get function detail | queryFunctions(action="getFunctionDetail", functionName="<name>") | | Get function logs | queryFunctions(action="listFunctionLogs", functionName="<name>", startTime="<time>", endTime="<time>") | | Get function log detail | queryFunctions(action="getFunctionLogDetail", requestId="<id>") | | List CloudRun services | queryCloudRun(action="list") | | Get CloudRun detail | queryCloudRun(action="detail", detailServerName="<name>") | | Search CLS logs | queryLogs(action="searchLogs", queryString="<query>", service="tcb\|tcbr", startTime="<time>", endTime="<time>") | | Check NoSQL structure | readNoSqlDatabaseStructure(action="listCollections") | | Check PostgreSQL context | queryPgDatabase(action="context") | | Check PostgreSQL metadata | queryPgDatabase(action="metadata", limit=20) | | Check MySQL status | queryMysqlDatabase(action="getContext") |
| Scenario | queryString | |----------|-------------| | All errors | ERROR | | Function timeout | timeout OR 超时 | | Function OOM | OOM OR out of memory OR 内存超限 | | CloudRun crash | crash OR OOMKilled OR Error | | Specific function errors | functionName:<name> AND level:ERROR | | 5xx HTTP errors | statusCode:>499 | | Cold start issues | coldStart OR 冷启动 |
startTime = 1 hour ago)Always use ISO 8601 format for startTime/endTime, e.g., "2025-01-15 00:00:00".
cloud-functions — Cloud function development, deployment, and debuggingcloudrun-development — CloudRun backend deployment and managementcloudbase-platform — General platform knowledge and console navigationpostgresql-development-cloudbase — CloudBase PostgreSQL / PG diagnostics and schema/RLS checksrelational-database-mcp-cloudbase — MySQL database management and diagnosticsOther measured skills in the registry, with their headline benchmark lift.