google/skills✦ 精选0°

cloud-logging-query-generation

仓库创建 2026年4月1日最近提交 2 小时前SkillHot 收录 1 小时前
▸ 精选理由

显著降低编写复杂 LQL 查询的门槛,调试效率高。

▸ 风险提示

生成的查询可能用于读取敏感日志,需合规与最低权限原则。

这个 Skill 做什么

从自然语言生成符合 Logging Query Language 的 Cloud Logging 查询语句。

把你用自然语言描述的查询意图翻成 Google Cloud Logging 的 Logging Query Language (LQL) 语句,方便直接在 Cloud Logging 里跑日志查询。调试问题、过滤特定服务或时间段的日志时会用到。特别注意语法细节(比如双引号、布尔运算符大写和括号分组),生成的语句可直接复制粘贴执行。

▸ 展开 SKILL.md 英文原文

Generates Logging Query Language (LQL) queries for Google Cloud Logging from natural language. Use this skill when you need to query log data or when you are debugging issues. You can filter log data by Google Cloud service. Don't use this skill to query other databases, such as SQL or Cloud Spanner.

开发编程LQL日志查询自动生成通用
1.6w
Stars
1.3k
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/google/skills/main/skills/cloud/cloud-logging-query-generation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/google/skills/main/skills/cloud/cloud-logging-query-generation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 yo
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有