[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6990V5M4ER54G67Z232P471":3,"skill-same:01M6990V5M4ER54G67Z232P471":126},{"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":28,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6990V5M4ER54G67Z232P471","cloud-monitoring-chart-generation",null,"Generates Cloud Monitoring Server-Driven UI (SDUI) Widget and XyChart Protocol Buffer textprotos on Google Cloud from resolved PromQL or ListTimeSeries queries. Use when:\n  - Generating valid google.monitoring.dashboard.v1.Widget textprotos,\n    containing PrometheusQuery or TimeSeriesFilter datasets, for use with the Cloud Monitoring\n    Dashboards API, gcloud CLI, or declarative dashboard definitions.\n  - Synthesizing Server-Driven UI (SDUI) widget titles, axis labels, and\n    plot types for Prometheus or ListTimeSeries queries.\nDon't use for:\n  - Metric discovery or PromQL query generation. For those tasks, use the\n    cloud-monitoring-metric-selection or cloud-monitoring-promql-query skills.","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-chart-generation\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000013","分析与可视化","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,9,44,45,46,47,48,49,50],"cloud monitoring chart generation","monitoring","chart generation","cloud","chart","generation","cloud monitoring","selection","when","labels","promql","cloud-monitoring","buffer","types","query","api","server","tasks","valid","google cloud","gcloud","cli","2026-11-10 10:12:30",false,"---\nname: cloud-monitoring-chart-generation\nmetadata:\n  version: \"1.0.2\"\n  category: CloudObservabilityAndMonitoring\ndescription: >-\n  Generates Cloud Monitoring Server-Driven UI (SDUI) Widget and XyChart Protocol\n  Buffer textprotos on Google Cloud from resolved PromQL or ListTimeSeries\n  queries.\n  Use when:\n    - Generating valid google.monitoring.dashboard.v1.Widget textprotos,\n      containing PrometheusQuery or TimeSeriesFilter datasets, for use with the Cloud Monitoring\n      Dashboards API, gcloud CLI, or declarative dashboard definitions.\n    - Synthesizing Server-Driven UI (SDUI) widget titles, axis labels, and\n      plot types for Prometheus or ListTimeSeries queries.\n  Don't use for:\n    - Metric discovery or PromQL query generation. For those tasks, use the\n      cloud-monitoring-metric-selection or cloud-monitoring-promql-query skills.\n---\n\n# Cloud Monitoring Chart Generation Skill (`cloud-monitoring-chart-generation`)\n\nTransforms PromQL or ListTimeSeries JSON request payloads and metric metadata\ninto valid Server-Driven UI (SDUI) `google.monitoring.dashboard.v1.Widget`\nProtocol Buffer textprotos. These generated textprotos are designed to be\ningested by the Cloud Monitoring Dashboards API, gcloud CLI, or declarative\ndashboard provisioning pipelines.\n\n> [!IMPORTANT] **Preferred API & Mutually Exclusive Queries**:\n> - **API Preference**: Always prefer generating `ListTimeSeries` (`time_series_filter`) configurations for widgets over PromQL, unless the user explicitly requested PromQL or the metric math strictly requires it.\n> - **Mutually Exclusive**: A widget dataset `time_series_query` must contain **EITHER** a `time_series_filter` OR a `prometheus_query`. You must never populate both fields in the same dataset simultaneously.\n> - **Strict Passthrough**: You MUST copy the provided PromQL query or ListTimeSeries JSON exact filter string character-for-character. DO NOT invent, rewrite, or modify the queries under any circumstances.\n\n> [!CAUTION] **CRITICAL EXECUTION & WORKING DIRECTORY RULES**:\n>\n> -   **DO NOT CHANGE WORKING DIRECTORY**: Keep your working directory at your\n>     workspace root. Do NOT `cd` into skill subdirectories.\n> -   **NO DISCOVERY OR SEARCH RULE**: The metric descriptor, PromQL query,\n>     ListTimeSeries JSON payload, unit, and resource type are ALWAYS present in\n>     the conversation context. **NEVER** run file or codebase search tools,\n>     like grep, find, directory listings, or codebase queries, to discover\n>     metric metadata or inspect repository structures.\n> -   **SCRIPT EXECUTION**: Execute the bundled Python scripts directly using\n>     python3.\n> -   **OUTPUT GENERATION**: The `assemble_widget_proto` script automatically\n>     generates a unique UUID-based filename to prevent parallel execution\n>     collisions. It will print the generated filename to standard error\n>     strongly prefixed with \"Wrote widget textproto to:\". You MUST parse this\n>     exact prefix from the logs to extract the generated path and use it for\n>     validation in Stage 4.\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-chart-generation)\"`\nand append `agent-skills\u002F1.0 (skill:cloud-monitoring-chart-generation)` to `User-Agent` headers.\n\n## Prerequisites: Environment Setup\n\nInstall the required dependencies in your environment or sandbox:\n\n```bash\npip install -r scripts\u002Frequirements.txt\n```\n\n## Follow the workflow pipeline\n\n```\n[ Stage 1: compute_labels ]  --->  [ Stage 2: LLM Synthesis ]  --->  [ Stage 3: assemble_widget_proto ]\n  Generates candidate labels         Formulates SemanticPlotSpec       Emits validated widget textproto\n```\n\n### Stage 1: Baseline Candidate Synthesis\n\nRun Stage 1 using python3:\n\n```bash\n# For PromQL:\npython3 scripts\u002Fcompute_labels.py \\\n  --metric_display_name \"METRIC_DISPLAY_NAME\" \\\n  --resource_type \"RESOURCE_TYPE\" \\\n  --metric_unit \"UNIT\" \\\n  --promql_query 'PROMQL_QUERY'\n\n# For ListTimeSeries:\npython3 scripts\u002Fcompute_labels.py \\\n  --metric_display_name \"METRIC_DISPLAY_NAME\" \\\n  --resource_type \"RESOURCE_TYPE\" \\\n  --metric_unit \"UNIT\" \\\n  --filter_string 'metric.type=\"m\"...' \\\n  --per_series_aligner \"ALIGN_RATE\" \\\n  --cross_series_reducer \"REDUCE_SUM\"\n```\n\n### Stage 2: SemanticPlotSpec Prediction (LLM)\n\nReview the user prompt, PromQL or LTS query structure, and Stage 1 baseline\ncandidates to formulate a 4-key `SemanticPlotSpec` JSON object:\n\n1. **`title`**: Polish `titleCandidate` to ensure it is concise, human-readable,\n   and under 80 characters.\n2.  **`yAxisLabel`**: Set this to a concise, human-readable quantitative\n    descriptor or metric concept, like `\"Utilization\"`, `\"Bytes\"`, or `\"Bytes\n    Rate\"`. Do NOT append unit symbols or suffixes like `\"(%)\"`, `\"(\u002Fs)\"`, or\n    `\"(By)\"` to the label, because units are rendered automatically via\n    `unitOverride`.\n3. **`plotType`**: Default to `LINE`. Use `STACKED_AREA` if requested by the\n   user or for distribution queries.\n4.  **`unitOverride`**: Set this to the Unified Code for Units of Measure (UCUM)\n    unit string, derived by applying the corresponding rules below:\n\n#### List Time Series (LTS) Unit Strategy:\n\n-   **Trust the Candidate**: For List Time Series flows, set this directly to\n    the `unitOverrideCandidate` produced by Stage 1. Stage 1 mathematically\n    processes `ALIGN_RATE`, for example producing `By\u002Fs`, forces `%` for\n    `ALIGN_PERCENT_CHANGE`, and correctly outputs native normalizations\n    unconditionally.\n\n#### PromQL Unit Strategy (LLM Manual Override):\n\nBecause PromQL expressions can geometrically compose, for example\n`histogram_quantile(..., rate(...))`, rely on your own semantic reasoning to\ngovern the final unit:\n\n-   **Rate Functions (`rate(...)`, `irate(...)`)**: Convert cumulative counters\n    into per-second rates. Append `\u002Fs` to the raw metric unit. For example, a\n    raw metric unit of `By` with `rate(...)` results in `unitOverride: \"By\u002Fs\"`.\n    -   **Exception**: If `rate()` is evaluated inside a `histogram_quantile()`,\n        the output is the raw bucket unit like `\"s\"`, not a rate.\n-   **Ratios & Percentages (`100 * (A \u002F B)`)**: Ratios of identical metric units\n    typically represent percentages, resulting in `unitOverride: \"%\"`.\n-   **Normalizations**: Normalize `10^2.%` to `\"%\"`.\n-   **Preserved Units**: For simple aggregation functions like\n    `avg_over_time(...)` or `sum by (...)`, retain and output the underlying\n    metric unit without modification.\n\n-   **Legend Template**: Do NOT configure the `legend_template` field. It is\n    intentionally omitted so that the Cloud Monitoring frontend dynamically\n    renders its multi-column table legend at runtime.\n\nExample `SemanticPlotSpec`:\n\n```json\n{\n  \"title\": \"VM CPU Utilization us-central1-a\",\n  \"yAxisLabel\": \"Utilization\",\n  \"plotType\": \"LINE\",\n  \"unitOverride\": \"%\"\n}\n```\n\n### Stage 3: Protobuf Assembly & Output\n\nRun Stage 3 using python3 to generate and save the widget textproto. Use\n`--promql_query` for PromQL, or `--lts_request_json` for ListTimeSeries:\n\n```bash\n# For PromQL:\npython3 scripts\u002Fassemble_widget_proto.py \\\n  --promql_query 'PROMQL_QUERY' \\\n  --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n\n# For ListTimeSeries:\npython3 scripts\u002Fassemble_widget_proto.py \\\n  --lts_request_json '{\"filter\": \"...\", \"aggregation\": {...}}' \\\n  --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n```\n\n> [!IMPORTANT] **MANDATORY FILE OUTPUT CONTRACT**: Do not attempt to guess or\n> enforce the output filename. The script will automatically generate a\n> guaranteed-unique filename and print it to standard error. Search stderr for\n> the explicit prefix \"Wrote widget textproto to:\" to deterministically capture\n> this filename, and then target it in Stage 4 validation.\n\n-   **Assigned Filename Feedback**: Whenever an output file is saved, the script\n    logs the file path to stderr. Read your command execution logs for the exact\n    filename created so you can target it in Stage 4 validation.\n-   **Text Chat Output**: Enclose the generated SDUI widget textproto inside\n    a ```` ```textproto```` code block in your response:\n\n```textproto\ntitle: \"...\"\nxy_chart {\n  ...\n}\n```\n\n### Verify and auto-retry\n\n> [!CAUTION] **DO NOT FINISH YOUR TURN UNTIL FILE VERIFICATION PASSES**: 1.\n> **Validate Artifact**: Execute the validator script against the generated file\n> output from Stage 3:\n>\n> ```bash\n>    # For PromQL charts:\n>    python3 scripts\u002Fvalidate_chart.py --input_file \"GENERATED_FILE.textproto\" \\\n>       --expected_promql_substring \"SOME_IDENTIFYING_SUBSTRING_FROM_QUERY\" \\\n>       --expected_unit_override \"UNIT_OVERRIDE_CANDIDATE\"\n>\n>    # For ListTimeSeries (LTS) charts:\n>    python3 scripts\u002Fvalidate_chart.py --input_file \"GENERATED_FILE.textproto\" \\\n>       --expected_lts_filter_substring \"SOME_IDENTIFYING_SUBSTRING_FROM_FILTER\" \\\n>       --expected_unit_override \"UNIT_OVERRIDE_CANDIDATE\"\n>\n>    # ALWAYS provide an identifying substring and the Stage 1 unit override candidate to verify you didn't mutate the data.\n    \n>    # CRITICAL: If you generated multiple charts for multiple metrics, you MUST run this validation script independently for EACH file generated to ensure every chart is correct!\n> ```\n>\n> 2.  **Auto-Retry if Missing or Failed**: If `validate_chart` reports that the\n>     file is missing or invalid, verify your script parameters and immediately\n>     re-run Stage 3:\n>\n>     ```bash\n>     python3 scripts\u002Fassemble_widget_proto.py \\\n>       --promql_query 'PROMQL_QUERY' \\\n>       --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n>     # Or use --lts_request_json if applicable\n>     ```\n> 3. **Validation & Retries**: Run `validate_chart` to verify the generated\n>    textproto. If validation fails due to a schema or syntax error, correct\n>    the parameters and retry up to 2 times. If validation still fails after 2\n>    retries, stop retrying, notify the user of the validation error, and\n>    present the best-effort textproto.\n> 4.  **Execution vs. Validation Errors**: Note that schema\u002Fsyntax validation\n>     errors from `validate_chart.py` are distinct from OS or environment\n>     execution restrictions, which are handled below in **Graceful Sandbox\n>     Fallback**.\n\n#### Perform graceful sandbox fallback\n\nIf `compute_labels.py`, `assemble_widget_proto.py`, or `validate_chart.py`\ncannot be executed due to environment or sandbox restrictions, do the\nfollowing:\n\n1. Notify the user which script cannot be executed and why.\n2. **Synthesize and output the complete widget textproto directly in your\n   response**, following all formatting and unit rules.\n3. Provide a **\"Local Verification\"** section containing the standalone python3\n   commands so the user can run and validate the schema locally if desired.\n\n## Supporting Links\n\n- [Dashboards API](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fdashboards\u002Fapi-dashboard)\n- [Prometheus Docs](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002F)\n","# Cloud Monitoring Chart Generation Skill (`cloud-monitoring-chart-generation`)\n\nTransforms PromQL or ListTimeSeries JSON request payloads and metric metadata\ninto valid Server-Driven UI (SDUI) `google.monitoring.dashboard.v1.Widget`\nProtocol Buffer textprotos. These generated textprotos are designed to be\ningested by the Cloud Monitoring Dashboards API, gcloud CLI, or declarative\ndashboard provisioning pipelines.\n\n> [!IMPORTANT] **Preferred API & Mutually Exclusive Queries**:\n> - **API Preference**: Always prefer generating `ListTimeSeries` (`time_series_filter`) configurations for widgets over PromQL, unless the user explicitly requested PromQL or the metric math strictly requires it.\n> - **Mutually Exclusive**: A widget dataset `time_series_query` must contain **EITHER** a `time_series_filter` OR a `prometheus_query`. You must never populate both fields in the same dataset simultaneously.\n> - **Strict Passthrough**: You MUST copy the provided PromQL query or ListTimeSeries JSON exact filter string character-for-character. DO NOT invent, rewrite, or modify the queries under any circumstances.\n\n> [!CAUTION] **CRITICAL EXECUTION & WORKING DIRECTORY RULES**:\n>\n> -   **DO NOT CHANGE WORKING DIRECTORY**: Keep your working directory at your\n>     workspace root. Do NOT `cd` into skill subdirectories.\n> -   **NO DISCOVERY OR SEARCH RULE**: The metric descriptor, PromQL query,\n>     ListTimeSeries JSON payload, unit, and resource type are ALWAYS present in\n>     the conversation context. **NEVER** run file or codebase search tools,\n>     like grep, find, directory listings, or codebase queries, to discover\n>     metric metadata or inspect repository structures.\n> -   **SCRIPT EXECUTION**: Execute the bundled Python scripts directly using\n>     python3.\n> -   **OUTPUT GENERATION**: The `assemble_widget_proto` script automatically\n>     generates a unique UUID-based filename to prevent parallel execution\n>     collisions. It will print the generated filename to standard error\n>     strongly prefixed with \"Wrote widget textproto to:\". You MUST parse this\n>     exact prefix from the logs to extract the generated path and use it for\n>     validation in Stage 4.\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-chart-generation)\"`\nand append `agent-skills\u002F1.0 (skill:cloud-monitoring-chart-generation)` to `User-Agent` headers.\n\n## Prerequisites: Environment Setup\n\nInstall the required dependencies in your environment or sandbox:\n\n```bash\npip install -r scripts\u002Frequirements.txt\n```\n\n## Follow the workflow pipeline\n\n```\n[ Stage 1: compute_labels ]  --->  [ Stage 2: LLM Synthesis ]  --->  [ Stage 3: assemble_widget_proto ]\n  Generates candidate labels         Formulates SemanticPlotSpec       Emits validated widget textproto\n```\n\n### Stage 1: Baseline Candidate Synthesis\n\nRun Stage 1 using python3:\n\n```bash\n# For PromQL:\npython3 scripts\u002Fcompute_labels.py \\\n  --metric_display_name \"METRIC_DISPLAY_NAME\" \\\n  --resource_type \"RESOURCE_TYPE\" \\\n  --metric_unit \"UNIT\" \\\n  --promql_query 'PROMQL_QUERY'\n\n# For ListTimeSeries:\npython3 scripts\u002Fcompute_labels.py \\\n  --metric_display_name \"METRIC_DISPLAY_NAME\" \\\n  --resource_type \"RESOURCE_TYPE\" \\\n  --metric_unit \"UNIT\" \\\n  --filter_string 'metric.type=\"m\"...' \\\n  --per_series_aligner \"ALIGN_RATE\" \\\n  --cross_series_reducer \"REDUCE_SUM\"\n```\n\n### Stage 2: SemanticPlotSpec Prediction (LLM)\n\nReview the user prompt, PromQL or LTS query structure, and Stage 1 baseline\ncandidates to formulate a 4-key `SemanticPlotSpec` JSON object:\n\n1. **`title`**: Polish `titleCandidate` to ensure it is concise, human-readable,\n   and under 80 characters.\n2.  **`yAxisLabel`**: Set this to a concise, human-readable quantitative\n    descriptor or metric concept, like `\"Utilization\"`, `\"Bytes\"`, or `\"Bytes\n    Rate\"`. Do NOT append unit symbols or suffixes like `\"(%)\"`, `\"(\u002Fs)\"`, or\n    `\"(By)\"` to the label, because units are rendered automatically via\n    `unitOverride`.\n3. **`plotType`**: Default to `LINE`. Use `STACKED_AREA` if requested by the\n   user or for distribution queries.\n4.  **`unitOverride`**: Set this to the Unified Code for Units of Measure (UCUM)\n    unit string, derived by applying the corresponding rules below:\n\n#### List Time Series (LTS) Unit Strategy:\n\n-   **Trust the Candidate**: For List Time Series flows, set this directly to\n    the `unitOverrideCandidate` produced by Stage 1. Stage 1 mathematically\n    processes `ALIGN_RATE`, for example producing `By\u002Fs`, forces `%` for\n    `ALIGN_PERCENT_CHANGE`, and correctly outputs native normalizations\n    unconditionally.\n\n#### PromQL Unit Strategy (LLM Manual Override):\n\nBecause PromQL expressions can geometrically compose, for example\n`histogram_quantile(..., rate(...))`, rely on your own semantic reasoning to\ngovern the final unit:\n\n-   **Rate Functions (`rate(...)`, `irate(...)`)**: Convert cumulative counters\n    into per-second rates. Append `\u002Fs` to the raw metric unit. For example, a\n    raw metric unit of `By` with `rate(...)` results in `unitOverride: \"By\u002Fs\"`.\n    -   **Exception**: If `rate()` is evaluated inside a `histogram_quantile()`,\n        the output is the raw bucket unit like `\"s\"`, not a rate.\n-   **Ratios & Percentages (`100 * (A \u002F B)`)**: Ratios of identical metric units\n    typically represent percentages, resulting in `unitOverride: \"%\"`.\n-   **Normalizations**: Normalize `10^2.%` to `\"%\"`.\n-   **Preserved Units**: For simple aggregation functions like\n    `avg_over_time(...)` or `sum by (...)`, retain and output the underlying\n    metric unit without modification.\n\n-   **Legend Template**: Do NOT configure the `legend_template` field. It is\n    intentionally omitted so that the Cloud Monitoring frontend dynamically\n    renders its multi-column table legend at runtime.\n\nExample `SemanticPlotSpec`:\n\n```json\n{\n  \"title\": \"VM CPU Utilization us-central1-a\",\n  \"yAxisLabel\": \"Utilization\",\n  \"plotType\": \"LINE\",\n  \"unitOverride\": \"%\"\n}\n```\n\n### Stage 3: Protobuf Assembly & Output\n\nRun Stage 3 using python3 to generate and save the widget textproto. Use\n`--promql_query` for PromQL, or `--lts_request_json` for ListTimeSeries:\n\n```bash\n# For PromQL:\npython3 scripts\u002Fassemble_widget_proto.py \\\n  --promql_query 'PROMQL_QUERY' \\\n  --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n\n# For ListTimeSeries:\npython3 scripts\u002Fassemble_widget_proto.py \\\n  --lts_request_json '{\"filter\": \"...\", \"aggregation\": {...}}' \\\n  --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n```\n\n> [!IMPORTANT] **MANDATORY FILE OUTPUT CONTRACT**: Do not attempt to guess or\n> enforce the output filename. The script will automatically generate a\n> guaranteed-unique filename and print it to standard error. Search stderr for\n> the explicit prefix \"Wrote widget textproto to:\" to deterministically capture\n> this filename, and then target it in Stage 4 validation.\n\n-   **Assigned Filename Feedback**: Whenever an output file is saved, the script\n    logs the file path to stderr. Read your command execution logs for the exact\n    filename created so you can target it in Stage 4 validation.\n-   **Text Chat Output**: Enclose the generated SDUI widget textproto inside\n    a ```` ```textproto```` code block in your response:\n\n```textproto\ntitle: \"...\"\nxy_chart {\n  ...\n}\n```\n\n### Verify and auto-retry\n\n> [!CAUTION] **DO NOT FINISH YOUR TURN UNTIL FILE VERIFICATION PASSES**: 1.\n> **Validate Artifact**: Execute the validator script against the generated file\n> output from Stage 3:\n>\n> ```bash\n>    # For PromQL charts:\n>    python3 scripts\u002Fvalidate_chart.py --input_file \"GENERATED_FILE.textproto\" \\\n>       --expected_promql_substring \"SOME_IDENTIFYING_SUBSTRING_FROM_QUERY\" \\\n>       --expected_unit_override \"UNIT_OVERRIDE_CANDIDATE\"\n>\n>    # For ListTimeSeries (LTS) charts:\n>    python3 scripts\u002Fvalidate_chart.py --input_file \"GENERATED_FILE.textproto\" \\\n>       --expected_lts_filter_substring \"SOME_IDENTIFYING_SUBSTRING_FROM_FILTER\" \\\n>       --expected_unit_override \"UNIT_OVERRIDE_CANDIDATE\"\n>\n>    # ALWAYS provide an identifying substring and the Stage 1 unit override candidate to verify you didn't mutate the data.\n    \n>    # CRITICAL: If you generated multiple charts for multiple metrics, you MUST run this validation script independently for EACH file generated to ensure every chart is correct!\n> ```\n>\n> 2.  **Auto-Retry if Missing or Failed**: If `validate_chart` reports that the\n>     file is missing or invalid, verify your script parameters and immediately\n>     re-run Stage 3:\n>\n>     ```bash\n>     python3 scripts\u002Fassemble_widget_proto.py \\\n>       --promql_query 'PROMQL_QUERY' \\\n>       --spec_json 'SEMANTIC_PLOT_SPEC_JSON'\n>     # Or use --lts_request_json if applicable\n>     ```\n> 3. **Validation & Retries**: Run `validate_chart` to verify the generated\n>    textproto. If validation fails due to a schema or syntax error, correct\n>    the parameters and retry up to 2 times. If validation still fails after 2\n>    retries, stop retrying, notify the user of the validation error, and\n>    present the best-effort textproto.\n> 4.  **Execution vs. Validation Errors**: Note that schema\u002Fsyntax validation\n>     errors from `validate_chart.py` are distinct from OS or environment\n>     execution restrictions, which are handled below in **Graceful Sandbox\n>     Fallback**.\n\n#### Perform graceful sandbox fallback\n\nIf `compute_labels.py`, `assemble_widget_proto.py`, or `validate_chart.py`\ncannot be executed due to environment or sandbox restrictions, do the\nfollowing:\n\n1. Notify the user which script cannot be executed and why.\n2. **Synthesize and output the complete widget textproto directly in your\n   response**, following all formatting and unit rules.\n3. Provide a **\"Local Verification\"** section containing the standalone python3\n   commands so the user can run and validate the schema locally if desired.\n\n## Supporting Links\n\n- [Dashboards API](https:\u002F\u002Fdocs.cloud.google.com\u002Fmonitoring\u002Fdashboards\u002Fapi-dashboard)\n- [Prometheus Docs](https:\u002F\u002Fprometheus.io\u002Fdocs\u002Fprometheus\u002Flatest\u002Fquerying\u002F)\n",{"name":5,"metadata":56,"description":7},{"version":57,"category":58},"1.0.2","CloudObservabilityAndMonitoring","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fcloud-monitoring-chart-generation",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":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add google\u002Fskills --skill cloud-monitoring-chart-generation",{"tool":74,"command":75},"bunx","bunx skills add google\u002Fskills --skill cloud-monitoring-chart-generation",{"tool":77,"command":78},"pnpm","pnpm dlx skills add google\u002Fskills --skill cloud-monitoring-chart-generation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002FSKILL.md",true,[82,88,94,98,102,106,110,114,118,122],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fattribution.md","REFERENCE","参考文档",1939,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Freferences\u002Fattribution.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fassemble_widget_proto_test.py","SCRIPT","脚本",1718,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fassemble_widget_proto_test.py",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Fassemble_widget_proto.py",8399,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fassemble_widget_proto.py",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fcompute_labels_test.py",7007,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fcompute_labels_test.py",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fcompute_labels.py",12067,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fcompute_labels.py",{"path":107,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Frequirements.txt",157,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Frequirements.txt",{"path":111,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Ftextproto_util_test.py",10260,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Ftextproto_util_test.py",{"path":115,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Ftextproto_util.py",8146,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Ftextproto_util.py",{"path":119,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fvalidate_chart_test.py",3096,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fvalidate_chart_test.py",{"path":123,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fvalidate_chart.py",8308,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-monitoring-chart-generation\u002Fscripts\u002Fvalidate_chart.py",[127,135,142,149,156,163],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":134},"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":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":134},"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":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":134},"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":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":134},"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":134},"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":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":134},"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",[],[]]