cloud-logging-query-generation

cloud-logging-query-generation is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 67 tokens per session (1,468 once invoked), scanned A, original, MIT.

A guide for writing Google Cloud Logging queries in Logging Query Language, the syntax used to search Google Cloud logs. It covers required syntax and service-specific resource types.

In plain words
What is it for?
It helps build queries for debugging and filtering logs from specific Google Cloud services.
Why use it?
Incorrect quotes, operators, or resource names can make a log query fail or return the wrong records. The guide keeps queries consistent with Cloud Logging's rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps build queries for debugging and filtering logs from specific Google Cloud services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/cloud-logging-query-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill cloud-logging-query-generation
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-logging-query-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-logging-query-generation/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-logging-query-generation)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-logging-query-generation"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-logging-query-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloud-logging-query-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-logging-query-generation"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/cloud-logging-query-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01468
Opus 5.5 $0.00027 $0.00587
Sonnet 5.5 $0.00013 $0.00294
Haiku 4.5 $0.00007 $0.00147

Measured 2mo ago against content hash b4ac73c9e97d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-logging-query-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Google Cloud and GKE/cloud-logging-query-generation/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Logging Query Language queries

Use this skill to generate correct Logging Query Language (LQL) queries for Cloud Logging.

Core rules

  1. Strict syntax requirements:

    • Always use double quotes (") for string literals. Do not use single quotes (').
    • Write boolean operators in all capitals: AND, OR, NOT.
    • Always use parentheses to group terms and explicitly enforce precedence.
  2. Common pitfalls:

    • Instance ID vs. Instance Name: For the gce_instance resource type, do NOT compare instance names to instance IDs. Instance names are strings (for example, my-instance). Instance IDs are numeric. If you only have the name, then search by instance name, SEARCH("my-instance"), or use resource.labels.instance_name if that label is available for the resource.
    • Resource Type Accuracy: Do not guess resource types. You must look up the correct resource.type value in the service-specific reference files. For example, use internal_http_lb_rule for Internal HTTP(S) Load Balancer rules when filtering by forwarding rule name or region (instead of http_load_balancer).
  3. Output format and placeholders:

    • Output only the raw LQL query text. Do not include conversational filler. Do not wrap the query in markdown code blocks unless explicitly requested by the user. Valid LQL comments (using --) are allowed, and are the ONLY acceptable way to include explanations or warnings.
    • Never block on missing variables. If the user's request lacks specific identifiers (like a project ID, instance name, or IP address), do not ask them for clarification. Instead, insert uppercase placeholder strings wrapped in angle brackets (for example, "<PROJECT_ID>", "<YOUR_SERVICE_NAME>") directly into the query.
  4. Preferred fields:

    • Include resource.type and log_id restrictions when the query targets specific Google Cloud services or resources. Global queries (for example, "latest error logs") do not require these restrictions.

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 126 lines · 67 tokens per session scan A b4ac73c9e97d

Subscribe to this mod's changes

cloud-logging-query-generation is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 22d ago), licensed MIT. It adds 67 tokens to every session and 1,468 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cloud-logging-query-generation compared with skills from other repositories

cloud-logging-query-generation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-logging-query-generationhamzabellouch/agent-skillsSkill822d agoMITA67Claude Code, Codex
spec-investigatebenjaminthomas/spec-driven-devSkill22d agoMITA213Claude Code
doubt-driven-developmentaddyosmani/agent-skillsSkill114k6d agoMITA96Claude Code
performance-optimizationaddyosmani/agent-skillsSkill114k6d agoMITA59Claude Code
gcloud-usagefcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A49Claude Code
troubleshoot-websitehostinger/api-mcp-serverSkill1712d agoMITA139Claude Code, Codex
pulumi-troubleshootingpr-pm/prpmSkill12424d agoMITA40Claude Code