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.
npx skills add hamzabellouch/agent-skills --skill cloud-logging-query-generationgit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote 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.
[](https://agentmods.dev/skills/hamzabellouch/agent-skills/cloud-logging-query-generation)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.01468 |
| Opus 5 | $0.00034 | $0.00734 |
| Sonnet 5 | $0.00013 | $0.00294 |
| Haiku 4.5 | $0.00007 | $0.00147 |
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 9d 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.
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
-
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.
- Always use double quotes (
-
Common pitfalls:
- Instance ID vs. Instance Name: For the
gce_instanceresource 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 useresource.labels.instance_nameif that label is available for the resource. - Resource Type Accuracy: Do not guess resource types. You must look
up the correct
resource.typevalue in the service-specific reference files. For example, useinternal_http_lb_rulefor Internal HTTP(S) Load Balancer rules when filtering by forwarding rule name or region (instead ofhttp_load_balancer).
- Instance ID vs. Instance Name: For the
-
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.
- 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
-
Preferred fields:
- Include
resource.typeandlog_idrestrictions when the query targets specific Google Cloud services or resources. Global queries (for example, "latest error logs") do not require these restrictions.
- Include
What ships with it
21 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/api_reference.md 5.1 KB
- references/query_app_engine.md 1.5 KB
- references/query_bigquery.md 3.2 KB
- references/query_cloud_functions.md 257 B
- references/query_cloud_observability.md 1.3 KB
- references/query_cloud_run.md 381 B
- references/query_cloud_source_repositories.md 208 B
- references/query_cloud_sql.md 1.2 KB
- references/query_cloud_storage.md 814 B
- references/query_cloud_tasks.md 181 B
- references/query_compute_engine.md 11 KB
- references/query_dataflow.md 238 B
- references/query_dataproc.md 214 B
- references/query_deployment_manager.md 160 B
- references/query_gke.md 18 KB
- references/query_iam.md 2.4 KB
- references/query_networking.md 5.1 KB
- references/query_security.md 1.4 KB
- references/query_service_usage.md 818 B
- references/query_spanner.md 223 B
- references/query_third_party.md 3.0 KB
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.
- 9d ago First seen · 126 lines · 67 tokens per session scan A b4ac73c9e97d
cloud-logging-query-generation is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 1,468 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
distributed-tracing
Implement distributed tracing with OpenTelemetry, Tempo/Jaeger — instrumentation, sampling, and trace-to-log correlation. Use when the user asks about distributed tracing, OpenTelemetry setup, span instrumentation, trace propagation, or connecting traces to logs and metrics.
performance-optimization
Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.
doubt-driven-development
Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high…
shipping-and-launch
Prepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.
gcloud-usage
This skill should be used when user asks about "GCloud logs", "Cloud Logging queries", "Google Cloud metrics", "GCP observability", "trace analysis", or "debugging production issues on GCP".
bug-fix-protocol
8-step disciplined bug-fix protocol that treats every production bug as two failures — the code defect itself and the testing system that allowed it through. Use when fixing a production bug, investigating a regression, writing a post-mortem, or auditing a missed defect. Triggers on "fix this bug", "production bug"…