oxfmt

Configure Oxfmt formatting rules and integrate CI and pre-commit workflows.

1|Updated Feb 19, 2025
One-click install
npx skills add https://github.com/trystan2k/favoritable-old --skill oxfmt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oxfmt
Source: https://github.com/trystan2k/favoritable-old/tree/main/.agents/skills/oxfmt
Command: npx skills add https://github.com/trystan2k/favoritable-old --skill oxfmt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent code formatting across development environments, CI pipelines, and team members creates noisy git diffs, wastes time on manual formatting fixes, and causes avoidable CI failures when formatter rules are misaligned.

Core Features & Use Cases

  • Oxfmt Configuration: Set up and tune .oxfmtrc.json to define project-wide formatting rules including line width, quote style, semicolon usage, and ignore patterns for generated files.
  • Workflow Integration: Wire Oxfmt into package.json scripts, CI checks, and pre-commit hooks to enforce consistent formatting across all local and remote development workflows.
  • Troubleshooting & Migration: Diagnose and resolve formatting mismatches, ignore behavior issues, and conflicts with other formatters, plus guide migrations from Prettier or Biome to Oxfmt.
  • Use Case: A team switching from Prettier to Oxfmt can use this skill to generate a compatible configuration, run a one-time repo-wide formatting pass, and set up CI checks to prevent future style drift.

Quick Start

Use the oxfmt skill to create a project-specific .oxfmtrc.json configuration file, add format and format:check scripts to your package.json, and run a one-time formatting pass to align all existing code with the new rules.

Frequently Asked Questions about oxfmt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Oxfmt to fix inconsistent JavaScript and TypeScript code formatting?

Set up Oxfmt by creating a project-specific .oxfmtrc.json configuration file to define formatting rules, adding format scripts to package.json, and running a one-time formatting pass to align all existing code.

What is the best way to migrate from Prettier or Biome to Oxfmt?

Migrate from Prettier or Biome to Oxfmt by generating a compatible .oxfmtrc.json configuration, running a repository-wide formatting pass, and setting up CI checks to prevent future style drift.

How do I integrate Oxfmt into CI pipelines and pre-commit hooks?

Integrate Oxfmt into CI pipelines and pre-commit hooks by wiring the formatter into package.json scripts and CI checks to enforce consistent formatting across both local and remote development workflows.

Can I customize Oxfmt configuration rules for line width, quote style, and import sorting?

Customize Oxfmt configuration by tuning .oxfmtrc.json to define project-wide formatting rules including line width, quote style, semicolon usage, ignore patterns, and optional import and package.json sorting features.

Why does Oxfmt formatting mismatch or ignore behavior not work as expected on generated files?

Troubleshoot Oxfmt formatting mismatches and ignore behavior issues by diagnosing configuration drift, verifying ignore patterns for generated files, and resolving conflicts with other formatters in your project.

Do I need Oxfmt to enforce deterministic code formatting across my team?

You need Oxfmt to enforce deterministic, high-performance code formatting across team environments, preventing noisy git diffs, manual formatting fixes, and avoidable CI failures caused by misaligned formatter rules.