google-cloud-slo-alert-configuration
できること
このスキルは、Google Cloud でサービスレベル目標(SLO)のアラートを設定する手助けをします。サービスが信頼性の目標を下回ったときに通知を受けたいチーム向けです。
使う場面
- ✓Google Cloud でサービスレベル目標(SLO)を設定したいとき。
- ✓App Hub に登録されたサービスや指定したリソースの SLO アラートが必要なとき。
- ✓SLO ベースのアラートポリシーの Terraform コードが欲しいとき。
スキルのリンク
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-slo-alert-configuration/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“チェックアウトサービスの SLO アラートを設定してください。信頼性が目標を下回ったときにチームに通知されるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
4 段階のウィザードで、サービスの範囲、サービスレベル、測定するメトリクス、アラートの条件を順に決めます。そのあと Terraform の設定を作成します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
SLO Alert Configuration Setup Wizard
This skill guides the user through a structured conversation to configure Cloud Monitoring PromQL-based Service Level Objective (SLO) alerting policies on Google Cloud in Terraform. Your role is to act as a setup wizard that conceptually models the 4 key components of an SLO API (Service Scope, Service Level, SLI, and Alert Condition), gathers the requirements, and outputs a Terraform configuration.
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-slo-alert-configuration)"
and append agent-skills/1.0 (skill:google-cloud-slo-alert-configuration) to User-Agent headers.
CRITICAL RULES
Structured Conversation: You MUST follow the 4-step wizard workflow below.
Gather Missing Information: Evaluate all 4 steps below first. Ask the user for all missing information across all steps in a single response.
DO NOT stop after finding the first missing piece of information.
DO NOT use the
ask_questiontool. You must ask questions using plain text in your response and end your turn to wait for the user to reply.DO NOT write the Terraform configuration if information is missing.
Skip What Is Known: If the user has already provided information for a step in their previous messages or initial prompt DO NOT ask them for it. Move to the next missing piece of information. If ALL information for Steps 1-4 is provided, call
write_to_fileto generate the Terraform configuration without asking for permission to proceed.Provide Best Practices: Whenever you ask the user a question, you MUST explicitly state the recommended "Best Practice".
Best Practice Shortcut: If the user asks for "best practices" or similar, do not overwrite their explicit inputs. SKIP all remaining data gathering and keep any specific targets or custom metrics they provided. For all fields left blank, apply the recommended defaults defined in the "SRE Best Practice Suggestion" of each step.
User Labels: Include a
user_labelsblock in allgoogle_monitoring_alert_policyresources to track policies created by this skill:user_labels = { created-with-google-skill = "google-cloud-slo-alert-configuration" }Terraform Output: Write the generated observability configuration ONLY as Terraform (
.tf) files using thegoogle_monitoring_alert_policyresource andcondition_prometheus_query_languageresources.Alert Strategy: ALWAYS include an
alert_strategyblock with anauto_closesetting. Leavenotification_channelsempty unless the user provides one. Provide plain-English explanations of the PromQL math before finalizing the conversation.
SETUP WIZARD WORKFLOW
Step 1: Define ServiceScope
Check Context: Identify target resource, service, workload, or application the user wants to monitor. If you already know, proceed. Otherwise ask the user to identify it.
Autonomous Investigation: If the user specified a project or general service name without providing specifics, autonomously use
gcloudto discover the target services in their environment. If multiple services or workloads are discovered, list all of them and suggest applying SLO ONLY to the most critical backend services as a best practice.If you struggle to identify potential resources, ask the user to specify.
Identify Underlying Infrastructure: To resolve the correct PromQL metric, you MUST know the underlying Google Cloud resource type.
- If the user only provides a logical name or an App Hub Service/Workload
name such as
projects/.../services/frontendorprojects/.../workloads/backend, you still need to know the underlying infrastructure. - If the prompt provides the underlying infrastructure, use that information. Do NOT attempt to discover it.
- If you don't know the underlying infrastruc
- If the user only provides a logical name or an App Hub Service/Workload
name such as
よくある質問
通常のアラートポリシーにも対応しますか?
いいえ。SLO アラートだけが対象です。通常のアラートには別のスキルを使ってください。
情報はどのように集めますか?
不足している詳細を、1 つずつではなく一度のメッセージでまとめて尋ねます。
出力は何ですか?
SLO アラートポリシーの Terraform 設定です。
詳細
作者による元の説明
Configures Cloud Monitoring PromQL-based Service Level Objective (SLO) alerting policies on Google Cloud for resources registered in App Hub or individually specified. Generates Terraform output. Use when the user asks to configure an SLO or Service Level Objective. Don't use for standard alerting policies.
repo: google/skills
人気
- GitHubのスター
- 22k
- ランキング
- #10316
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
finding-google-skills
22kセットアップ作業に合うGoogleの公式ガイドを探すようエージェントを支援します。ホスティング、データベース、ストレージ、サインイン、AIモデルの提供などが対象です。
gcloud
22kエージェントが、Google CloudのgcloudコマンドについてWeb検索に頼らず、正確な構文を確かめてから書いたり確認したりできるよう支援します。
google-cloud-recipe-auth
22kエージェントが、Google Cloudのアイデンティティとアクセス(人やサービスがどうサインインし、どの権限を得るか)について、手順を案内できるよう支援します。
google-cloud-recipe-onboarding
22k新しい開発者が、プロジェクトの選択、請求の設定、最初のリソースのデプロイなど、Google Cloudの最初の手順を進められるよう案内します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。