Content
93%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
A dense, highly actionable reference: exact API tables, executable Rust snippets with GOOD/BAD contrasts, and a well-signaled one-level reference file that exists in the bundle. Its single weakness is workflow shape — the content is topic-organized with a validation checklist rather than an explicitly sequenced process with feedback loops.
Suggestions
Make the core workflow explicitly sequenced rather than implied by section order, e.g. numbered steps: (1) inspect the quick test and generated node definitions, (2) select the accessor from the table for the operation at hand, (3) verify against the Review Checklist before finishing.
Add a brief error-recovery loop for the most common failure mode to satisfy the feedback-loop criterion — for example, in 'Temporary Borrows': if the borrow error persists after binding intermediates, store the token's range and re-look-up the token later instead of falling back to `String`.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | Every section states non-obvious, project-specific rules with no basic-concept padding — it never explains what a syntax tree or Rust borrowing is in general, only Biome-specific behavior: '`SyntaxNode::text_trimmed()` removes only outer trivia... so it is not a semantic accessor for a multi-token node' and 'Do not call `.to_string()`, `.to_trimmed_string()`, or `format!` merely to compare syntax text. Borrow a `&str` or retain a `TokenText`.' It assumes Claude's competence and every token earns its place; it does not fit anchor 4 because there is no over-explanation to trim. | 5 / 5 |
Actionability | Guidance is fully concrete: an accessor table with exact signatures and return types (`SyntaxToken::token_text_trimmed()` → `TokenText`, `HtmlString::inner_string_text()` → `SyntaxResult<TokenText>`), executable Rust call sequences ('let string = value.as_html_string()?; let inner = string.inner_string_text().ok()?;', 'let word = inner.clone().slice(word_range);'), GOOD/BAD typed-node examples, and exact source paths ('crates/biome_rowan/src/token_text.rs'). The common cases are specifically covered, matching the top anchor. | 5 / 5 |
Workflow Clarity | 'Inspect Before Implementing' establishes the first step ('Inspect the parser quick test for the language and search generated node definitions') and the 'Review Checklist' provides explicit end-of-work validation items ('Absolute offsets account for quotes exactly once', 'No allocation was introduced solely to satisfy borrowing or comparison'). However, the guidance is organized by topic rather than as a sequenced workflow and lacks any validate-fix-retry feedback loop, matching 'clear sequence with most checkpoints present; minor validation gaps' — not 5, though well above 3 since checkpoints are explicit and the operations are not destructive or batch. | 4 / 5 |
Progressive Disclosure | The body is a tight overview that clearly defers deep material to a real, verified one-level-deep bundle file: 'Before walking a subtree, scanning tokens or trivia, or writing an analyzer `Visitor`, read [references/traversal.md](references/traversal.md)' (the file exists in the bundle and is referenced again from the checklist), plus a References section pointing at concrete source files. Navigation is easy and content is appropriately split, matching the top anchor. | 5 / 5 |
Total | 19 / 20 Passed |