Install any skill in seconds. Free to start, no credit card required.
Get Started Free →hashintel/writing-hashql-diagnostics
HashQL diagnostic writing patterns using hashql-diagnostics crate.
Passed 20 of 24 test cases with the skill, and 8 of 24 without it.
and 15 more in the full report
12 fixed8 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
Show the exact Rust code line to add an imperative help message "try using a comparison" to an existing `diagnostic` struct variable using the `hashql-diagnostics` crate.
| Checked | Without skill | With skill |
|---|---|---|
| The code adds the help message using diagnostic.add_message(Message::help("try using a comparison")). | Missed | Passed |
The instructions your model reads when the skill loads.
Provides HASH-specific patterns for writing high-quality diagnostics using the hashql-diagnostics crate, ensuring messages are helpful, actionable, and follow consistent style conventions.
Diagnostics should be helpful, not just correct:
✅ DO:
expected `bool`, found `String`❌ DON'T:
use hashql_diagnostics::{Diagnostic, Label, Message, Severity};
let mut diagnostic = Diagnostic::new(category, Severity::Error)
.primary(Label::new(span, "expected `bool`, found `String`"));
diagnostic.add_label(Label::new(other_span, "expected because of this"));
diagnostic.add_message(Message::help("try using a comparison"));
| Severity | When to Use |
test cases passed, vs 8 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.