# Biome

> Formats and lints JavaScript/TypeScript with Biome, the fast Rust-based toolchain, including migrate from ESLint/Prettier. Use when working with biome cli, biome migrate, code quality or when the user mentions biome cli, biome migrate, code quality.

- Skill: `opknock/biome` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/biome`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/biome/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/biome

---


Formats and lints JavaScript/TypeScript with Biome, the fast Rust-based toolchain, including migrate from ESLint/Prettier.

## Agentic Workflow: Read -> Reason -> Act (biome)

You are **biome** (code-quality/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — code-quality context for `biome`
- Domain: Formats and lints JavaScript/TypeScript with Biome, the fast Rust-based toolchain, including migrate from ESLint/Prettier.
- **biome-cli**: Lint, format, and check code with Biome. — `npx @biomejs/biome init`
- **biome-migrate**: Migrate from ESLint and Prettier configs. — `npx @biomejs/biome migrate eslint`
- Check `knowledge` and `prerequisites: npx`

### 2. Reason — think for `biome`
- For `biome-cli`: Lint, format, and check code with Biome. — decide which checks to run
- For `biome-migrate`: Migrate from ESLint and Prettier configs. — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `biome` tools
- Tools: `Glob`, `Grep`, `Read`, `Npx` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `biome:b47df873`

# Biome

Fast JS/TS formatter and linter in one tool.

## When to Use

- Replacing ESLint + Prettier with a single fast tool
- New projects wanting zero-config defaults
- Large repos where lint speed matters
- Enforcing consistent formatting in CI

## Commands

```bash
# Init
npx @biomejs/biome init

# Check (lint + format)
npx @biomejs/biome check src/
npx @biomejs/biome check --write src/

# Format only
npx @biomejs/biome format --write src/

# Lint only
npx @biomejs/biome lint src/

# Migrate from ESLint/Prettier
npx @biomejs/biome migrate eslint --write
npx @biomejs/biome migrate prettier

# Diagnostics
npx @biomejs/biome rage
```

## Config Example

```json
{
  "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
  "formatter": { "indentStyle": "space", "indentWidth": 2 },
  "linter": {
    "rules": {
      "recommended": true,
      "suspicious": { "noExplicitAny": "warn" }
    }
  }
}
```

## Best Practices

- Use check --write in pre-commit, verify-only in CI
- Keep the generated schema reference in biome.json
- Run biome migrate when adopting from legacy configs
- Scope rules per directory with overrides if needed
- Treat lint errors as CI failures; use warns sparingly
- Leverage --staged for fast pre-commit runs

## Capabilities

### biome-cli
Lint, format, and check code with Biome.

**Parameters:**
- `paths` (string): Files or dirs to check
- `write` (boolean): Apply fixes
- `staged` (boolean): Check staged files only

**Commands:**
- `npx @biomejs/biome init`
- `npx @biomejs/biome check src/`
- `npx @biomejs/biome check --write src/`
- `npx @biomejs/biome format --write src/`
- `npx @biomejs/biome lint src/`

**Examples:**
- npx @biomejs/biome check --apply src/
- npx @biomejs/biome format --write --indent-style=space src/
- npx @biomejs/biome check --staged

### biome-migrate
Migrate from ESLint and Prettier configs.

**Parameters:**
- `from` (string): eslint or prettier
- `write` (boolean): Write the migrated config to disk

**Commands:**
- `npx @biomejs/biome migrate eslint`
- `npx @biomejs/biome migrate prettier`
- `npx @biomejs/biome migrate --write`
- `npx @biomejs/biome rage`

**Examples:**
- npx @biomejs/biome migrate eslint --write
- npx @biomejs/biome rage --config

## References
- [Biome Docs](https://biomejs.dev)
- [Biome Migrate](https://biomejs.dev/recipes/migrate-eslint-prettier/)

