Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/code-formatting
SKILL.md
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
npx biome check --writeon those files - Uses same settings as the
biome-check.ymlCI workflow
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)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?