Skip to content

refactor: rename biome-format to javascript-format #15554

Closed

Description

@kyle-sexton

Problem

Rename the biome-format plugin to javascript-format, completely. The new name says what the plugin covers. Biome formats and lints JavaScript, TypeScript, JSX and JSON (plugins/biome-format/.claude-plugin/plugin.json, the description). The old name names the tool.

When this is done:

  • no current-state reference to the old name remains in this repository or its companion repositories;
  • every lane runs javascript-format@melodic-software and not biome-format@melodic-software;
  • no saved setting or git-hook artifact is left under the old name.

Locations were taken on main at 606fdf680205dc1f7039aab0531ea6043b5ed85f. Line numbers move, so find each location by its quote or by grep.

Why

Q107 and Q133 are the owner's decisions to rename five plugins after their concern rather than their tool or current behavior: typos-format to spelling, ruff-format to python-format, biome-format to javascript-format, context-guard to context-usage, and rate-limit-guard to rate-limits.

  • Owner, 2026-11-11: "We do need to decouple ... low coupling, high cohesion".
  • Owner, 2026-11-12: "we need to make sure everything's migrated: nothing cosmetic, nothing left behind. For rename, it needs to be a complete rename, and nothing left over with the old name."

Under the 2026-11-12 decision:

  • Every item a previous rename treated as optional is required here. That includes the 77-file example string below.
  • Saved option values are migrated, not reset. #15372 sets the precedent for the changelog fragment's form only.

The playbook rule "no deprecation shim, alias, or pointer to the old name" (docs/migration-playbook.md, rename section) still holds. One-time migration code that moves data and then deletes it is not an alias. List each such line in the PR with its removal condition.

Scope in this repository

Identity

  • git mv plugins/biome-format plugins/javascript-format.
  • .claude-plugin/marketplace.json: name and source.
  • plugin.json: name and the keys below.
  • /biome-format:setup and /biome-format:check become /javascript-format:setup and /javascript-format:check. The install id becomes javascript-format@melodic-software.

Option keys and environment variables

Old key New key
biome_format_enabled javascript_format_enabled
biome_format_lint_gitignored javascript_format_lint_gitignored
biome_format_end_of_turn javascript_format_end_of_turn

These follow the keys:

  • CLAUDE_PLUGIN_OPTION_BIOME_FORMAT_* becomes CLAUDE_PLUGIN_OPTION_JAVASCRIPT_FORMAT_*;
  • hook::check_enabled "BIOME_FORMAT";
  • BIOME_FORMAT_ENABLED in prerequisites.json session_probe;
  • HOOK_BIOME_FORMAT_ENABLED in the tests.

No key keeps its old name.

Files whose names carry the old name

  • hooks/biome-format.sh, hooks/biome-format.test.sh and hooks/biome-format-end-of-turn.test.sh become hooks/javascript-format*.sh. Update hooks/hooks.json to match.
  • .claude/skills/control-claude-code-plugins/features/biome-format/ becomes features/javascript-format/.
  • After the move, git ls-files | grep -i -e biome-format -e biome_format prints nothing.

References inside the moved directory (about 66 files)

  • plugin.json, README.md, hooks/hooks.json, prerequisites.json, the hook scripts and tests, skills/setup/SKILL.md and the evals.
  • reference/plugin-reconfiguration.md.
  • git-hooks/biome-check.sh: the entry name biome-check names the tool and stays. A user-facing biome-format: prefix becomes javascript-format:.
  • CHANGELOG.md: the title line and the released sections are renamed; see "Owner ruling on released history" below.

References outside the moved directory (about 23 files)

  • Other plugins: plugins/evals/skills/plugin-eval/scripts/test_run_validity.py (about lines 2104-2126) and plugins/evals/skills/plugin-eval/reference/reading-results.md. Both use biome-format as the example plugin in a run-home grep. Change them to javascript-format.
  • docs/:
    • ADR 0028;
    • docs/cloud-sessions.md;
    • docs/contracts/check-placement/README.md and adopting-git-hooks.md;
    • docs/contracts/hook-budget/README.md;
    • docs/contracts/hook-precision/README.md, two places, including biome_format_lint_gitignored;
    • docs/contracts/prerequisites/README.md, the example string;
    • docs/cursor-compatibility.md, two places;
    • docs/formatter-path-probes.md;
    • docs/upstream/claude-code-mods/research-2026-09-19/research-repo-fit.md, dated research. Rename it too, per the owner ruling below.
  • Root and scripts:
    • .claude/cloud-bootstrap.sh, a comment;
    • .performance/ratchets.json, two ratchets;
    • scripts/affected-tests-live.sh;
    • the control skill SKILL.md row;
    • the sorted lists, where the entry moves and the list must be re-sorted: scripts/fragment-plugins.txt, scripts/em-dash-purged-paths.txt, scripts/shared-copies.txt (several lines), scripts/suite-seconds.txt.
  • .github/: none today. Grep it anyway.

