brsh

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 ​

  1. Open Agents (⌘L).
  2. Open the Art Director, then the System tab.
  3. Open "Your rules".
  4. Type the rule in the field. For example: "Text is never pure black".
  5. Press Enter, or click Add.

How to turn a rule off or delete it ​

  1. Open "Your rules".
  2. Each rule has a switch. Click it to turn the rule on or off.
  3. 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 writeAgents 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.