Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
JavaScriptおよびTypeScriptファイルの編集時に自動的にBiomeフォーマッターを実行するClaude Code hookです。
.js, .jsx, .ts, .tsx)の編集時に自動的にBiomeフォーマットを実行biome.jsonを自動検索biome.json設定ファイルがある場合のみフォーマットを実行このディレクトリの biome_format.sh を ~/bin/ ディレクトリにコピーします。
$ mkdir -p ~/bin
$ cp biome_format.sh ~/bin/
$ chmod +x ~/bin/biome_format.sh
注意: Claude Code hookは相対パスで指定するとカレントディレクトリが不定であるため正しく実行できないケースがあります。必ず絶対パス(~/bin/biome_format.sh)を使用してください。
Claude Codeの設定で以下のhookを追加してください:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "~/bin/biome_format.sh"
}
]
}
]
}
}
必要に応じて、biome_format.sh 内の対象ファイル拡張子を変更できます:
# 対象ファイル拡張子のリスト
TARGET_EXTENSIONS=("ts" "tsx" "js" "jsx")
デフォルトでは、JavaScript/TypeScriptの一般的な拡張子(.js, .jsx, .ts, .tsx)が対象です。
プロジェクトディレクトリの設定は不要です。スクリプトが自動的に編集されたファイルから最も近いbiome.jsonを探します。
npx @biomejs/biome コマンドが実行可能であることbiome.json 設定ファイルが存在することbiome.json を検索biome.json が見つかった場合、npx @biomejs/biome format --config-path --write を実行スクリプトは編集されたファイルのディレクトリから開始し、ルートディレクトリ(/)に到達するまで親ディレクトリを遡ってbiome.jsonを探します。
最初に見つかったbiome.jsonを使用してフォーマットを実行します。
これにより、モノリポ構造でも各プロジェクトのbiome.jsonを正しく認識できます。
chmod +x biome_format.sh)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub xtone/ai_development_tools --plugin biome-formatPlugins from other owners that cover similar ground