Claude-skill-registry code-formatting
Format code on the current branch using Biome. Use when asked to format, lint, or clean up code before committing or creating a PR.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/code-formatting" ~/.claude/skills/majiayu000-claude-skill-registry-code-formatting && rm -rf "$T"
manifest:
skills/data/code-formatting/SKILL.mdsource content
Code Formatting
Format JS/TS/JSON files changed on the current branch using Biome.
Quick Usage
.claude/skills/code-formatting/scripts/format-branch.sh
This formats all
.js, .ts, .jsx, .tsx, .json, .jsonc files changed compared to main.
Custom Base Branch
.claude/skills/code-formatting/scripts/format-branch.sh develop
What It Does
- Finds files changed on current branch vs base branch
- Filters to JS/TS/JSON files only
- Runs
on those filesnpx biome check --write - Uses same settings as the
CI workflowbiome-check.yml
Config
Biome config is at
biome.jsonc in repo root.
Notes
- Run from repo root
- Requires Node.js/npx
- Only formats changed files (not entire codebase)