Best for
- Use when users need health checks, log diagnosis, alarm interpretation (CPU alert normal?
TencentCloudBase/CloudBase-AI-Toolkit/config/source/skills/ops-inspector/SKILL.md
Use it for engineering and operations tasks; the detail page covers purpose, installation, and practical steps.
Decision brief
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill "config/source/skills/ops-inspector"Inspect the Agent Skill "ops-inspector" from https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/blob/43b60e5cdee1bae336a00ed3a8cc7e5b85ae5dca/config/source/skills/ops-inspector/SKILL.md at commit 43b60e5cdee1bae336a00ed3a8cc7e5b85ae5dca. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
v3 adds two mandatory capabilities on top of log/resource inspection:
Follow these steps in order for a comprehensive environment health check:
When the user specifies a resource type or a specific resource:
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
The user wants to check the health or status of CloudBase resources (cloud functions, CloudRun, databases, storage, etc.).
Permission review
The documentation includes network, browsing, or remote request actions.
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.The documentation includes network, browsing, or remote request actions.
Cloud Functions: https://tcb.cloud.tencent.com/dev?envId=${envId}#/scfEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 1,082 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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}#/devops
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 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 failuresFrequently asked questions
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../auth-tool-cloudbase/SKILL.md.
The source record exposes this install command: npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill "config/source/skills/ops-inspector". Inspect the command and pinned source before running it.
Static rules flagged network in the source; the page lists the matching lines and excerpts.
Alternatives
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre