Open Bug 2094532 Opened 2 days ago

Tell agents in the desktop-theme skills when to run ./mach lint

Categories

(Developer Infrastructure :: AI for Development, task)

task

Tracking

(Not tracked)

People

(Reporter: dao, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

No desktop-theme skill tells the agent to run ./mach lint, so a stylelint rule catches an agent's mistake only at review. The colors, tokens and layout skills should run it right after the agent writes what a rule judges, and passages that restate what a rule enforces should shrink to that pointer:

  • desktop-theme-tokens §6: run it on the changed sheets after ./mach buildtokens, not before, since no-unguarded-high-contrast-token-overrides reads the generated dist/high-contrast-tokens.mjs.
  • desktop-theme-tokens §4: ./mach lint --fix adds the high-contrast guard, and the tokenTypes clause becomes a pointer to use-design-tokens.
  • desktop-theme-tokens §5: the raw px and customFixes passages become ./mach lint --fix.
  • desktop-theme-colors §6: run it after writing a forced-colors block or a token background, for use-boolean-forced-colors-query and use-paired-color-tokens.
  • desktop-theme-layout §1: run it after a fix that writes a length.

The probing and screenshots skills write no CSS and need nothing.

You need to log in before you can comment on or make changes to this bug.