Command Palette

Search for a command to run...

Назад к скиллам
скилл № 55550

servicehealth-incident-correlation

Checks Personalized Service Health (PSH) events and resource-level impacts to determine whether a Google Cloud incident affects a project or its resources…

БесплатноБез исполняемых скриптов
googleот google★ 25 380 звёзд на GitHub

Установить servicehealth-incident-correlation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Personalized Service Health incident correlation

Correlates Personalized Service Health (PSH) events (v1) and resource-level impacts (v1beta, Preview) with observed workload symptoms (product, location, resource, time) to return a per-project impact verdict. Read-only: relay published PSH symptoms and workarounds without modifying resources or inventing incident data.

[!IMPORTANT] The costliest mistake is a false all-clear. Telling a responder "not Google" during an active Google Cloud incident misdirects incident response. When a PSH events call fails or the customer's product is not covered by PSH, the verdict is INCONCLUSIVE, never NO_IMPACT_IDENTIFIED.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Prerequisites

  • Target project: Pass {project_id} explicitly on every call; never run gcloud config set project.
  • Billing: The project must have an active billing account attached.
  • API enablement: Requires servicehealth.googleapis.com on {project_id} (gcloud services enable servicehealth.googleapis.com --project={project_id}; ask before enabling). Resource-level impacts (Preview) require enablement at least 24 hours before an incident starts.
  • Authentication & IAM: Authenticate via gcloud auth login, gcloud auth application-default login, or GOOGLE_APPLICATION_CREDENTIALS (install the Google Cloud CLI if gcloud is missing). Requires roles/servicehealth.viewer on {project_id} (servicehealth.events.* and servicehealth.impacts.*; custom roles may omit impacts), plus roles/mcp.toolUser for remote MCP.
  • Transports: Use the PSH remote MCP server (https://servicehealth.googleapis.com/mcp, scope https://www.googleapis.com/auth/servicehealth.readonly). Read REST API and gcloud fallback only if the MCP server is unavailable.

Workflow

Step 1: Determine scope

  1. Project ID. Query only a project named in the prompt/conversation, an alert payload (incident.resource.labels.project_id, else incident.scoping_project_id), a resource path projects/{project_id}/..., or caller context. Never fall back to the host's default gcloud project or GOOGLE_CLOUD_PROJECT: querying the agent's own host project produces false signals for unrelated stacks.
  2. Observed context. Extract any product, location, named resource, and reference time (alert incident.started_at in Unix seconds, a user-given time with relative times such as "20 minutes ago" converted to UTC, or now).
  3. Missing scope.
    • Interactive: Ask only when an essential identifier is missing (an unnamed workload project ID, or a question about a specific event without its event ID). When no workload project was named, ask solely for the Google Cloud project ID without issuing an impact verdict (Status: ...) or listing events from any environment, host, or quota project. Broad checks ("Are there any outages?") for a named project need no narrowing by service or region.
    • Headless (alert, notification, or automated caller): Never wait for human input; when no workload project ID is present, return INCONCLUSIVE right away, naming the missing project ID, without substituting any environment or quota project.
  4. PSH coverage. Whenever web access is available, fetch the live Supported products and locations page first; otherwise use the PSH coverage snapshot. Both list onboarded products and mark emerging incident (*), IMPACTED relevance (†), and resource-level impact (‡, Preview) support.

Step 2: Retrieve incidents (bounded)

All PSH resources use parent projects/{project_id}/locations/global. Pass pageSize: 100 and follow all nextPageToken pages (list_project_events defaults to pageSize=10 and orders results alphabetically by event_id, not newest-first). Take event resource names verbatim from retrieved events or the prompt.

MCP tools:

  • list_project_events (parent, filter, pageSize, pageToken): lists events without updates. Each eventImpacts entry carries the granular status of one product/location pair: state (AFFECTED or RESOLVED), startTime, and endTime. Filterable fields (space-joined AND): category, state, update_time, and `event_impacts.product.product_name
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/attribution.md
  • references/coverage.md
  • references/errors.md
  • references/report-examples.md
  • references/rest-fallback.md

FAQ

Что делает скилл servicehealth-incident-correlation?

Checks Personalized Service Health (PSH) events and resource-level impacts to determine whether a Google Cloud incident affects a project or its resources, returning an impact verdict with affected resources, published symptoms, and workarounds. Use when asked whether Google Cloud is having an outage or affecting a project or its resources, when looking up a PSH event, or when triaging live Google Cloud workload issues or alerts whose symptoms suggest a possible Google Cloud service disruption—even if the user does not suspect an outage. Don't use for local code or build errors, routine alerts or automations that neither ask for a service health check nor suggest a platform disruption, configuring PSH alerts, or checking non-project-specific public status.

Как установить скилл servicehealth-incident-correlation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл servicehealth-incident-correlation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить servicehealth-incident-correlation с