Minimizing Ty Ecosystem Changes
astral-sh/ruff
A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…
A skill your agent uses when extracting or storing Biome AST/CST source text, working with any SyntaxNode, SyntaxToken, TokenText, quoted strings, token-relative ranges, or embedded-language…
$ npx skills add biomejs/biome --skill syntax-text-handling -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install biomejs/biome syntax-text-handling --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/syntax-text-handling .claude/skills/syntax-text-handling && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .claude/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handlingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add biomejs/biome --skill syntax-text-handling -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install biomejs/biome syntax-text-handling --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/syntax-text-handling .agents/skills/syntax-text-handling && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .agents/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add biomejs/biome --skill syntax-text-handling -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install biomejs/biome syntax-text-handling --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/syntax-text-handling .cursor/skills/syntax-text-handling && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .cursor/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/biomejs/biome.git --path .agents/skills/syntax-text-handling--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add biomejs/biome --skill syntax-text-handling -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install biomejs/biome syntax-text-handling --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/syntax-text-handling .gemini/skills/syntax-text-handling && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .gemini/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install biomejs/biome syntax-text-handlingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add biomejs/biome --skill syntax-text-handling -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/syntax-text-handling .github/skills/syntax-text-handling && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .github/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add biomejs/biome --skill syntax-text-handling -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install biomejs/biome syntax-text-handling --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/biomejs/biome.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/syntax-text-handling .opencode/skills/syntax-text-handling && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "syntax-text-handling" agent skill from https://github.com/biomejs/biome/tree/main/.agents/skills/syntax-text-handling into .opencode/skills/syntax-text-handling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "syntax-text-handling", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
syntax-text-handlingA skill your agent uses when extracting or storing Biome AST/CST source text, working with any SyntaxNode, SyntaxToken, TokenText, quoted strings, token-relative ranges, or embedded-language…
Syntax Text Handling is an agent skill from biomejs/biome, published by the product's own GitHub organization. Use this skill when extracting or storing Biome AST/CST source text, working with any SyntaxNode, SyntaxToken, TokenText, quoted strings, token-relative ranges, or embedded-language attribute values, or diagnosing trivia, allocation, range, and temporary-borrow problems. Do not use for parser implementation or formatter comment placement.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for coding agents working on the Biome codebase (github.com/biomejs/biome).
It sits in Development, covering Linting and formatting. The repository describes itself as: A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 4d056a5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are rust).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Designed for coding agents working on the Biome codebase (github.com/biomejs/biome).
From compatibility in the SKILL.md frontmatter.
Syntax Text Handling loads about 1.4k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 571 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from biomejs/biome at commit 4d056a5, republished under its Apache-2.0 licence (© biomejs). 571 words, ~1,422 tokens.
.claude/skills/syntax-text-handling/SKILL.md (or your agent's skills folder).Use typed syntax APIs and preserve source ownership instead of converting syntax text into strings.
Do not infer an AST shape from source spelling. Inspect the parser quick test for the language and search generated node definitions and existing consumers. Load testing-codegen for the current quick-test command.
Check every relevant union member and framework-specific value representation. Similar source syntax may use different typed nodes.
| API | Result | Use |
|---|---|---|
SyntaxToken::text_trimmed() | &str | Borrow token text without leading or trailing trivia |
SyntaxToken::token_text_trimmed() | TokenText | Retain token-backed text without trivia |
SyntaxToken::text() | &str | Exact source text including trivia |
SyntaxNode::text_trimmed() | node text | Diagnostics or display where interior trivia is intentional |
inner_string_text(token) free helper | TokenText | Quote-stripped token content |
HtmlString::inner_string_text() | SyntaxResult<TokenText> | Quote-stripped content from a typed HTML string node |
SyntaxNode::text_trimmed() removes only outer trivia. Whitespace and comments between child tokens remain, so it is not a semantic accessor for a multi-token node. Prefer a typed token, typed accessor, or structural match.
Do not call .to_string(), .to_trimmed_string(), or format! merely to compare syntax text. Borrow a &str or retain a TokenText.
Use the syntax crate's inner_string_text() implementation. It handles the language's token representation and returns token-backed text.
let string = value.as_html_string()?;
let inner = string.inner_string_text().ok()?;
let matches_handler = inner.text() == "handler";Do not strip quotes with byte slicing. Besides allocating or risking invalid boundaries, manual slicing duplicates language-specific behavior already covered by the accessor and its tests.
TokenText already stores a green token plus a token-relative TextRange. Use its existing APIs instead of adding another token-and-range wrapper:
let word = inner.clone().slice(word_range);
let text = word.text();
let relative_range = word.relative_range();
let source_range = word.source_range(value_token.text_range());Pass slice() a range relative to the current TokenText; it retains the underlying token and adjusts the selected range. relative_range() returns the resulting range relative to the whole token, while source_range() translates it using the whole token's file range. Build slice ranges from valid byte boundaries in the current text.
Verify value shapes per framework and syntax version. For example, an HTML-family attribute may hold a quoted HtmlString, a single text expression, or a framework-specific directive node. Do not handle one shape and assume the others share its accessor or offset rules.
Keep embedded-language parsing concerns separate:
Support legacy syntax only when the task requires it and the current parser represents it.
Typed accessors often return owned wrapper nodes whose tokens borrow through that wrapper. Bind intermediate values when a chained expression would drop the owner too early:
let value_node = attribute.value().ok()?;
let string = value_node.as_html_string()?;
let token = string.value_token().ok()?;
let text = token.text_trimmed();Do not solve a temporary-borrow error by converting to String unless the value genuinely must outlive its syntax tree.
Always prefer using specific, strongly typed syntax nodes (like AnyJsExpression, JsCallExpression) over generic, weakly typed syntax nodes (like JsSyntaxNode) in function parameters.
GOOD:
fn is_react_call(node: &JsCallExpression) -> bool { ... }BAD:
fn is_react_call(node: &JsSyntaxNode) -> bool { ... }You can use declare_node_union! to define custom sets of nodes.
crates/biome_rowan/src/token_text.rscrates/biome_rowan/src/syntax/token.rscrates/biome_rowan/src/syntax/node.rscrates/biome_html_syntax/src/string_ext.rscrates/biome_*_syntax/src/© biomejs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/syntax-text-handling of biomejs/biome.
Open the folder on GitHubat commit 4d056a5
Syntax Text Handling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Syntax Text Handling this skillbiomejs/biome | 26k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Minimizing Ty Ecosystem Changesastral-sh/ruff | 50k | — | ~4.6k | Automated safety check: Pass | MIT | |
| Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop | 5.3k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Babysit PR To Pass CIsgl-project/sglang | 37k | 2 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| Rust Best Practicesfarm-fe/farm | 5.6k | 3 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Summarise Ecosystem Resultsastral-sh/ruff | 50k | — | ~2.2k | Automated safety check: Pass | MIT |
astral-sh/ruff
A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…
dmmulroy/anti-slop
Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.
sgl-project/sglang
Start and persistently pursue a goal to babysit an SGLang pull request until selected GitHub Actions workflows pass on the latest PR head.
farm-fe/farm
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
astral-sh/ruff
A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…
chromedp/chromedp
This skill should be used when the user is writing Go code and needs guidance on Go-specific pedantry: error wrapping with fmt.Errorf and %w, interface design (accept interfaces return structs)…
biomejs/biome
A skill your agent uses when a Biome change may affect users and you must decide whether it needs a changeset, choose the release level, or create and edit .changeset/.md release-note text.
biomejs/biome
A skill your agent uses whenever writing or editing Rust //, ///, or //!
biomejs/biome
A skill your agent uses when biome migrate eslint must preserve configurable ESLint rule options through source-option models, Biome conversions, typed rule variants, and migration fixtures.
biomejs/biome
A skill your agent uses whenever implementing or debugging Biome formatter behavior, IR composition, node rules, layout selection, source-comment handling, verbatim formatting, idempotency, internal…
biomejs/biome
A skill your agent uses when creating or modifying Biome lint rules or assists, including analyzer queries, semantic bindings, rule state, code actions, fix safety, options, registration, and…
biomejs/biome
A skill your agent uses when implementing or modifying Biome parser behavior, including .ungram grammars, lexers, token sources, parse rules, separated lists, error recovery, and parser fixtures.
Categories
A skill your agent uses when extracting or storing Biome AST/CST source text, working with any SyntaxNode, SyntaxToken, TokenText, quoted strings, token-relative ranges, or embedded-language…. Syntax Text Handling is an agent skill from biomejs/biome, published by the product's own GitHub organization. Use this skill when extracting or storing Biome AST/CST source text, working with any SyntaxNode, SyntaxToken, TokenText, quoted strings, token-relative ranges, or embedded-language attribute values, or diagnosing trivia, allocation, range, and temporary-borrow problems.
Syntax Text Handling fits situations like: storing Biome AST/CST source text; working with any SyntaxNode; token-relative ranges; embedded-language attribute values.
Run `npx skills add biomejs/biome --skill syntax-text-handling -a claude-code`. Or copy the skill folder (.agents/skills/syntax-text-handling in biomejs/biome) into .claude/skills/syntax-text-handling in your project. Claude Code loads it when a task matches its description.
Run `npx skills add biomejs/biome --skill syntax-text-handling -a codex`. Or copy the skill folder (.agents/skills/syntax-text-handling in biomejs/biome) into .agents/skills/syntax-text-handling in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add biomejs/biome --skill syntax-text-handling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/syntax-text-handling, .gemini/skills/syntax-text-handling, .github/skills/syntax-text-handling and .opencode/skills/syntax-text-handling in your project.
SKILL.md names no scripts, command-line tools or credentials: Syntax Text Handling is instructions for the agent only. Compatibility (from SKILL.md): Designed for coding agents working on the Biome codebase (github.com/biomejs/biome)..
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Syntax Text Handling is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Syntax Text Handling: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Babysit PR To Pass CI (sgl-project/sglang, 37k stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
biomejs (a GitHub organization, an official publisher) maintains it in biomejs/biome, which has 25,911 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 9, 2026.
Source: biomejs/biome on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.