본문으로 건너뛰기
cccskills
무료GitHub에 공개

cloud-logging

Read and analyze log entries from Cloud Logging using the gcloud CLI.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Google Cloud
설치 방법 보기

포함된 파일(2)

  • SKILL.md2.9 KB
  • references/query-syntax.md5.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Read and analyze log entries from Cloud Logging using the gcloud CLI. $ARGUMENTS is a natural-language description of the log query (e.g., Cloud Run error logs from the last hour in production). If $ARGUMENTS is empty, ask the user for the query criteria.

Prerequisites

  • gcloud CLI is installed and authenticated
  • The user has the Logs Viewer role (or equivalent) on the target Google Cloud project

Steps

  1. Run gcloud config get-value project to confirm the current project ID. If the project is not set or may not match the user's intent, ask the user to confirm
  2. Analyze $ARGUMENTS to identify the following query parameters:
    • Monitored resource type (resource.type): e.g., cloud_run_revision, gce_instance, k8s_container, cloud_function
    • Log severity (severity): DEFAULT, DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
    • Time range (timestamp): Convert relative expressions (e.g., "last hour") to RFC 3339 timestamps based on the current time
    • Additional conditions: log name, labels, text search, JSON payload fields, etc.
  3. Build a Logging query from the identified parameters (refer to query-syntax.md for the query language specification)
  4. Present the constructed query to the user and ask for confirmation before executing
  5. Execute the query with gcloud logging read
    • Default flags: --limit=50 --format=json
    • Add --freshness or --order=asc/desc as needed
  6. Analyze the results and report a summary to the user, including:
    • Total number of log entries returned
    • Trends and patterns in errors or warnings
    • Notable log entries highlighted
  7. Handle follow-up requests from the user (e.g., narrowing filters, adjusting time range, inspecting specific log entries)

Query construction guidelines

  • Prefer indexed fields (resource.type, logName, severity, timestamp, labels.*) for faster queries
  • Avoid global restrictions ("keyword"); instead, specify the field (e.g., textPayload:, jsonPayload.message:)
  • Use the : (has) operator for substring matching and =~ for regular expressions (RE2 syntax)
  • Combine conditions with AND; use OR only when necessary, as it cannot leverage indexes
  • Wrap the entire query filter in single quotes when passing it to the gcloud CLI

Important

  • Only use gcloud logging read (read-only). Never execute write or mutating commands such as write, delete, or sinks create
  • When querying large volumes of log entries, use --limit to cap results and refine filters iteratively
  • If log entries contain sensitive information (PII, auth tokens, etc.), alert the user before displaying them
  • When no time range is specified, default to the last 1 hour

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

browser

무료

chrome-devtools-mcp の CLI (`chrome-devtools`) を使ったブラウザ操作の総合スキル。既存ブラウザへの attach / 使い捨てテストブラウザ / ログイン状態を保持する永続プロファイルのいずれかをユーザーに必ず確認した上でサーバを立ち上げ、スナップショット取得・クリック・入力・ナビゲーション・スクショ・ネットワーク監視などを行う。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

capture

무료

checklist の「UI 撮影台本」に沿って UI のスクリーンショットを撮影し、前後比較(compare.html)用の before / after 素材を保存する。「実装前の UI を撮っておいて」「after のスクショを撮って」などの依頼で発火する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

Codex 公式プラグイン (codex-plugin-cc) のネイティブレビューでコードレビューを実施する。PR 番号指定時は PR を、無指定時は現在ブランチとベースブランチの差分をレビューする。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

copy

무료

指定された内容をクリップボードにコピーするスキル。ファイルパスならその中身を、テキストならそのまま、会話中の直前の出力(コマンド結果・生成コード・URL など)を指す場合はその内容を pbcopy でコピーする。ユーザーが「コピーして」「クリップボードに入れて」などコピーの意図を示したら必ず使用する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

GitHub issue から PR のタイトルと説明文を作成する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

dev

무료

GitHub issue から計画・実装・テスト・レビュー・PR テキスト・理解確認まで一気通貫で行う。難易度 tier に応じてステップのモデル・effort・スキップを切り替える。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

tanabee/skills32026년 10월 17일 업데이트

tanabee의 스킬 모두 보기

이 스킬의 문제 신고