CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

syntax-text-handling

Use this skill when reading Biome syntax trees, extracting or storing source text (`SyntaxToken`, `TokenText`, quoted strings, token-relative ranges, embedded-language attribute values), walking a subtree or scanning its tokens and trivia, or implementing an analyzer `Visitor`. Also use it to diagnose trivia, allocation, range, and temporary-borrow problems. Do not use for parser implementation or formatter comment placement.

Quality

97%

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

93%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.

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`.

DimensionReasoningScore

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

Description

100%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 model description: concrete, imperative-voiced actions tied to exact Biome APIs, an explicit 'Use this skill when' trigger clause covering both primary tasks and diagnostic scenarios, and negative scope that prevents mis-triggering. All four dimensions land on the top anchors.

DimensionReasoningScore

Specificity

The description names many concrete actions with exact API names: 'reading Biome syntax trees, extracting or storing source text (`SyntaxToken`, `TokenText`, quoted strings, token-relative ranges, embedded-language attribute values)', 'walking a subtree or scanning its tokens and trivia', 'implementing an analyzer `Visitor`', and 'diagnose trivia, allocation, range, and temporary-borrow problems'. This matches the anchor 'lists multiple specific concrete actions; comprehensive coverage' — nothing is generic, and it does not fall to 4 because there are no coverage gaps within its stated scope.

5 / 5

Completeness

It opens with an explicit trigger clause 'Use this skill when reading... extracting or storing source text... walking a subtree... or implementing an analyzer `Visitor`' and reinforces it with 'Also use it to diagnose...'. Both what (typed source-text extraction/storage APIs) and when are answered with concrete trigger phrases, exactly matching the anchor-5 example pattern; it is not 4 because the 'when' is fully explicit, not merely present.

5 / 5

Trigger Term Quality

It uses the exact vocabulary a Biome contributor would naturally say when needing this skill: 'quoted strings', 'tokens and trivia', 'token-relative ranges', 'embedded-language attribute values', 'allocation', 'temporary-borrow'. Coverage spans task verbs (extract, store, walk, scan, implement) and diagnostic problem terms, satisfying 'comprehensive coverage of natural terms'; a synonym like 'lint rule' for analyzer is absent but the domain vocabulary is effectively complete, keeping it above anchor 4.

5 / 5

Distinctiveness Conflict Risk

The niche is unambiguous — Biome syntax-tree text handling — with distinct technical triggers, and the explicit negative scope 'Do not use for parser implementation or formatter comment placement' actively prevents overlap with adjacent skills. This gives minimal conflict risk, matching the anchor 'clear niche with distinct triggers'.

5 / 5

Total

20

/

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

biomejs/biome

Path

.agents/skills/syntax-text-handling/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.