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.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/biomejs/biome/type-inferencenpx skills add biomejs/biome --skill type-inferencegit clone --depth 1 https://github.com/biomejs/biomeWrote 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.
[](https://agentmods.dev/skills/biomejs/biome/type-inference)<a href="https://agentmods.dev/skills/biomejs/biome/type-inference"><img src="https://agentmods.dev/badge/skills/biomejs/biome/type-inference.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00078 | $0.02051 |
| Opus 5 | $0.00039 | $0.01026 |
| Sonnet 5 | $0.00016 | $0.00410 |
| Haiku 4.5 | $0.00008 | $0.00205 |
Grade A, and why
type-inference 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Salsa-Backed Type Inference
Scope
Use this skill for JavaScript and TypeScript type inference: raw collection, Salsa-backed inferred values, analyzer requests, tracked queries, and inference-specific tests.
Load the corresponding skill for general lint scaffolding, diagnostics, snapshots, or changesets. CSS and HTML module-graph data is outside this skill unless it directly participates in JavaScript or TypeScript inference.
Read the Relevant Guide
Do not load both architecture guides in full for every inference task. Read the sections matching the boundary being changed:
| Task | Canonical guide |
|---|---|
| Raw and inferred representations, collection, inference layers, handles, normalization, work limits | biome_js_type_info/CONTRIBUTING.md |
| Analyzer requests, tracked queries, widening, profiling, Salsa execution tests | biome_module_graph/CONTRIBUTING.md |
Read both guides when changing the architecture across their boundary. Then inspect the implementation files for the specific request, query family, or representation being changed.
Do not use these checked-in files as current examples:
crates/biome_js_type_info/src/resolver.rscrates/biome_js_type_info/src/flattening.rscrates/biome_js_type_info/src/type.rscrates/biome_js_type_info/src/conditionals.rscrates/biome_js_type_info/src/helpers.rscrates/biome_module_graph/src/js_module_info/module_resolver.rs
They are not declared by the active crate module trees. Treat them as legacy residue unless the task explicitly concerns removing or migrating them.
Mental Model
Type inference has five layers:
syntax and semantic collection
-> raw module tables
-> analyzer-facing requests
-> tracked Salsa queries
-> resolver helpers
Collection walks one module without database access. It records raw types,
expressions, and binding types in JsModuleInfo. A request defines one
analyzer-facing result contract. Tracked queries provide memoization and
invalidation boundaries. Resolver helpers evaluate references and inferred
structures inside those boundaries.
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.
- 6d ago First seen · 213 lines · 78 tokens per session scan A 0a5c91a33593
type-inference is a skill published in the GitHub repository biomejs/biome (25,715 stars, last pushed today), licensed Apache-2.0. It adds 78 tokens to every session and 2,051 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
Biome
Biome 2.x — fast all-in-one web toolchain in Rust. Formats, lints, assists. Replaces Prettier + ESLint.
migrate-oxfmt
Guide for migrating a project from Prettier or Biome to Oxfmt. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's formatter from Prettier or Biome to Oxfmt.
ultracite
Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects. Use when: (1) Setting up or initializing Ultracite in a project (ultracite init), (2) Running linting or formatting commands (check, fix, doctor), (3) Writing or reviewing JS/TS code in a project that uses Ultracite — to…
babel-docs
Babel 7.x/8.x — plugins, presets, config, @babel/core, parser, traverse, types, CLI, preset-env.
prettier-docs
Prettier 3.9.5 — opinionated code formatter. CLI, API, config, plugins, editor integration, CI.
swc-docs
SWC 1.x — Rust-based JS/TS compiler. @swc/cli, @swc/core, .swcrc config, preset-env, minification, plugins.