Code formatting

From pollinations/pollinations · View interactive version

Code formatting is an AI agent skill from the GitHub repository pollinations/pollinations. Format code on the current branch using Biome. Use when asked to format, lint, or clean up code before committing or creating a PR.

How to use this skill

Skill file

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

  1. Finds files changed on current branch vs base branch
  2. Filters to JS/TS/JSON files only
  3. Runs npx @biomejs/biome check --write on those files
  4. Uses same settings as the ci-pull-request-checks.yml CI workflow

Config

Biome config is at biome.jsonc in repo root.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.