AIOps-style CloudBase inspection skill (v3). Use when users need health checks, log diagnosis, alarm interpretation (CPU alert normal?, peak QPS), metrics via queryEnv(action=metrics), or fault playbooks for 429 / function 404 / ACCESS_TOKEN_INVALID / zero invocations. Triggers on 巡检, 诊断, 告警, 峰值 QPS, 限频, 调用量为 0, troubleshooting.
73
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
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.
references/alarm-interpretation.mdreferences/fault-playbooks.md../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../auth-tool-cloudbase/SKILL.md../cloudbase-platform/SKILL.mdcallCloudApi for monitor curves — always use queryEnv(action="metrics").auth tool must show logged-in and env-bound state).queryLogs will fail; always check first with queryLogs(action="checkLogService").queryEnv(action="metrics").callCloudApi with invented GetMonitorData / DescribeCurveData parameters — the metrics branch already wraps Manager SDK.envQuery(action="info"))queryEnv(action="metrics") when the question involves QPS / CPU / throttle / invocation volumequeryLogs(action="checkLogService")) when log diagnosis is neededv3 adds two mandatory capabilities on top of log/resource inspection:
references/alarm-interpretation.md, answer CPU-alert / peak-QPS style questions in plain language.references/fault-playbooks.md instead of ad-hoc tool fishing.| Mode | When to use | Scope |
|---|---|---|
| Full inspection | User asks for a general health check / 巡检 / 全面检查 | All resource types + core metrics |
| Targeted inspection | User reports a specific error or asks about a specific resource | One resource type or playbook |
| Alarm interpretation | User asks CPU 告警是否正常 / 峰值 QPS / 是否限流 | Metrics-first, then logs |
| Fault playbook | 429 / function 404 / ACCESS_TOKEN_INVALID / 调用量为 0 | Playbook steps only |
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 — Metrics snapshot (v3)
queryEnv(action="metrics", envId="<EnvId>", metricName="GatewayTraceEnvQPS")
queryEnv(action="metrics", envId="<EnvId>", metricName="FunctionInvocation")
queryEnv(action="metrics", envId="<EnvId>", metricName="MysqlCpuUsageRate")Use returned Summary.max / avg / allZero / peakTimestamp. Add FunctionError, FunctionThrottle, or CloudRun Tke* metrics when those resources exist. Read references/alarm-interpretation.md before concluding.
Step 3 — 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 4 — Cloud Functions Inspection
queryFunctions(action="listFunctions")For each function, check:
queryFunctions(action="listFunctionLogs", functionName="<name>", startTime="<recent>")Step 5 — CloudRun Services Inspection
queryCloudRun(action="list")For each service, check:
queryCloudRun(action="detail", detailServerName="<name>")queryEnv(action="metrics", metricName="TkeQPSService", resourceID="<serviceName>") (resourceID required)Step 6 — 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 7 — Summary Report
Generate a structured report:
# CloudBase Resource Inspection Report
**Environment**: ${envId}
**Inspection Time**: ${timestamp}
## Overall Health: ✅ Healthy / ⚠️ Warnings Found / ❌ Issues Found
## 告警解读
| 问题 | 指标 | 窗口峰值 | 基线 | 结论 |
|------|------|----------|------|------|
| 峰值 QPS | GatewayTraceEnvQPS | ... | package default 500 unless known | ... |
| CPU 告警是否正常 | MysqlCpuUsageRate | ... | warn≥80 / crit≥90 | ... |
### Cloud Functions
| Function | Status | Recent Errors | Invocations | 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
- Monitor: https://tcb.cloud.tencent.com/dev?envId=${envId}#/devopsWhen 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 type; for CPU/disk alerts also pull MysqlCpuUsageRate / MysqlStorageUsage metricsqueryLogs(action="searchLogs", queryString="<error-keyword>", ...)references/alarm-interpretation.mdreferences/fault-playbooks.mdThis skill follows AIOps principles for intelligent inspection:
queryEnv metrics), logs, and resource states via MCP tools — never via ad-hoc callCloudApiSummary values to skill baselines (告警解读)| 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") |
| Query metrics (QPS/CPU/invocations) | queryEnv(action="metrics", envId, metricName="...") |
| 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") |
| Auth provider readiness | queryAppAuth / auth-tool skill (for ACCESS_TOKEN_INVALID) |
| 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 |
| 429 / throttle | 429 OR throttle OR 限流 OR FREQUENCY |
| Function 404 | 404 OR FUNCTION_NOT_FOUND |
| Token invalid | ACCESS_TOKEN_INVALID OR token invalid |
| Cold start issues | coldStart OR 冷启动 |
startTime = 1 hour ago)Always use ISO-like YYYY-MM-DD HH:mm:ss for metrics startTime/endTime, e.g., "2026-08-17 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 diagnosticsauth-tool-cloudbase — Auth provider readiness for token failuresf07c33c
Also appears in
since Jul 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.