The BIOME_FORMAT_ENABLED example string: 77 files, required

  • lib/prerequisites.mjs says "such as BIOME_FORMAT_ENABLED" in two places. That text is vendored into 76 copies.
  • Edit lib/prerequisites.mjs, then run scripts/sync-shared-copies.sh. Never hand-edit a copy.
  • Make the example an option name that does not carry a plugin name, or one no rename plan touches, so a later rename does not touch 77 files again.
  • Update docs/contracts/prerequisites/README.md to match.

Generated files: regenerate, never hand-edit

  • docs/catalog.md: node scripts/generate-catalog.mjs.
  • Cheat sheet: node scripts/generate-cheatsheet.mjs.
  • docs/architecture/landscape.json: plugins/architecture/skills/map-landscape/scripts/landscape-record.sh.
  • Vendored copies: scripts/sync-shared-copies.sh.

Traps: do not run a blind sed

  • Every biome format and biome check command names the tool. Keep them.
  • The biome-check git-hook entry also names the tool. Keep it.
  • Released CHANGELOG sections are renamed too.
  • After the git mv, run /docs-hygiene:rename-references biome-format javascript-format.

Changelog

  • Run scripts/new-changelog-fragment.sh javascript-format major to write .changes/javascript-format/<slug>.md with bump: major.
  • Do not edit the version in plugin.json. Rename the old name in the released sections of CHANGELOG.md too. Released-entry body edits follow the in-place correction rule in the header of scripts/check-changelog-parity.sh (Released CHANGELOG entries are being edited in place (#2312 rewrote two lines inside the shipped 0.51.12) — decide whether that is sanctioned #2388): name each edit in the PR body and in the new release entry. --check-preserved watches version headings only; keep every heading and do not change the gate.
  • The fragment names the new id, commands and keys. The old-to-new mapping and the consumer steps go in the PR body.
  • Every plugin whose vendored prerequisites.mjs copy changes may need its own fragment. Follow whatever scripts/check-changelog-fragments.sh --check requires.

After merge, confirm that the release PR releases javascript-format and records nothing under biome-format.

Companion changes in other repositories (each its own paired PR)

Repo Change
melodic-software/dotfiles See below. Required.
melodic-software/ci-workflows .claude/settings.json: replace "biome-format@melodic-software": true with "javascript-format@melodic-software": true. Required: cloud sessions install declared ids through cloud-bootstrap.sh, so an id the catalog no longer publishes fails there.
melodic-software/medley Prose naming biome-format@melodic-software: .claude/rules/cloud-conventions.md, .claude/rules/hooks/conventions.md, .claude/rules/observability/conventions.md (shared with the python-format rename; coordinate or do both names in one PR), .claude/rules/typescript/conventions.md (two places), .lefthook/pre-commit/ts-typecheck.sh, docs/ecosystems/monorepo-tooling-conflicts.md.
melodic-software/github-iac docs/plugin-policy.md.

Not edited, with the reason:

dotfiles PR:

  • In .chezmoidata/claude.json claudeSettings.force.enabledPlugins, replace "biome-format@melodic-software": true with "javascript-format@melodic-software": true, in sorted position.
  • force.pluginConfigs has no biome-format entry today. If one exists at build time, move it to the new id with the new key names and the values unchanged.
  • Add "biome-format@melodic-software" to claudeSettings.uninstallPlugins.
  • Add the entry biome-format → javascript-format, with the three key pairs, to the saved-settings rename map that the spelling issue builds.
  • Regenerate the affected golden *.sha256 files with Get-RenderHash.ps1 -Fixture <fixture>, and log the regeneration in golden/README.md.
  • docs/claude-hook-fanout.md is a dated measurement record. Rename it too, per the owner ruling below.
  • Cite Q107/Q133 and the 2026-11-12 quote for the Self-Modification soft-deny on .chezmoidata/claude.json.
  • tools/check-plugin-manifest/check.sh passes only after the ccp PR merges. Merge this PR right after it.

Migration: nothing left behind

  1. Installed old id. The next fleet-converge uninstalls it on every lane through uninstallPlugins, without --keep-data, so ~/.claude/plugins/data/biome-format-melodic-software/ goes too.
  2. Saved option values: migrate, do not reset. dot_claude/modify_settings.json copies each old-id pluginConfigs value to the new id under its new key, unless that key already holds a value, and then deletes the old entry. It works from the rename-map entry, the mechanism the spelling issue's dotfiles PR builds.
  3. Consumer git-hook artifacts. Use the lib/git-hooks/ migration the spelling issue builds.
    • /javascript-format:setup check reports these leftovers as drift, with the fix: .githooks/biome-format/, the <event>.d/biome-format.biome-check marker, the lefthook job biome-format-biome-check, and the git config keys hook.biome-format-biome-check and checks.biome-format.biome-check.declined.
    • apply install-git-hooks installs the new entry, carries a recorded decline over to the new key, and removes the old artifacts.
  4. On-disk data: nothing beyond item 1. This plugin has no machine-scope directory.

Acceptance criteria

  • On merged ccp main, git grep -n -i -e 'biome-format' -e 'biome_format' -e 'biomeformat' returns only the migration lines named in the PR, and the PR lists each remaining hit with its removal condition.
  • git grep -n -i -e 'biome format' on the same tree hits only the tool's own biome format subcommand, never the plugin's name written with a space; the PR says so.
  • The same grep returns no hit in any of the 77 prerequisites.mjs files.
  • The same grep over dotfiles, ci-workflows, medley and github-iac returns only the dotfiles uninstallPlugins and rename-map entries, plus the migration lines each PR lists.
  • The plugin's hook tests pass, as do lib/prerequisites tests and the shared-copies drift check.
  • ci-status is green, including the changelog fragment and parity checks, check-killswitch-hoist.sh and check-hook-userconfig-argv.sh.
  • On the dotfiles PR, after the ccp merge, dotfiles tools/check-plugin-manifest/check.sh and the golden render check pass.
  • After all the PRs merge and one fleet-converge on a lane:
    • claude plugin list shows javascript-format@melodic-software and not biome-format@melodic-software;
    • ~/.claude/settings.json has no biome-format@melodic-software entry under pluginConfigs;
    • every saved value sits under its new key, unchanged.
  • A cloud session in ci-workflows installs javascript-format@melodic-software without error.
  • In a test repository with the old git hook installed, setup check reports the old artifacts. After apply install-git-hooks, none remain and a prior decline is kept.

Order and dependencies

  • Prerequisites: start after the spelling rename merges. This rename reuses spelling's migration pieces, and the two share sorted lists.
  • Blocking PR: wait for #15504 to merge. It edits lib/prerequisites.mjs and its 76 copies, which this issue's example-string change also touches.
  • Parallel work: this can run alongside python-format. They share only sorted-list and shared-doc lines.
  • Merge order: merge the ccp PR first. Merge the dotfiles and ci-workflows PRs within the same hour, then the medley and github-iac PRs.

Open PRs to rebase around

Re-run gh pr list -R melodic-software/claude-code-plugins --state open before starting. At filing time, these were open:

  • #15504 adds .changes/ fragments for all five plugins and edits lib/prerequisites.mjs and its copies. This issue is blocked by it.
  • #15508 adds .changes/biome-format/… and edits plugins/biome-format/README.md and skills/setup/SKILL.md.

A fragment under .changes/biome-format/ that merges after this rename leaves a fragment for a plugin that no longer exists, and git raises no conflict. Before merging, git mv any such fragment into .changes/javascript-format/.

Owner ruling on released history

Owner, 2026-11-12: "I want a clean cutover". Released CHANGELOG sections, ADR text and dated records are renamed to the new name too. The only old-name hits allowed after the rename are the dotfiles uninstallPlugins entry, the rename-map migration entry, and one-time migration lines that must read the old name, each listed in the PR with its removal condition.

Related

  • Owner decisions Q107 and Q133 (2026-11-11), and the 2026-11-12 complete-rename decision.
  • Precedent: #15372.

Blocked by #15504
Blocked by #15552

Activity

  1. added
    agent-ready
    on Nov 12, 2026
  2. self-assigned this
    on Nov 12, 2026
  3. added
    needs-triage
    on Nov 12, 2026
  4. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: #15552

    I read this as a complete rename of the biome-format plugin to javascript-format. It covers the plugin identity, option keys, env vars, file names, about 77 vendored example strings, generated files, a changelog fragment, and paired PRs in four companion repositories. It also covers migration of saved settings and git-hook artifacts.

    The scope, owner decisions and acceptance criteria are spelled out in the issue, so I have no open questions. The work is large and should be split across the paired PRs.

    It depends on the spelling rename (#15552), which supplies the migration pieces it reuses. It also depends on PR #15504 merging first. #15504 is a pull request and not an open issue, so it is not listed on the Blocked by line.

    I found no duplicate and no merged PR that already does this.

    Automated triage. A maintainer reviews it.

  5. removed
    needs-triage
    on Nov 12, 2026
  6. removed
    agent-ready
    on Nov 12, 2026
  7. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  8. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its body or a criterion names .claude/skills/control-claude-code-plugins/features/biome-format/, .claude/cloud-bootstrap.sh, .claude/settings.json, .claude/rules/cloud-conventions.md, .claude/rules/hooks/conventions.md, .claude/rules/observability/conventions.md, .claude/rules/typescript/conventions.md, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  9. kyle-sexton commented on Nov 14, 2026

    @kyle-sexton
    MemberAuthor

    Closed by hand after the fleet check on the WSL lane (2026-11-14): biome-format@melodic-software is not installed, javascript-format@melodic-software is; the empty biome-format-melodic-software data folder that sessions on the old code kept recreating was removed and stayed gone for ten minutes after every running session was reloaded with /reload-plugins --force. The only old-id hit in user settings is the false entry the dotfiles uninstallPlugins list renders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Work status

confirmed

Priority

medium

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions