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★ 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, neverNO_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 rungcloud config set project. - Billing: The project must have an active billing account attached.
- API enablement: Requires
servicehealth.googleapis.comon{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, orGOOGLE_APPLICATION_CREDENTIALS(install the Google Cloud CLI ifgcloudis missing). Requiresroles/servicehealth.vieweron{project_id}(servicehealth.events.*andservicehealth.impacts.*; custom roles may omitimpacts), plusroles/mcp.toolUserfor remote MCP. - Transports: Use the
PSH remote MCP server
(
https://servicehealth.googleapis.com/mcp, scopehttps://www.googleapis.com/auth/servicehealth.readonly). Read REST API and gcloud fallback only if the MCP server is unavailable.
Workflow
Step 1: Determine scope
- Project ID. Query only a project named in the prompt/conversation, an
alert payload (
incident.resource.labels.project_id, elseincident.scoping_project_id), a resource pathprojects/{project_id}/..., or caller context. Never fall back to the host's defaultgcloudproject orGOOGLE_CLOUD_PROJECT: querying the agent's own host project produces false signals for unrelated stacks. - Observed context. Extract any product, location, named resource, and
reference time (alert
incident.started_atin Unix seconds, a user-given time with relative times such as "20 minutes ago" converted to UTC, or now). - 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
INCONCLUSIVEright away, naming the missing project ID, without substituting any environment or quota project.
- 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
(
- 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 (
*),IMPACTEDrelevance (†), 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 withoutupdates. EacheventImpactsentry carries the granular status of one product/location pair:state(AFFECTEDorRESOLVED),startTime, andendTime. Filterable fields (space-joined AND):category,state,update_time, and `event_impacts.product.product_name
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…