CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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.

Quality

90%

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

81%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 an exceptionally clear, actionable two-phase workflow with real validation checkpoints and a disciplined citation system. Its main weakness is token efficiency: the long Anti-Patterns section duplicates a dedicated reference file and restates PromQL knowledge Claude already has, and one script-invocation section is redundant with the workflow steps.

Suggestions

Trim the Anti-Patterns section to a short list of one-line rules and push the WHY/BAD/GOOD detail into references/anti_patterns.md, which already exists for that purpose — this would remove ~80 lines of duplication and lift conciseness.

Delete the 'Validation Tools' section (or fold it into Step 1), since it repeats the script invocations already given in the workflow steps.

Fix the citation-format example in Step 6 to use the real path 'assets/bad_queries.promql' instead of 'examples/bad_queries.promql', so citations resolve correctly.

DimensionReasoningScore

Conciseness

The workflow, philosophy, and known-limitations sections are tight and earn their tokens, but the ~80-line Anti-Patterns section largely duplicates the dedicated references/anti_patterns.md ('detailed anti-pattern explanations with root causes and correct alternatives'), several entries restate PromQL fundamentals Claude already knows (e.g., 'rate() and increase() need a range vector', 'NEVER average pre-calculated quantiles'), and the 'Validation Tools' section repeats the Step 1-2 script invocations. Mostly efficient with some unnecessary or duplicated material — between the score-2 and score-3 anchors.

3 / 5

Actionability

Guidance is fully executable: copy-paste commands with quoted arguments ('./scripts/validate_syntax.py "<query>"'), five verbatim clarifying questions to ask the user, an explicit citation format ('file_path (lines X-Y)' with a worked example), and concrete limitation examples. This matches the score-5 anchor of copy-paste-ready commands covering the common cases.

5 / 5

Workflow Clarity

The seven steps are clearly sequenced across two phases with script validation in Steps 1-2, an explicit interactive checkpoint ('⏸️ STOP HERE AND WAIT FOR USER RESPONSE before proceeding'), and an intent-vs-implementation comparison with user feedback in Step 5. This matches the score-5 anchor: clear sequence, explicit validation steps, and feedback loops.

5 / 5

Progressive Disclosure

Good structure: clear sections, a References section that signals every bundle file with its purpose, and one-level-deep references that all exist (references/best_practices.md, references/anti_patterns.md, assets/*.promql). It falls between the score-3 and score-4 anchors because the inlined Anti-Patterns section overlaps the dedicated anti-patterns reference (content that could live in the separate file), and the Step 6 citation-format example references 'examples/bad_queries.promql' while the actual path is 'assets/bad_queries.promql'.

4 / 5

Total

17

/

20

Passed

Description

96%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: it states concrete capabilities in third person, gives explicit 'Use this skill when' triggers with good synonym coverage, and carves out a clear niche. The only weakness is mild overlap risk on the broader 'prometheus' and 'grafana' trigger terms with adjacent observability skills.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions — 'validating, optimizing, and understanding' PromQL queries plus 'check syntax, detect anti-patterns, identify optimization opportunities, and interactively plan queries' — giving comprehensive coverage of the skill's capabilities. It exceeds the score-4 anchor ('several specific actions; minor gaps') because the action list spans the full validate-explain-optimize workflow with no obvious gaps.

5 / 5

Completeness

Explicitly answers both questions: 'what' (validate, optimize, and understand PromQL queries; check syntax, detect anti-patterns, identify optimizations) and 'when' ('Use this skill when working with PromQL queries... grafana dashboards') with concrete trigger phrases. This matches the score-5 anchor exactly.

5 / 5

Trigger Term Quality

Natural trigger terms are comprehensively covered with synonyms and variations: 'PromQL queries, prometheus queries, metrics queries, alerting rules, recording rules, grafana dashboards'. These are the phrases a user would naturally say; no common variation is missing.

5 / 5

Distinctiveness Conflict Risk

The PromQL-validation niche is clear and distinct, but broad trigger terms like 'prometheus queries' and 'grafana dashboards' create minor overlap risk with closely related skills (e.g., a promql-generator or dashboard-authoring skill). It sits between the score-4 ('mostly distinct; minor overlap risk with closely related skills') and score-5 anchors, and the shared 'prometheus/grafana' vocabulary with adjacent skills keeps it at 4.

4 / 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/promql/validator/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.