[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69913RW889ST0SXBK34V6DX":3,"skill-same:01M69913RW889ST0SXBK34V6DX":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M69913RW889ST0SXBK34V6DX","cloud-monitoring-promql-query",null,"Generates valid PromQL queries from Cloud Monitoring metric descriptors and resource parameters. Use when asked to create, generate, write, or format PromQL queries, PromQL strings, or PromQL aggregations for Cloud Monitoring metrics and resources. Don't use for raw metric discovery or metric selection.","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"promql","monitoring","cloud","cloud monitoring","cloud monitoring promql query","query","queries","when","metric","for","strings","resources","selection","use","write","format","discovery","generate","create","valid","2026-11-10 10:12:30",false,"---\nname: cloud-monitoring-promql-query\nmetadata:\n  version: \"1.0.1\"\n  category: CloudObservabilityAndMonitoring\ndescription: >-\n  Generates valid PromQL queries from Cloud Monitoring metric descriptors and\n  resource parameters. Use when asked to create, generate, write, or format\n  PromQL queries, PromQL strings, or PromQL aggregations for Cloud Monitoring\n  metrics and resources. Don't use for raw metric discovery or metric selection.\n---\n\n# Cloud Monitoring PromQL Generator\n\nUse this skill to generate a valid PromQL query from any Cloud Monitoring metric\ntype. This guide applies to all Cloud Monitoring metric types by mapping Cloud\nMonitoring metric and resource descriptors to PromQL structures.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:cloud-monitoring-promql-query)\"`\nand append `agent-skills\u002F1.0 (skill:cloud-monitoring-promql-query)` to `User-Agent` headers.\n\n## Workflow\n\n### Resolve Project ID (CRITICAL & BLOCKING)\n\nBefore performing any other actions (such as searching code, reading references,\nor running validation), you MUST verify whether the Google Cloud Project ID is\navailable:\n\n1.  **Check Prompt\u002FPayload**: Look for the Project ID in the user's prompt or\n    input.\n2.  **Check Environment**: If the Project ID is not present in the prompt, you\n    MUST run `gcloud config get-value project` to attempt to resolve it from the\n    environment.\n3.  **Ask for Clarification (BLOCKING)**: If the Project ID is not in the prompt\n    AND the `gcloud` command fails, returns an empty string, or is unavailable,\n    you MUST immediately stop. Do NOT generate a PromQL query, do not run the\n    validation script, and do not use placeholders (like `YOUR_PROJECT_ID`). You\n    must refuse to proceed and ask the user to provide the Project ID.\n\n### Inspect Metric and Resource Descriptors\n\n1.  **Use Provided Descriptors First**: If the user's prompt already includes\n    metric descriptor details (such as `metric.type`, `metricKind`, `valueType`,\n    or `monitoredResourceTypes`) or specific resource filter values, use those\n    values directly instead of calling the Cloud Monitoring API.\n2.  **Discover Missing Descriptors**: If exact metric descriptors\n    (`metric.type`, `metricKind`, `valueType`) are missing or underspecified,\n    resolve the target metric type's descriptor using one of these paths:\n    *   **Vague Query**: If the prompt is vague (for example, `\"VM CPU usage\"`),\n        use the `cloud-monitoring-metric-selection` skill first to identify the\n        specific metric type.\n    *   **Known Metric Type**: If you already have the specific metric type name\n        (for example, `compute.googleapis.com\u002Finstance\u002Fcpu\u002Futilization`) but\n        need its descriptor, call the\n        `google-cloud-monitoring:list_metric_descriptors` MCP tool. If the tool\n        is missing, refer to the `cloud-monitoring-metric-selection` skill to\n        configure the Cloud Monitoring MCP server.\n    *   **Fallback**: If the MCP tool cannot be configured, fall back to making\n        a direct Cloud Monitoring API call.\n3.  **Identify Key Fields**: From the retrieved descriptor, identify four key\n    schema attributes:\n    *   **`type`**: The Cloud Monitoring metric type string.\n    *   **`metricKind`**: `GAUGE`, `DELTA`, or `CUMULATIVE`.\n    *   **`valueType`**: `INT64`, `DOUBLE`, `DISTRIBUTION`, or `BOOL`.\n    *   **`monitoredResourceTypes`**: Compatible `resource.type` strings\n        required for resource scoping and grouping.\n\n### Resolve Resource Filters & Discovery Protocol\n\nTo filter data by a specific resource instance, apply these resource rules and\ndiscovery protocols:\n\n1.  **Monitored Resource Filter**: Always include the\n    `monitored_resource=\"\u003Ctype>\"` filter in your query to prevent collisions\n    across services that share metric names.\n    *   **Example**: `monitored_resource=\"gae_app\"`\n2.  **Preserve User Literals (CRITICAL)**: ALWAYS use the literal resource\n    names, namespaces, and IDs provided in the user's prompt. Do **NOT**\n    override or replace these values with active resource names found during\n    Cloud Monitoring discovery unless the user explicitly asked you to find\n    active resources. Telemetry discovery must only be used to identify metric\n    type names and label keys, not to override user input.\n3.  **Resource Identifier Mapping**:\n    *   **Direct & Specific Keys**: Use the most specific resource identifier\n        available. **Example**: `version_id`, `cluster_name`.\n    *   **Name-to-ID Resolution**: If the user filters by a resource *name*\n        (such as `\"instance-1\"`), but the resource schema uses numeric IDs (like\n        `instance_id`), use PromQL string name labels instead of numeric ID\n        labels. **Example**: `instance_name`, `metadata_system_name`.\n    *   **Composite Identifiers**: For resources with hierarchical identifiers\n        (such as Cloud SQL databases), format the filter as a single composite\n        key. Do NOT split them into separate `project_id` and sub-resource\n        labels. **Example**: `database_id=\"{project_id}:{instance_name}\"`.\n4.  **Resource Label Discovery**: The\n    `google-cloud-monitoring:list_metric_descriptors` tool only returns\n    metric-specific labels. If the label schema for a monitored resource is\n    unknown, fetch the resource descriptor directly from the Cloud Monitoring v3\n    REST API (`projects.monitoredResourceDescriptors.get`):\n\n    ```bash\n    TOKEN=$(gcloud auth application-default print-access-token 2>\u002Fdev\u002Fnull || gcloud auth print-access-token)\n    curl -s -H \"Authorization: Bearer ${TOKEN}\" \\\n    \"https:\u002F\u002Fmonitoring.googleapis.com\u002Fv3\u002Fprojects\u002F{project_id}\u002FmonitoredResourceDescriptors\u002F{monitored_resource_type}\"\n    ```\n\n    An HTTP 200 OK response returns the `MonitoredResourceDescriptor` object\n    containing the `labels` array with the exact resource label keys for that\n    resource.\n\n### Choose Aggregation Structure & Defaults\n\nThe query structure and aggregation functions (such as `rate`,\n`histogram_quantile`, `sum`, or `avg`) depend on the metric type and how it is\nvisualized.\n\n1.  **Consult the Reference**: Consult the\n    [Cloud Monitoring to PromQL Basic Aggregations Reference](references\u002Fbasic_aggregations.md)\n    as the single source of truth to map Cloud Monitoring properties (Metric\n    Kind, Value Type, Aligner, Reducer) to their PromQL structures.\n2.  **SRE Aggregation & Visualization Rules**:\n    *   **Do NOT sum or average ratio\u002Fpercentage utilization metrics** (like CPU\n        % or Memory limit utilization) across resource instances. Instead, keep\n        them unaggregated (raw metric), group by instance, or wrap in `topk(30,\n        avg_over_time(...))`.\n    *   **State Label Filtering (CRITICAL)**: Only the metrics\n        `agent.googleapis.com\u002Fmemory\u002Fpercent_used` and\n        `agent.googleapis.com\u002Fdisk\u002Fpercent_used` require `{state!=\"free\"}`. Do\n        **NOT** filter by `{state=\"used\"}`.\n\n### Format & Validate Query\n\nBefore presenting any PromQL queries, validate them using the linter:\n\n#### Python Dependencies\n\nBefore executing the validation script (`scripts\u002Fvalidate_promql.py`), install\nthe required Python dependencies:\n\n```bash\npython3 -c \"import promql_parser\" || pip install promql-parser\n```\n\n#### Validation Procedure\n\n1.  **Format Constraints**:\n    *   **Metric Name Normalization**: Convert Cloud Monitoring metric types to\n        PromQL metric names using this recipe:\n        1.  **Split Domain and Path**: Split the Cloud Monitoring metric type by\n            the first slash (`\u002F`) to separate the domain from the path.\n            *   **Example**:\n                `storage.googleapis.com\u002Fnetwork\u002Freceived_bytes_count` -> domain\n                `storage.googleapis.com`, path `network\u002Freceived_bytes_count`\n        2.  **Normalize Domain**: Replace all periods (`.`) in the domain with\n            underscores (`_`).\n            *   **Example**: `storage.googleapis.com` ->\n                `storage_googleapis_com`\n        3.  **Normalize Path**: Replace all periods (`.`) and slashes (`\u002F`) in\n            the path with underscores (`_`).\n            *   **Example**: `network\u002Freceived_bytes_count` ->\n                `network_received_bytes_count`\n        4.  **Join with Colon**: Join the normalized domain and normalized path\n            with a colon (`:`).\n            *   **Example**:\n                `storage_googleapis_com:network_received_bytes_count`\n        5.  **Native Prometheus Metrics**: If the metric type has no slash, keep\n            it as-is.\n            *   **Example**: `up` -> `up`, `http_requests_total` ->\n                `http_requests_total`\n        6.  **Distribution Suffix**: If the metric's `valueType` is\n            `DISTRIBUTION`, append `_bucket` to the end of the normalized name.\n            *   **Example**:\n                `cloudfunctions.googleapis.com\u002Ffunction\u002Fexecution_times` ->\n                `cloudfunctions_googleapis_com:function_execution_times_bucket`\n    *   Ensure the final query is a **single line with no comments** (no `#` or\n        `\u002F\u002F`). Cloud Monitoring query translation collapses whitespace and can\n        cause code trailing a comment to be ignored or throw parsing errors.\n    *   **Grouping Clause Syntax**: Ensure grouping clauses (such as `by\n        (label)`) only follow aggregation operators (such as `sum`, `avg`,\n        `min`, `max`, or `count`). Never place a grouping clause directly after\n        a metric selector.\n        *   **Incorrect**: `metric{...} by (label)`\n        *   **Correct**: `sum(rate(metric{...}[5m])) by (label)`\n    *   **Fenced Output Code Block**: ALWAYS wrap the final verified PromQL\n        query in a fenced `promql` code block in your final response.\n2.  **Linter Verification**:\n    *   Validate all generated queries in a single batch: `python3\n        \u003Cpath_to_skill>\u002Fscripts\u002Fvalidate_promql.py --query '\u003Cq1>' '\u003Cq2>'`\n    *   If validation fails, read\n        [PromQL Error Recovery Guide](references\u002Fpromql_error_recovery.md) to\n        diagnose and fix common type mismatches and syntax errors before\n        repeating the loop.\n\n## References\n\n*   [Cloud Monitoring PromQL Basic Aggregations Reference](references\u002Fbasic_aggregations.md)\n*   [Cloud Monitoring PromQL Error Recovery Guide](references\u002Fpromql_error_recovery.md)\n*   [Cloud Monitoring PromQL Documentation](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fpromql.md.txt)\n*   [Cloud Monitoring Monitored Resource Types Reference](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fapi\u002Fresources.md.txt)\n","# Cloud Monitoring PromQL Generator\n\nUse this skill to generate a valid PromQL query from any Cloud Monitoring metric\ntype. This guide applies to all Cloud Monitoring metric types by mapping Cloud\nMonitoring metric and resource descriptors to PromQL structures.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:cloud-monitoring-promql-query)\"`\nand append `agent-skills\u002F1.0 (skill:cloud-monitoring-promql-query)` to `User-Agent` headers.\n\n## Workflow\n\n### Resolve Project ID (CRITICAL & BLOCKING)\n\nBefore performing any other actions (such as searching code, reading references,\nor running validation), you MUST verify whether the Google Cloud Project ID is\navailable:\n\n1.  **Check Prompt\u002FPayload**: Look for the Project ID in the user's prompt or\n    input.\n2.  **Check Environment**: If the Project ID is not present in the prompt, you\n    MUST run `gcloud config get-value project` to attempt to resolve it from the\n    environment.\n3.  **Ask for Clarification (BLOCKING)**: If the Project ID is not in the prompt\n    AND the `gcloud` command fails, returns an empty string, or is unavailable,\n    you MUST immediately stop. Do NOT generate a PromQL query, do not run the\n    validation script, and do not use placeholders (like `YOUR_PROJECT_ID`). You\n    must refuse to proceed and ask the user to provide the Project ID.\n\n### Inspect Metric and Resource Descriptors\n\n1.  **Use Provided Descriptors First**: If the user's prompt already includes\n    metric descriptor details (such as `metric.type`, `metricKind`, `valueType`,\n    or `monitoredResourceTypes`) or specific resource filter values, use those\n    values directly instead of calling the Cloud Monitoring API.\n2.  **Discover Missing Descriptors**: If exact metric descriptors\n    (`metric.type`, `metricKind`, `valueType`) are missing or underspecified,\n    resolve the target metric type's descriptor using one of these paths:\n    *   **Vague Query**: If the prompt is vague (for example, `\"VM CPU usage\"`),\n        use the `cloud-monitoring-metric-selection` skill first to identify the\n        specific metric type.\n    *   **Known Metric Type**: If you already have the specific metric type name\n        (for example, `compute.googleapis.com\u002Finstance\u002Fcpu\u002Futilization`) but\n        need its descriptor, call the\n        `google-cloud-monitoring:list_metric_descriptors` MCP tool. If the tool\n        is missing, refer to the `cloud-monitoring-metric-selection` skill to\n        configure the Cloud Monitoring MCP server.\n    *   **Fallback**: If the MCP tool cannot be configured, fall back to making\n        a direct Cloud Monitoring API call.\n3.  **Identify Key Fields**: From the retrieved descriptor, identify four key\n    schema attributes:\n    *   **`type`**: The Cloud Monitoring metric type string.\n    *   **`metricKind`**: `GAUGE`, `DELTA`, or `CUMULATIVE`.\n    *   **`valueType`**: `INT64`, `DOUBLE`, `DISTRIBUTION`, or `BOOL`.\n    *   **`monitoredResourceTypes`**: Compatible `resource.type` strings\n        required for resource scoping and grouping.\n\n### Resolve Resource Filters & Discovery Protocol\n\nTo filter data by a specific resource instance, apply these resource rules and\ndiscovery protocols:\n\n1.  **Monitored Resource Filter**: Always include the\n    `monitored_resource=\"\u003Ctype>\"` filter in your query to prevent collisions\n    across services that share metric names.\n    *   **Example**: `monitored_resource=\"gae_app\"`\n2.  **Preserve User Literals (CRITICAL)**: ALWAYS use the literal resource\n    names, namespaces, and IDs provided in the user's prompt. Do **NOT**\n    override or replace these values with active resource names found during\n    Cloud Monitoring discovery unless the user explicitly asked you to find\n    active resources. Telemetry discovery must only be used to identify metric\n    type names and label keys, not to override user input.\n3.  **Resource Identifier Mapping**:\n    *   **Direct & Specific Keys**: Use the most specific resource identifier\n        available. **Example**: `version_id`, `cluster_name`.\n    *   **Name-to-ID Resolution**: If the user filters by a resource *name*\n        (such as `\"instance-1\"`), but the resource schema uses numeric IDs (like\n        `instance_id`), use PromQL string name labels instead of numeric ID\n        labels. **Example**: `instance_name`, `metadata_system_name`.\n    *   **Composite Identifiers**: For resources with hierarchical identifiers\n        (such as Cloud SQL databases), format the filter as a single composite\n        key. Do NOT split them into separate `project_id` and sub-resource\n        labels. **Example**: `database_id=\"{project_id}:{instance_name}\"`.\n4.  **Resource Label Discovery**: The\n    `google-cloud-monitoring:list_metric_descriptors` tool only returns\n    metric-specific labels. If the label schema for a monitored resource is\n    unknown, fetch the resource descriptor directly from the Cloud Monitoring v3\n    REST API (`projects.monitoredResourceDescriptors.get`):\n\n    ```bash\n    TOKEN=$(gcloud auth application-default print-access-token 2>\u002Fdev\u002Fnull || gcloud auth print-access-token)\n    curl -s -H \"Authorization: Bearer ${TOKEN}\" \\\n    \"https:\u002F\u002Fmonitoring.googleapis.com\u002Fv3\u002Fprojects\u002F{project_id}\u002FmonitoredResourceDescriptors\u002F{monitored_resource_type}\"\n    ```\n\n    An HTTP 200 OK response returns the `MonitoredResourceDescriptor` object\n    containing the `labels` array with the exact resource label keys for that\n    resource.\n\n### Choose Aggregation Structure & Defaults\n\nThe query structure and aggregation functions (such as `rate`,\n`histogram_quantile`, `sum`, or `avg`) depend on the metric type and how it is\nvisualized.\n\n1.  **Consult the Reference**: Consult the\n    [Cloud Monitoring to PromQL Basic Aggregations Reference](references\u002Fbasic_aggregations.md)\n    as the single source of truth to map Cloud Monitoring properties (Metric\n    Kind, Value Type, Aligner, Reducer) to their PromQL structures.\n2.  **SRE Aggregation & Visualization Rules**:\n    *   **Do NOT sum or average ratio\u002Fpercentage utilization metrics** (like CPU\n        % or Memory limit utilization) across resource instances. Instead, keep\n        them unaggregated (raw metric), group by instance, or wrap in `topk(30,\n        avg_over_time(...))`.\n    *   **State Label Filtering (CRITICAL)**: Only the metrics\n        `agent.googleapis.com\u002Fmemory\u002Fpercent_used` and\n        `agent.googleapis.com\u002Fdisk\u002Fpercent_used` require `{state!=\"free\"}`. Do\n        **NOT** filter by `{state=\"used\"}`.\n\n### Format & Validate Query\n\nBefore presenting any PromQL queries, validate them using the linter:\n\n#### Python Dependencies\n\nBefore executing the validation script (`scripts\u002Fvalidate_promql.py`), install\nthe required Python dependencies:\n\n```bash\npython3 -c \"import promql_parser\" || pip install promql-parser\n```\n\n#### Validation Procedure\n\n1.  **Format Constraints**:\n    *   **Metric Name Normalization**: Convert Cloud Monitoring metric types to\n        PromQL metric names using this recipe:\n        1.  **Split Domain and Path**: Split the Cloud Monitoring metric type by\n            the first slash (`\u002F`) to separate the domain from the path.\n            *   **Example**:\n                `storage.googleapis.com\u002Fnetwork\u002Freceived_bytes_count` -> domain\n                `storage.googleapis.com`, path `network\u002Freceived_bytes_count`\n        2.  **Normalize Domain**: Replace all periods (`.`) in the domain with\n            underscores (`_`).\n            *   **Example**: `storage.googleapis.com` ->\n                `storage_googleapis_com`\n        3.  **Normalize Path**: Replace all periods (`.`) and slashes (`\u002F`) in\n            the path with underscores (`_`).\n            *   **Example**: `network\u002Freceived_bytes_count` ->\n                `network_received_bytes_count`\n        4.  **Join with Colon**: Join the normalized domain and normalized path\n            with a colon (`:`).\n            *   **Example**:\n                `storage_googleapis_com:network_received_bytes_count`\n        5.  **Native Prometheus Metrics**: If the metric type has no slash, keep\n            it as-is.\n            *   **Example**: `up` -> `up`, `http_requests_total` ->\n                `http_requests_total`\n        6.  **Distribution Suffix**: If the metric's `valueType` is\n            `DISTRIBUTION`, append `_bucket` to the end of the normalized name.\n            *   **Example**:\n                `cloudfunctions.googleapis.com\u002Ffunction\u002Fexecution_times` ->\n                `cloudfunctions_googleapis_com:function_execution_times_bucket`\n    *   Ensure the final query is a **single line with no comments** (no `#` or\n        `\u002F\u002F`). Cloud Monitoring query translation collapses whitespace and can\n        cause code trailing a comment to be ignored or throw parsing errors.\n    *   **Grouping Clause Syntax**: Ensure grouping clauses (such as `by\n        (label)`) only follow aggregation operators (such as `sum`, `avg`,\n        `min`, `max`, or `count`). Never place a grouping clause directly after\n        a metric selector.\n        *   **Incorrect**: `metric{...} by (label)`\n        *   **Correct**: `sum(rate(metric{...}[5m])) by (label)`\n    *   **Fenced Output Code Block**: ALWAYS wrap the final verified PromQL\n        query in a fenced `promql` code block in your final response.\n2.  **Linter Verification**:\n    *   Validate all generated queries in a single batch: `python3\n        \u003Cpath_to_skill>\u002Fscripts\u002Fvalidate_promql.py --query '\u003Cq1>' '\u003Cq2>'`\n    *   If validation fails, read\n        [PromQL Error Recovery Guide](references\u002Fpromql_error_recovery.md) to\n        diagnose and fix common type mismatches and syntax errors before\n        repeating the loop.\n\n## References\n\n*   [Cloud Monitoring PromQL Basic Aggregations Reference](references\u002Fbasic_aggregations.md)\n*   [Cloud Monitoring PromQL Error Recovery Guide](references\u002Fpromql_error_recovery.md)\n*   [Cloud Monitoring PromQL Documentation](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fpromql.md.txt)\n*   [Cloud Monitoring Monitored Resource Types Reference](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fapi\u002Fresources.md.txt)\n",{"name":5,"metadata":44,"description":7},{"version":45,"category":46},"1.0.1","CloudObservabilityAndMonitoring","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fcloud-monitoring-promql-query",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add google\u002Fskills --skill cloud-monitoring-promql-query",{"tool":62,"command":63},"bunx","bunx skills add google\u002Fskills --skill cloud-monitoring-promql-query",{"tool":65,"command":66},"pnpm","pnpm dlx skills add google\u002Fskills --skill cloud-monitoring-promql-query","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002FSKILL.md",true,[70,76,80,84,90],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fattribution.md","REFERENCE","参考文档",1927,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002Freferences\u002Fattribution.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fbasic_aggregations.md",13064,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002Freferences\u002Fbasic_aggregations.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fpromql_error_recovery.md",5218,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002Freferences\u002Fpromql_error_recovery.md",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fvalidate_promql_test.py","SCRIPT","脚本",9798,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002Fscripts\u002Fvalidate_promql_test.py",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fvalidate_promql.py",7693,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-promql-query\u002Fscripts\u002Fvalidate_promql.py",[95,103,110,117,124,131],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":102},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":102},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":102},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":102},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":102},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]