biome: Skill for Claude Code

.agents/skills/parser-development/SKILL.md

parser-development is a skill for Claude Code, Codex from biomejs/biome. It costs 54 tokens per session (951 once invoked), scanned A, original, Apache-2.0.

Guidance for changing how Biome reads source code, including grammar files, lexers, token handling, error recovery, and parser tests. A parser turns written code into a structured form that the rest of the tool can understand.

In plain words
What is it for?
Use it when modifying Biome grammars, lexers, parse rules, token sources, separated lists, error recovery, parser fixtures, or generated syntax code.
Why use it?
It helps parser changes handle both valid and invalid input safely while keeping generated syntax files consistent. Focused fixtures and tests make recovery behavior easier to verify.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is biomejs/biome's own configuration. It tells Claude Code and Codex how to work on biome itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything biome configures →

About the project

Biome is a web-development toolchain that formats and checks source code for languages such as JavaScript, TypeScript, JSX, and CSS. Developers use its command-line and language-server interfaces to maintain code quality in web projects. Catalogue add-ons extend workflows around the toolchain.

biomejs/biome · 26,016 stars · on GitHub · biomejs.dev

Reuse

Borrowing it

Nothing to install: this file belongs to biomejs/biome. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/biomejs/biome/main/.agents/skills/parser-development/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/biomejs/biome

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for parser-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/biomejs/biome/parser-development/github.svg)](https://agentmods.dev/skills/biomejs/biome/parser-development)
Your own site
<a href="https://agentmods.dev/skills/biomejs/biome/parser-development"><img src="https://agentmods.dev/badge/skills/biomejs/biome/parser-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for parser-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/biomejs/biome/parser-development"><img src="https://agentmods.dev/badge/skills/biomejs/biome/parser-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00951
Opus 5.5 $0.00022 $0.00380
Sonnet 5.5 $0.00011 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 1mo ago against content hash a337261934a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

parser-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/parser-development/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Parser Development

Use crates/biome_parser/CONTRIBUTING.md as the canonical parser guide. Read the section matching the current grammar, lexer, parse-rule, or recovery task.

Workflow

  1. Inspect the language grammar and neighboring parse rules.
  2. Add or adjust focused ok/ and error/ fixtures before changing recovery behavior.
  3. Update the grammar when the typed tree shape changes.
  4. Regenerate syntax and factory artifacts after .ungram changes.
  5. Implement parser logic with explicit presence tests and bounded recovery.
  6. Run the language parser's focused tests and inspect snapshots.

Grammar

Grammar files under xtask/codegen/ define typed syntax nodes and fields. Follow existing language naming:

  • prefix nodes with the language name;
  • name unions with Any;
  • use Bogus nodes for recoverable invalid syntax;
  • end list node names with List;
  • represent lists as present, possibly empty nodes rather than optional fields.

After a grammar change, run:

just gen-grammar <lang>

This updates generated syntax nodes, syntax kinds, factories, macros, and language-specific mappings. Parser rules remain hand-written.

Presence Contract

A parse function returns Absent only when it has consumed no tokens. Test the first distinguishing token before calling start, bump, eat, expect, or another parser that can advance.

Use:

  • expect for required tokens that should create a diagnostic when absent;
  • eat for optional tokens;
  • .ok() for optional nodes;
  • .or_add_diagnostic(...) for required nodes;
  • typed recovery for malformed nodes that should remain in the CST.

Do not use backtracking where a bounded lookahead or a more precise presence test can distinguish the syntax.

Error Recovery

Recovery must preserve following valid syntax and produce a bogus node permitted by the grammar at that position.

A recovery set normally includes the nearest relevant:

  • list separator;
  • list or block terminator;
  • statement boundary;
  • token that starts the next valid construct.

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 112 lines · 54 tokens per session scan A a337261934a3

Subscribe to this mod's changes

parser-development is a skill published in the GitHub repository biomejs/biome (26,016 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 951 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.