CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

logql-generator

Generate label matchers, line filters, log aggregations, and metric queries in LogQL (Loki Query Language) following current standards and conventions. Use this skill when creating new LogQL queries, implementing log analysis dashboards, alerting rules, or troubleshooting with Loki.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

86%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is an actionable, well-structured LogQL guide: executable query patterns throughout, a clearly sequenced interactive workflow with a confirmation checkpoint, and excellent complexity-based routing to real, verified reference files. Weak spots are limited to some trimmable prose (Mindset paragraph, Stage 5a repetition, Guidelines recap) and the absence of an explicit query-verification step on the main workflow path.

Suggestions

Add an explicit verification step at the end of Stage 6 (e.g., 'Test the final query against the Loki instance or logcli before considering it done, falling back to the Error Handling table on failure') to close the feedback loop on the main workflow path.

Trim the Stage 5a incremental template to show each step's added fragment instead of repeating the full accumulated query five times, and cut or compress the Mindset paragraph and the closing Guidelines recap that restate earlier sections.

Reduce duplication with the reference files by shortening the inline Anti-Patterns and Loki 3.x sections to their GOOD/BAD rule plus one-line WHY, pointing to the corresponding numbered practices in references/best_practices.md for detail.

DimensionReasoningScore

Conciseness

The body is mostly dense, non-obvious, LogQL-specific guidance (parser performance ordering, cardinality rules, bloom-filter placement, "LogQL has no dedup or distinct operators") with executable examples, and version numbers are properly quarantined in a Version Notes/Deprecations section. It falls short of the score-5 anchor on a few trimmable spots: the "Mindset" opening paragraph is motivational prose, Stage 5a repeats five near-identical queries step-by-step, and the closing "Guidelines" section recaps points already made in the stages. It is above score 3 because these are minor instances rather than pervasive over-explanation of concepts Claude already knows.

4 / 5

Actionability

Nearly every section delivers copy-paste-ready LogQL queries — stream selectors, line filters, JSON/logfmt parsing, pattern extraction, rate/count/error-percentage/quantile/topk metrics, line_format, IP filtering with ip(), keep/drop, and alerting rules with vector(0). These are concrete and cover the common cases, matching the fully-executable anchor. Nothing is pseudocode or merely descriptive.

5 / 5

Workflow Clarity

The six-stage workflow is clearly sequenced with an explicit user-confirmation checkpoint ("Does this match your intentions?") at Stage 4, mandatory reference consultation before generation, and an Error Handling table mapping issues to solutions, plus "Test this first to confirm logs are flowing" in incremental mode. It falls short of score 5 because the main (non-incremental) path has no explicit query-verification step before delivering the final result — validation of the query against the live instance is only implicit via the Error Handling table and the optional Stage 5a.

4 / 5

Progressive Disclosure

The complexity-to-file routing table ("Complex aggregations → assets/common_queries.logql", "Alerting rules → references/best_practices.md — sections #19-21, #39") is exactly the well-signaled one-level-deep navigation the anchor rewards, and all referenced files exist with matching numbered practices (verified ### 1–39 in best_practices.md). Core patterns stay inline while bulk detail (39 practices, full function tables, comprehensive examples) is split into the three bundle files with a closing links section. Minor duplication between the inline anti-patterns/Loki 3.x sections and the reference files keeps this from being flawless, but structure and navigation are fully achieved.

5 / 5

Total

18

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly and explicitly answers both what the skill does and when to use it, with concrete LogQL-specific action categories and natural trigger phrases. The only improvement space is adding a few synonyms (e.g., "Grafana Loki", "log query") for broader trigger coverage.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions spanning the domain — "Generate label matchers, line filters, log aggregations, and metric queries in LogQL (Loki Query Language)" — covering both log and metric query construction comprehensively. It matches the anchor for multiple specific concrete actions with comprehensive coverage; the trailing "following current standards and conventions" is minor padding but does not dilute the named actions. It is above the score-4 anchor because the four action categories cover the full LogQL query surface rather than leaving gaps.

5 / 5

Completeness

Both halves are explicit: the "what" is "Generate label matchers, line filters, log aggregations, and metric queries in LogQL" and the "when" is "Use this skill when creating new LogQL queries, implementing log analysis dashboards, alerting rules, or troubleshooting with Loki" with concrete trigger phrases. This mirrors the score-5 anchor example almost exactly; it is not score 4 because the "when" clause is fully explicit with multiple specific triggers, not merely present.

5 / 5

Trigger Term Quality

Natural trigger terms are present: "LogQL", "Loki", "creating new LogQL queries", "log analysis dashboards", "alerting rules", "troubleshooting with Loki" — phrases users would plausibly say. It falls short of the score-5 anchor because common synonyms like "Grafana Loki" or "log query" are missing, though the core domain vocabulary users actually use (LogQL, Loki) is covered.

4 / 5

Distinctiveness Conflict Risk

LogQL/Loki is a clear niche with distinct technical vocabulary, and the query types named (label matchers, line filters, log aggregations) are Loki-specific, giving minimal conflict risk with other skills. It clearly would not fire for general log tooling or PromQL work given the explicit LogQL/Loki framing.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

pantheon-org/tekhne

Path

skills/observability/logql-generator/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.