oxc-project avatar

Migrate Oxfmt

This walks you through switching from Prettier or Biome to Oxfmt, a faster formatter that's mostly Prettier-compatible. It runs an automated migration command that converts your config file and ignore patterns, then explains what to review afterward. The main gotchas are printWidth defaults (80 vs 100), overrides that need manual conversion, and a few experimental Prettier features that don't work yet. It also covers oxfmt-specific extensions like import sorting and Tailwind class ordering. Useful if you want the speed bump without rewriting all your formatting rules by hand, though you'll still need to spot-check the output and handle edge cases yourself.

skills.sh installs
4.3K
GitHub stars
23.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add oxc-project/oxc --skill migrate-oxfmt --agent claude-code

Installs into .claude/skills of the current project.

Files

This skill guides you through migrating a project from Prettier or Biome to Oxfmt.

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).

From Prettier

npx oxfmt@latest --migrate prettier

This will:

Sponsors

Details

Repository
github.com/oxc-project/oxc
Category
Documentation
First seen
Apr 16, 2026

More from oxc-project/oxc

All 2
1dotnet avatartest-gap-analysisdotnet/skillsPerforms pseudo-mutation analysis on production code in any language to find gaps in existing tests. Use when the user asks to find weak or shallow tests, disco4.3Kskills.sh installs
2jeffallan avatarvue-expert-jsjeffallan/claude-skillsCreates Vue 3 components, builds vanilla JS composables, configures Vite projects, and sets up routing and state management using JavaScript only — no TypeScrip4.3Kskills.sh installs
3softaworks avataragent-md-refactorsoftaworks/agent-toolkitRefactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, l4.3Kskills.sh installs
4shubhamsaboo avatarpython-expertshubhamsaboo/awesome-llm-appsSenior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Py4.3Kskills.sh installs
5dotnet avatardotnet-pinvokedotnet/skillsCorrectly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle,4.3Kskills.sh installs
6ant-design avatarant-designant-design/antd-skillDecision guide for antd 6.x, Ant Design Pro 5/ProComponents, Ant Design X v2, and the offline `@ant-design/cli`. Use for component selection, theming/tokens, SS4.3Kskills.sh installs