# migrate-oxfmt

> Claude/Codex skill by [@oxc-project](https://omgskills.com/library/oxc-project/index.md) · 23k stars · Updated 2026-10-18

Guide for migrating a project from Prettier or Biome to Oxfmt. Use when asked to migrate, convert, or switch a project's formatter from Prettier or Biome to Oxfmt.

Tags: compiler, javascript, linter, minifier, parser, transpiler, typescript

## Install

```sh
git clone https://github.com/oxc-project/oxc /tmp/oxc && ln -s /tmp/oxc/.agents/skills/migrate-oxfmt ~/.claude/skills/migrate-oxfmt
```

## From README

Overview Oxfmt is a high-performance, Prettier-compatible code formatter. Most Prettier options are supported directly. An automated migration tool is built into Oxfmt, supporting both Prettier and Biome as migration sources. Step 1: Run Automated Migration First, decide whether the automated tool fits: Static config (JSON, or a JS/TS config that just exports a plain object): use --migrate below. Dynamic JS/TS config (logic such as environment branches or computed values): --migrate writes only a resolved snapshot of the values, and the logic does not survive (a warning is printed). Port the logic to oxfmt.config.ts manually with the option mappings in this guide. Nested per-directory configs: --migrate only handles the config in the current directory. Run it again in each nested directory (see "Nested Config" in Step 2).

## Links

- HTML page: https://omgskills.com/skills/oxc-project/oxc/migrate-oxfmt/
- GitHub: https://github.com/oxc-project/oxc
- Author: [@oxc-project](https://omgskills.com/library/oxc-project/index.md)

## More from this repo

- [migrate-oxlint](https://omgskills.com/skills/oxc-project/oxc/migrate-oxlint/index.md) — Guide for migrating a project from ESLint to Oxlint.
   - [@oxc-project](https://omgskills.com/library/oxc-project/index.md) · 23k stars
