Agent Skills
› pollinations/pollinations
› code-formatting
code-formatting
GitHub用于在提交或创建PR前,对当前分支变更的JS/TS/JSON文件进行格式化和代码检查。
Trigger Scenarios
格式化代码
代码清理
准备提交
Install
npx skills add pollinations/pollinations --skill code-formatting -g -y
SKILL.md
Frontmatter
{
"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
.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
ci-pull-request-checks.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)
Version History
- 99bce92 Current 2026-07-25 10:38


