This is a structured workflow for building LogQL queries without memorizing Grafana Loki's syntax. It walks you through stream selectors, parsers, filters, and metric aggregations in stages, asking about your log format, labels, and whether you need raw logs or dashboard metrics. The deterministic flow handles version compatibility intelligently, defaulting to safe syntax when your Loki version is unknown and offering 3.x optimized variants separately. For complex queries like nested aggregations or alerting rules, it enforces a reference checkpoint to pull from local examples before generating output. You can get a final query immediately or step through incremental builds for debugging. Useful when you know what you want to find in logs but not how to express it in LogQL's query pipeline.
npx skills add https://github.com/akin-ozer/cc-devops-skills --skill logql-generator