agentleFS
biomejsbiomejs/biome/.agents/skills/promote-lint-rules/SKILL.md

promote-lint-rules

Skill26k starsChanged 11 days agoApache-2.0View on GitHub

Use this skill when promoting one or more Biome lint rules from nursery to stable groups, including promotion plans from GitHub issues, metadata changes, rule renames, generated configuration, and promotion snapshots.

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the batch promotion task instead of invoking just move-rule repeatedly.

    line 10
  2. Distinctive:

    Read the complete requirements.

    line 14
  3. Very specific:

    Verify every listed current rule exists under a crates/biome_*_analyze/src/lint/nursery/ directory.

    line 15
  4. Very specific:

    Create a temporary JSON file outside the repository, such as /tmp/biome-rule-promotions.json.

    line 17
  5. Very specific:

    Use current names as object keys, even when newName is present.

    line 43
  6. Distinctive:

    Run the task once:

    line 47
  7. Very specific:

    Run focused tests using each rule's final name.

    line 74
  8. Distinctive:

    Run the repository-required checks:

    line 78
  9. Very specific:

    Run just lint-rules when rule documentation or suppression examples changed.

    line 85
  10. Distinctive:

    Delete the temporary manifest after the promotion is verified.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Promote Lint Rules

Use the batch promotion task instead of invoking just move-rule repeatedly.

Build the Manifest

  1. Read the complete requirements. For a GitHub issue, read both its body and comments.
  2. Verify every listed current rule exists under a crates/biome_*_analyze/src/lint/nursery/ directory.
  3. Resolve incomplete or malformed requirements before editing. Do not infer missing group, recommendation, severity, or rename decisions from neighboring rows.
  4. Create a temporary JSON file outside the repository, such as /tmp/biome-rule-promotions.json.

The top-level object maps each current lower-camel-case rule name to its final stable metadata:

{
  "noCurrentRule": {
    "group": "correctness",
    "recommended": true,
    "severity": "error",
    "newName": "noRenamedRule"
  },
  "useAnotherRule": {
    "group": "style",
    "recommended": false
  }
}

Fields:

  • group is required and must be a11y, complexity, correctness, performance, security, style, or suspicious.
  • recommended is optional. Include it when the requirements specify the final recommendation status; both true and false are meaningful.
  • severity is optional. Accepted values are info, warn, and error. Include it when the requirements specify a new final severity.
  • newName is optional. Omit it when the rule keeps its current name.

Use current names as object keys, even when newName is present. A rule implemented by multiple analyzers, such as matching JavaScript and HTML rules, needs only one entry.

Apply the Plan

Run the task once:

just promote-rules /tmp/biome-rule-promotions.json

The task validates the complete manifest before moving files. It updates declarations, diagnostic categories, fixture option files, rule-option modules, and the migration rename table as applicable. It does not regenerate derived files or snapshots.

Inspect the move before generation:

git status --short
git diff --stat

Confirm that every requested source file and fixture directory moved from nursery to its intended group. If a rule was renamed, search for stale occurrences of its old name and classify each occurrence before changing it; historical migration entries are expected to retain old names.

Generate and Test

Load testing-codegen and run the required generators:

just gen-rules
just gen-configuration
just gen-migrate

Run focused tests using each rule's final name. Review and accept pending snapshots individually according to testing-codegen; promotion snapshots must show the intended group and severity and must no longer contain the nursery notice.

Then run the analyzer crates affected by the manifest. If any rule was renamed, also run the biome_migrate tests and verify that configuration migration moves and renames the old key.

Run the repository-required checks:

just f
just l

Run just lint-rules when rule documentation or suppression examples changed.

Release Entry and Cleanup

Rule promotion is user-facing and requires a minor changeset targeting next. Load changeset and describe the promoted groups, recommendation changes, severity changes, and renames that users need to know.

Delete the temporary manifest after the promotion is verified. Do not commit it unless the task explicitly requires a persistent promotion plan.

Download now (ZIP)

Trending

Less talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 5 mentionsFeb 2026: 3 mentionsMar 2026: 4 mentionsApr 2026: 5 mentionsMay 2026: 9 mentionsJun 2026: 6 mentionsJul 2026: 8 mentionsAug 2026: 2 mentionsSep 2026: 2 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the biomejs/biome repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about biomejs/biome

The biggest 5 of 91 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 91

Talked about on Bluesky, GitHub, YouTube, Hacker News and the web (91 times).

On Bluesky · 38

33 more on Bluesky

On GitHub · 36

31 more on GitHub

On YouTube · 15

10 more on YouTube

On Hacker News · 1

On the web · 1

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.