Your rules
This page helps you save your team's taste as rules that Agents check.
A rule is one plain sentence, such as "Text is never pure black" or "Buttons are pills". Rules live in your file (rules.xml). They travel with it and show in a git diff.
How to add a rule
- Open Agents (⌘L).
- Open the Art Director, then the System tab.
- Open "Your rules".
- Type the rule in the field. For example: "Text is never pure black".
- Press Enter, or click Add.
How to turn a rule off or delete it
- Open "Your rules".
- Each rule has a switch. Click it to turn the rule on or off.
- Click the X beside a rule ("Delete this rule") to remove it.
Each rule says where it came from: "Added by you", or "Saved by an agent". It also says if it is "Checked by the agents" or "For agents".
What Agents check
Clear sentences become checks. Other sentences are notes for the chat agents.
| You write | Agents check |
|---|---|
| "Text is never pure black", "Never use #ff0000" | That color on text, on fills, or anywhere |
| "Buttons are pills", "Buttons have a radius of 12" | The corners of every button |
| "At most 2 font weights" | The weights beyond the most used ones |
| "Only use Inter and JetBrains Mono" | Any other font |
| "Text is at least 14 px" | Smaller text |
| "Keep the tone friendly" | Nothing. It is a note for chat agents |
A layer that breaks a rule shows as an issue in the "Your rules" row. The Fix uses the color, radius, weight, font or size the rule allows.
Rules learned from corrections
When you correct a chat agent, it can offer to save the correction. For example, you say "don't use pure black". The agent fixes the layer. It then offers: "Brsh suggests saving this as a rule: …". It saves the rule only after you agree. Chat agents read your rules before they design.