Skip to content
Back to skills

Code Formatting

ASecurity

Format code on the current branch using Biome. Use when asked to format, lint, or clean up code before committing or creating a PR.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
toolsbashnode

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill code-formatting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Formatting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Formatting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-code-formatting/badge)](https://www.skillsdirectory.com/skills/majiayu000-code-formatting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-formatting
description: Format code on the current branch using Biome. Use when asked to format, lint, or clean up code before committing or creating a PR.
---

# Code Formatting

Format JS/TS/JSON files changed on the current branch using Biome.

## Quick Usage

```bash
.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

```bash
.claude/skills/code-formatting/scripts/format-branch.sh develop
```

## What It Does

1. Finds files changed on current branch vs base branch
2. Filters to JS/TS/JSON files only
3. Runs `npx biome check --write` on those files
4. Uses same settings as the `biome-check.yml` CI 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)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.