finding-google-skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Retrieve, query, and identify relevant Google Cloud Monitoring metric descriptors for a GCP service or resource (such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Cloud Storage, etc.). Use when asked to find, list, search, or discover GCP metric types,
$ npx -y skills add google/skills --skill cloud-monitoring-metric-selection --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cloud-monitoring-metric-selectionContext preview
The summary Claude sees to decide when to auto-load this skill.
Retrieve, query, and identify relevant Google Cloud Monitoring metric descriptors for a GCP service or resource (such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Cloud Storage, etc.). Use when asked to find, list, search, or discover GCP metric types,
name: cloud-monitoring-metric-selection metadata: category: CloudObservabilityAndMonitoring description: >- Retrieve, query, and identify relevant Google Cloud Monitoring metric descriptors for a GCP service or resource (such as Compute Engine, Spanner, BigQuery, Cloud Run, Cloud SQL, Pub/Sub, Cloud Storage, etc.). Use when asked to find, list, search, or discover GCP metric types, names, kind/value schemas, or descriptors.
Use this skill to identify the most relevant Google Cloud Monitoring metric descriptors. It queries all metric descriptors for a target service from the API and filters them locally inside the agent's context using keyword matching.
metric descriptors dynamically by calling the `list_metric_descriptors` MCP tool.
calling any API tools (such as `list_metric_descriptors`), you MUST ensure the GCP Project ID is provided in the prompt, URI, or environment context. If the Project ID cannot be resolved, you MUST ask the user to clarify or provide it BEFORE executing API queries. Do NOT run API queries against unconfirmed default or placeholder project names (such as `mock-project`, `my-project-id`, `unused`, or `YOUR_PROJECT_ID`).
public docs) are used, you MUST state the error, the fallback source, and the risks of non-live data (such as potential staleness, missing custom metrics, or schema mismatches).
1. Check if any tool matching `list_metric_descriptors` (such as `google-cloud-monitoring:list_metric_descriptors`, `mcp_google-cloud-monitoring_list_metric_descriptors`, or a similar pattern) is available in your active toolset. 2. **Verify via Unique URL**: To ensure you are calling the correct Google Cloud Monitoring tool, confirm that the underlying MCP server configuration points to: **`https://monitoring.googleapis.com/mcp`**. 3. If the tool is **missing**:
common paths:
configuration. **CRITICAL**: Merge the JSON object to preserve any existing MCP servers in `mcpServers`. Do not overwrite the file.
"google-cloud-monitoring": {
"url": "https://monitoring.googleapis.com/mcp",
"authProviderType": "google_credentials",
"enabledTools": [
"list_metric_descriptors"
]
}`google-cloud-monitoring` MCP server has been configured, and request them to restart or start a new chat session to refresh tools. Stop calling further tools and end the turn.
1. **Resolve Project ID and Identifiers**: Check for the GCP Project ID and resource identifiers in the prompt, resource URIs, or environment context. According to the CRITICAL RULES above, do NOT use placeholder project names.
2. **Identify Service Prefix**: Map target GCP services to their standard prefix (such as `compute`, `spanner`, `bigquery`, `storage`).
3. **Extract Metric Concepts**: Extract metric keywords from user prompt (such as "CPU", "memory", "bytes scanned", "latency", "connections") and map to search substrings.
*Example Query Analysis:*
count"
`//storage.googleapis.com/projects/my-project/buckets/my-bucket`
Query all metric descriptors for each identified service prefix using the `list_metric_descriptors` MCP tool (using `pageSize: 200`). Because Google Cloud Monitoring filters do not allow combining multiple `metric.type` restrictions with `OR`, you must **initiate a separate query for each identified service prefix** (either sequentially or in parallel).
If any response includes a `nextPageToken`, you MUST make consecutive follow-up calls passing `pageToken` until all remaining descriptors for that prefix are retrieved before filtering.
*Filter Pattern Construction:* Map the target service domain to its appropriate prefix style:
1. **Standard Google Cloud Services**: `starts_with("<service_prefix>.googleapis.com/")` (such as `bigquery.googleapis.com/`, `redis.googleapis.com/`). 2. **Ops Agent (Guest OS)**: `starts_with("agent.googleapis.com/")` (for guest OS memory/disk metrics). 3. **Kubernetes / GKE Native**: `starts_with("kubernetes.io/")` 4. **Istio Service Mesh**: `starts_with("istio.io/")` 5. **Knative Serving / Autoscaler**: `starts_with("knative.dev/")` 6. **Custom / External Metrics**: Use `starts_with("custom.googleapis.com/")` or `starts_with("external.googleapis.com/")`.
*Example Tool Call Payload:* If both Spanner and Compute Engine are targeted in the request, execute these two tool calls:
1. Spanner query:
{
"name": "projects/my-project-id",
"filter": "metric.type = starts_with(\"spanner.googleapis.com/\")",
"pageSize": 200
}1. Compute Engine query:
{
"name": "projects/my-project-id",
"filter": "metric.typeThis repository contains Agent Skills for Google products and technologies, including Google Cloud.
Repo: google/skills
Locates and loads the right Google product skill on demand from a remote catalog index, instead of preloading every skill. Use at the START of any request…
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.…
Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default…
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource. Use when a new…
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client…