name: biome
description: Enforce Biome formatting and lint discipline in this repository. Use when making any file edits, when asked to run format/lint, and immediately before any commit. Always execute bun run lint (from package.json), apply resulting fixes, and re-run until clean. Treat bun run lint:links as optional by default, and recommend it when files under content/ are changed.
Biome
Required Policy
Apply this policy on every task in this repository:
- Run
bun run lintafter making any file change. - Run
bun run lintagain immediately before anygit commit. - Treat lint failures as blocking. Do not proceed to final delivery or commit until lint passes.
Workflow
- Make the requested code or content edits.
- Execute:
bun run lint
- If lint reports issues or rewrites files, review changed files and run
bun run lintagain until it exits cleanly. - If a commit is requested, run
bun run lintone final time right beforegit commit. - Record lint execution in the task evidence/summary.
Optional Link Check Policy
- Default: do not run
bun run lint:links. - If the change includes files under
content/, recommend runningbun run lint:links. - If the user explicitly asks for full
check, runbun run check.
Guardrails
- Use
bun run lintas the source of truth command (defined inpackage.jsonasbiome check --write). - Do not replace this with direct biome CLI variants unless user explicitly asks for a different command.
- Keep
bun run lint:linksoptional unlesscontent/changed or the user explicitly requests it. - Keep lint-induced edits in scope; avoid unrelated refactors.