Skip to content
← Back

Share your team's rules with every agent

Write your team's design rules once, and every agent builds and reviews against them.

One document every agent follows

Your team's rules are one Markdown document of up to 32 KB. get-team-rules gives them to any agent that uses your key, get-review-rules checks the work against them, and check-comprehension fails copy that uses a word they ban.

Write the first draft with your agent

When you have no rules yet, get-team-rules hands your agent an outline. The agent drafts the rules with you from your project and your live site, and set-team-rules saves them once you approve the draft. You can also paste them into Team rules.

Turn a correction into a rule

When you correct a choice your agent made, and the correction should hold for every build, propose-team-rule turns it into one proposed rule. It waits on the Team rules page, and no agent follows it until you approve it there.

Rules for each client project

A client project keeps its own rules beside its design system: one guidelines document, a use, never or pairing rule for each part or value, a ban for the whole brand, and specs on a screen or on one part of it. Pass projectId to set-team-rules to save one piece. Pass projectId, screen and parts to get-team-rules, and the agent gets only what that screen needs.

Reach agents that never call the tools

To reach agents that never call these tools, a local model included, run this at the root of your repository:

npx better-design rules

It writes your team rules, the components your review settings name, and the AI-feature rules in short into AGENTS.md, and into CLAUDE.md when the repository keeps one. Every agent reads that file before each task. The command shows your team rules and asks before it writes them; in a script, add --yes once a person has read them. Commit the file, and run the command again when the rules change.