/configure-plugin:configure-formatting [--check-only] [--fix] [--formatter <biome|ruff|rustfmt>]from configure-plugin
Sets up Biome, Ruff format, or rustfmt with pre-commit hooks and CI checks. Use when a repo lacks a formatter, migrating from Prettier/Black, or standardizing monorepo style.
Ships in configure-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check and configure code formatting tools against modern best practices.
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up Biome, Ruff format, or rustfmt for a project | Running an existing formatter (biome format, ruff format) |
| Migrating from Prettier or ESLint to Biome, or Black to Ruff | Fixing individual formatting issues in specific files |
| Auditing formatter configuration for completeness and best practices | Configuring linting rules (/configure:linting instead) |
| Adding format-on-save and CI format checks | Setting up pre-commit hooks only (/configure:pre-commit instead) |
| Standardizing formatting settings across a monorepo | Editing .editorconfig or .vscode/settings.json manually |
find . -maxdepth 1 -name 'biome.json'find . -maxdepth 1 \( -name '.prettierrc*' -o -name 'prettier.config.*' \)find . -maxdepth 1 \( -name 'rustfmt.toml' -o -name '.rustfmt.toml' \)find . -maxdepth 1 -name '.editorconfig'find . -maxdepth 1 -name 'package.json'find . -maxdepth 1 -name 'pyproject.toml'find . -maxdepth 1 -name 'Cargo.toml'find . -maxdepth 1 -name '.pre-commit-config.yaml'find . -maxdepth 1 -name '.project-standards.yaml'Parse from $ARGUMENTS:
--check-only: Report compliance status without modifications--fix: Apply all fixes automatically without prompting--formatter <formatter>: Override formatter detection (biome, ruff, rustfmt)CRITICAL: Before flagging outdated formatters, verify latest releases using WebSearch or WebFetch:
Execute this code formatting configuration workflow:
Run the detection script to scan the project for formatter config files, script/hook/CI presence, and a recommendation over the detected booleans:
bash "${CLAUDE_SKILL_DIR}/scripts/configure-formatting.sh" --home-dir "$HOME"
Parse STATUS= and the ISSUES: block from the output. The KEY=VALUE lines
report formatter detection (BIOME, PRETTIER, RUFF_FORMAT, BLACK,
RUSTFMT, EDITORCONFIG), integration signals (FORMAT_SCRIPT,
PRE_COMMIT_FORMAT, CI_FORMAT), and a RECOMMENDATION of configured
(a modern formatter is set up), migrate (a legacy formatter wants migration to
Biome/Ruff), or setup (no formatter detected).
How CI_FORMAT is decided. The probe scans .github/workflows/*.yml|yaml
for a command that runs the formatter, then resolves one level of
package-script indirection:
| Signal | CI_FORMAT | Why |
|---|---|---|
Workflow runs biome check / biome ci | true | In Biome 2.x check is the combined command (formatter + linter + import sorting); ci is its CI-oriented variant |
Workflow runs biome format, ruff format, cargo fmt, prettier | true | Format-only commands, named directly |
Workflow runs biome lint | false | Lint-only — it does not format |
Workflow runs bun run <s> / npm run <s> / pnpm run <s> / yarn <s> and package.json's scripts.<s> contains any command above | true | The idiomatic setup keeps the real command in package.json |
| That script calls another script (depth 2+) | false | Exactly one level is resolved; deeper chains are out of scope |
Indirection needs jq and a readable package.json. When package.json is
absent, unparseable, or has no scripts key — or jq is unavailable — the
lookup degrades silently to the direct-command scan (no stderr, exit 0).
Modern formatting preferences:
RECOMMENDATION=migrate with Prettier present, offer migration to Biome — do not configure Prettier as the target formatter.Print a formatted compliance report:
Code Formatting Compliance Report
==================================
Project: [name]
Language: [detected]
Formatter: [detected]
Configuration: [status per check]
Format Options: [status per check]
Scripts: [status per check]
Integration: [status per check]
Overall: [X issues found]
Recommendations: [list specific fixes]
If --check-only, stop here.
Based on detected language and formatter preference, install and configure. Use configuration templates from REFERENCE.md.
files.includes in biome.json)Scope Biome to the languages you mean to format. Biome 2.6 formats Markdown and JSON as well, so "includes": ["**"] rewrites README and CLAUDE.md tables and .claude/settings.json (.claude/rules/biome-markdown.md records the same for this marketplace). For a JavaScript repo list the JS globs (*.js, src/**/*.js), negate node_modules, coverage and .claude/worktrees (agent checkouts hold full copies of every file), and set linter and assist to enabled: false when ESLint stays the linter. vcs.useIgnoreFile: true errors when the repo has no .gitignore. Land the reformat as its own commit after the config commit, and as the last PR of a run: it rewrites every file other PRs touch.
Create or update .editorconfig with settings matching the formatter configuration.
If legacy formatter detected (Prettier -> Biome, Black -> Ruff):
Use migration guides from REFERENCE.md.
Add formatter to .pre-commit-config.yaml. For Biome, prefer a local hook that runs the version pinned in package.json, so the hook, CI and the editor share one version; the mirror hook takes its version from a second pin (additional_dependencies) that drifts. Templates: REFERENCE.md.
Add format check step to GitHub Actions workflow.
Create or update .vscode/settings.json with format-on-save and .vscode/extensions.json with formatter extension.
Update .project-standards.yaml:
components:
formatting: "2025.1"
formatting_tool: "[biome|ruff|rustfmt]"
formatting_pre_commit: true
formatting_ci: true
Print a summary of changes made, scripts added, and next steps (run format, verify CI, enable format-on-save).
For detailed configuration templates, migration guides, and pre-commit configurations, see REFERENCE.md.
| Context | Command |
|---|---|
| Quick compliance check | /configure:formatting --check-only |
| Auto-fix all issues | /configure:formatting --fix |
| Check Biome formatting | biome format --check --reporter=github |
| Check Ruff formatting | ruff format --check --output-format=github |
| Check rustfmt formatting | `cargo fmt --check 2>&1 |
| Flag | Description |
|---|---|
--check-only | Report status without offering fixes |
--fix | Apply all fixes automatically without prompting |
--formatter <formatter> | Override formatter detection (biome, ruff, rustfmt) |
# Check compliance and offer fixes
/configure:formatting
# Check only, no modifications
/configure:formatting --check-only
# Auto-fix and migrate to Biome
/configure:formatting --fix --formatter biome
files.includes reaches them; narrow it to the language globs (Step 3) and restore the files with git restore -- <paths>/configure:linting - Configure linting tools/configure:editor - Configure editor settings/configure:pre-commit - Pre-commit hook configuration/configure:all - Run all compliance checksWhat SKILL.md sets; muted values are Claude Code's defaults
49 skills in this plugin
/ci-workflowsReference YAML for the canonical container-build, test, release-please and auto-fix workflow files. Use when another skill or a review needs the standard shape to cite or diff against./claude-security-settingsClaude Code security settings: permission wildcards, shell operator protections, project-level allowlists. Use when auditing or hardening .claude/settings.json permissions./config-syncConfig sync across FVH repos: extract, diff, propagate tooling improvements. Use when syncing workflows or configs across multiple repos.npx claudepluginhub laurigates/claude-plugins --plugin configure-pluginOther plugins' skills for the same job