CtrlK
BlogDocsLog inGet started
Tessl Logo

promql-validator

Comprehensive toolkit for validating, optimizing, and understanding Prometheus Query Language (PromQL) queries. Use this skill when working with PromQL queries, prometheus queries, metrics queries, alerting rules, recording rules, or grafana dashboards to check syntax, detect anti-patterns, identify optimization opportunities, and interactively plan queries with users.

66

Quality

79%

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

Fix and improve this skill with Tessl

tessl review fix ./skills/observability/promql/validator/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

67%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 delivers a clear two-phase interactive workflow with concrete executable commands and a genuinely useful bundle structure whose referenced files all exist. It is held back by token-inefficient sections (sample dialogue, WHY explanations of standard PromQL knowledge), a missing error-recovery step, and a wrong path in the citation-format example.

Suggestions

Trim the 'Interactive Dialogue' section to a brief exchange and cut the Anti-Patterns 'WHY' clauses — Claude already knows why `rate()` on a gauge or a missing `for` clause is wrong; keep only the BAD/GOOD pairs.

Fix the citation-format example to use the real bundle path: `assets/bad_queries.promql` (lines 91-97) instead of `examples/bad_queries.promql`.

Add an explicit error-recovery step after Step 1 (e.g., 'if validate_syntax.py reports errors, surface them and help the user fix the query before continuing to Step 2') to close the workflow's validation loop.

DimensionReasoningScore

Conciseness

Mostly operational, but the full "Interactive Dialogue" sample conversation and the Anti-Patterns "WHY" explanations (e.g., why `rate()` on a gauge or a missing `for` clause is wrong) restate PromQL knowledge Claude already has. Fits anchor 3 (mostly efficient but includes unnecessary explanation or could be tightened); not 4 because the padding is more than minor, not 2 because the bulk is actionable instruction rather than concept explanation.

3 / 5

Actionability

Copy-paste-ready commands with full paths ("python3 .claude/skills/promql-validator/scripts/validate_syntax.py \"<query>\""), a specified citation format, and exact clarifying questions make the guidance mostly executable. Not 5 because the citation example references "examples/bad_queries.promql (lines 91-97)" while the actual bundle file lives at "assets/bad_queries.promql" — a wrong path in the very format being prescribed.

4 / 5

Workflow Clarity

Seven numbered steps in two phases with an explicit checkpoint ("⏸️ STOP HERE AND WAIT FOR USER RESPONSE") and validation built into Steps 1-2 via the scripts. Fits anchor 4 (clear sequence, most checkpoints present); not 5 because there is no explicit error-recovery loop — what to do when validate_syntax.py reports errors is never stated.

4 / 5

Progressive Disclosure

The body is an overview with well-signaled, one-level-deep references ("[Best Practices Guide](references/best_practices.md)", assets/*.promql), all of which exist in the bundle, and a References section describing when to use each. Fits anchor 4 rather than 5 because the inline Anti-Patterns section duplicates content that the separate references/anti_patterns.md file exists to hold, and the citation-format example mislabels the assets/ directory as examples/.

4 / 5

Total

15

/

20

Passed

Description

91%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 explicitly states both capability and trigger conditions with good natural-language keyword coverage including synonyms. Minor deductions for the slightly fluffy "Comprehensive toolkit" framing and the unqualified "grafana dashboards" trigger that broadens conflict risk slightly beyond query validation.

DimensionReasoningScore

Specificity

Phrases like "check syntax, detect anti-patterns, identify optimization opportunities, and interactively plan queries" list several concrete actions, but the opener "Comprehensive toolkit for... understanding" is mildly fluffy and 'understanding' is less concrete than the rest. Matches anchor 4 (several specific actions, minor gaps) rather than 5, which demands fully comprehensive concrete coverage.

4 / 5

Completeness

It explicitly answers both: what ("validating, optimizing, and understanding... to check syntax, detect anti-patterns, identify optimization opportunities") and when ("Use this skill when working with PromQL queries, prometheus queries, metrics queries, alerting rules, recording rules, or grafana dashboards"). This mirrors the anchor-5 example structure exactly; anchor 4 would require a weaker or less explicit 'when' clause.

5 / 5

Trigger Term Quality

"PromQL queries, prometheus queries, metrics queries, alerting rules, recording rules, or grafana dashboards" covers the natural synonyms users would say (PromQL / prometheus queries / metrics queries) plus adjacent artifacts. Anchor 5 is the best fit; anchor 4 would require noticeably missing common terms, and none are apparent for this domain.

5 / 5

Distinctiveness Conflict Risk

The PromQL validation niche is clear with distinct triggers, but the unqualified trigger "grafana dashboards" could pull in general dashboard-authoring requests that aren't query validation, giving minor overlap risk with related dashboard/visualization skills. Fits anchor 4 (mostly distinct, minor overlap) better than 5 (minimal conflict risk).

4 / 5

Total

18

/

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
pantheon-org/tekhne
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.