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.
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill ops-inspector
If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.
https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.mdhttps://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ops-inspector/SKILL.mdKeep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as cloud-functions or cloudrun-development, use the standalone fallback URL shown next to that reference.
../cloud-functions/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloud-functions/SKILL.md)../cloudrun-development/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudrun-development/SKILL.md)../postgresql-development-cloudbase/SKILL.md for CloudBase PG / PostgreSQL (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/postgresql-development-cloudbase/SKILL.md), ../relational-database-mcp-cloudbase/SKILL.md for MySQL (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/relational-database-mcp-cloudbase/SKILL.md), or ../cloudbase-document-database-web-sdk/SKILL.md for NoSQL (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-document-database-web-sdk/SKILL.md)../cloudbase-platform/SKILL.md (standalone fallback: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/cloudbase-platform/SKILL.md)auth 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:
# 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 diagnosticsEfficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.
Access BRENDA enzyme database via SOAP API. Retrieve kinetic parameters (Km, kcat), reaction equations, organism data, and substrate-specific enzyme information for biochemical research and metabolic pathway analysis.
Access ClinPGx pharmacogenomics data (successor to PharmGKB). Query gene-drug interactions, CPIC guidelines, allele functions, for precision medicine and genotype-guided dosing decisions.
Query NCBI ClinVar for variant clinical significance. Search by gene/position, interpret pathogenicity classifications, access via E-utilities API or FTP, annotate VCFs, for genomic medicine.
Access COSMIC cancer mutation database. Query somatic mutations, Cancer Gene Census, mutational signatures, gene fusions, for cancer research and precision oncology. Requires authentication.
Query Ensembl genome database REST API for 250+ species. Gene lookups, sequence retrieval, variant analysis, comparative genomics, orthologs, VEP predictions, for genomic research.
Query openFDA API for drugs, devices, adverse events, recalls, regulatory submissions (510k, PMA), substance identification (UNII), for FDA regulatory data analysis and safety research.
Query NCBI Gene via E-utilities/Datasets API. Search by symbol/ID, retrieve gene info (RefSeqs, GO, locations, phenotypes), batch lookups, for gene annotation and functional analysis.
Take tencentcloudbase/ops-inspector from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.