oxfmt
Run and configure oxfmt — the high-performance JavaScript/TypeScript formatter built on the Oxc compiler stack, ~30x faster than Prettier.
Skill by delexw
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/delexw-oxfmt
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/oxfmt
What's inside
- Skill name
oxfmt- Description
- Run and configure oxfmt — the high-performance JavaScript/TypeScript formatter built on the Oxc compiler stack, ~30x faster than Prettier. Use this skill whenever working in a project that has oxfmt installed (check for `oxfmt` in package.json devDependencies or an `.oxfmtrc.json` / `.oxfmtrc.jsonc` config file). This includes when you need to format code after making changes, set up oxfmt in a new project, migrate from Prettier, configure formatting rules, set up editor integration (VS Code, Neovim, Zed, JetBrains), or add formatting checks to CI/CD pipelines. Also use when the user mentions "oxfmt", "oxc formatter", "format with oxc", or asks about Prettier alternatives with better performance.
- License
- MIT
- Instructions
- 243 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Oxfmt — The Oxc Formatter
Oxfmt is a Prettier-compatible formatter for the JavaScript ecosystem. It currently passes ~95% of Prettier's JS/TS test suite. It formats JavaScript, JSX, TypeScript, TSX, JSON, JSONC, JSON5, YAML, TOML, HTML, Angular, Vue, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember, and Handlebars.
## When to use oxfmt
- After modifying code in a project that has oxfmt installed
- Setting up formatting in a new JS/TS project
- Migrating from Prettier to oxfmt
- Configuring formatting rules, editor integration, or CI checks
## Quick reference
### Installation
```bash
# Pick your package manager
npm add -D oxfmt
pnpm add -D oxfmt
yarn add -D oxfmt
bun add -D oxfmt
```
Add scripts to `package.json`:
```json
{
"scripts": {
"fmt": "oxfmt",
"fmt:check": "oxfmt --check"
}
}
```
Running `oxfmt` with no arguments formats the current directory (like `prettier --write .`).
### CLI flags
| Flag | Purpose |
|------|---------|
| `--check` | Check formatting without writing (exit 1 if unformatted) |
| `--list-different` | List files that would change |
| `--write` | Format and write in place (default) |
| `--init` | Create `.oxfmtrc.json` with defaults |
| `--migrate=prettier` | Convert `.prettierrc` to `.oxfmtrc.json` |
| `--migrate=biome` | Convert Biome config to `.oxfmtrc.json` |
| `-c PATH` | Use a specific config file |
| `--ignore-path PATH` | Custom ignore file (repeatable) |
| `--with-node-modules` | Include `node_modules/` (skipped by default) |
| `--no-error-on-unmatched-pattern` | Don't fail on unmatched globs |
| `--stdin-filepath PATH` | Format stdin, using PATH to infer parser |
| `--threads N` | Thread count (set to 1 for single core) |
| `--lsp` | Start the LSP server (used by editors) |
CLI does **not** support formatting options as flags (e.g., no `--no-semi`). Use the config file instead — this keeps formatting consistent across CLI, editors, and CI.
### Configuration
Oxfmt looks for `.oxfmtrc.json` or `.oxfmtrc.jsonc` starting from the current directory, walking up.
Generate a starter config:
```bash
oxfmt --init
```
#### Core options
```jsonc
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 100, // Line width limit (default: 100, Prettier default is 80)
"tabWidth": 2, // Spaces per indent level
"useTabs": false, // Tabs vs spaces
"semi": true, // Semicolons
"singleQuote": false, // Quote style
"trailingComma": "all", // Trailing commas in multi-line
"insertFinalNewline": true
}
```
Note: oxfmt defaults `printWidth` to 100, while Prettier defaults to 80. If migrating, decide which you prefer.
#### Per-file overrides
```json
{
"printWidth": 100,
"overrides": [
{
"files": ["*.test.js", "*.spec.ts"],
"options": { "printWidth": 120 }
},
{
"files": ["*.json"],
"excludeFiles": ["package.json"],
"options": { "tabWidth": 4 }
}
]
}
```
#### Built-in features
These are disabled by default but can be enabled in the config:
- **`sortImports`** — Sorts import statements
- **`sortTailwindcss`** — Sorts Tailwind CSS classes
- **`sortPackageJson`** — Sorts `package.json` fields (enabled by default)
#### Ignore patterns
Add `ignorePatterns` in the config file, or use a `.oxfmtignore` / `.prettierignore` file:
```json
{
"ignorePatterns": ["dist/", "coverage/", "*.min.js"]
}
```
#### .editorconfig supportFrom delexw/claude-code-misc, MIT.
More from delexw/claude-code-misc
- 0.448score
tauri-v2
delexw
Use this skill whenever "tauri" appears in the user's message, or they reference tauri.conf.json, src-tauri, or @tauri-apps packages.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
adr-author
delexw
Guide writing clear, enforceable Architectural Decision Records (ADRs) that work with AI-powered review systems and human teams alike.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
animejs
delexw
Write correct anime.js v4 animations with the right imports, API patterns, easing, timelines, and advanced features.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
inktui
delexw
Build beautiful CLI apps with Ink (React for terminals), ink-ui components, and create-ink-app scaffolding.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
ladybugdb
delexw
Expert guide for LadybugDB — an embedded, in-process property graph database using openCypher.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
telegram-bot
delexw
Interact with Telegram — read messages from your channel and send messages back.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
oxlint
delexw
Run and configure oxlint — the high-performance JavaScript/TypeScript linter built on the Oxc compiler stack.
SkillDFreshness: D★ 2Claude Code +9 - 0.439score
a2a-js-dev
delexw
Build A2A (Agent-to-Agent) protocol applications using the @a2a-js/sdk TypeScript/JavaScript SDK.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 28, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/delexw/claude-code-misc
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from delexw
- 0.448score
tauri-v2
delexw
Use this skill whenever "tauri" appears in the user's message, or they reference tauri.conf.json, src-tauri, or @tauri-apps packages.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
adr-author
delexw
Guide writing clear, enforceable Architectural Decision Records (ADRs) that work with AI-powered review systems and human teams alike.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
animejs
delexw
Write correct anime.js v4 animations with the right imports, API patterns, easing, timelines, and advanced features.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
inktui
delexw
Build beautiful CLI apps with Ink (React for terminals), ink-ui components, and create-ink-app scaffolding.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
ladybugdb
delexw
Expert guide for LadybugDB — an embedded, in-process property graph database using openCypher.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
telegram-bot
delexw
Interact with Telegram — read messages from your channel and send messages back.
SkillDFreshness: D★ 2Claude Code +9
Cite this page
oxfmt skill. Agent Mart. https://agentmart.dev/skills/delexw-oxfmt (last updated 2026-10-24)