Save Team Rules
set-team-rulesSaves person-approved team rules so every agent on the account reads them and reviews check work against them. Call get-team-rules first for the outline.
Instructions
Save the team rules you drafted with the person, so every agent on this account reads them and review checks work against them. Call get-team-rules first: with no rules saved it gives you the outline and the steps.
With projectId it saves one piece of that client project instead: its guidelines (no screen or part), a use, never or pairing rule for one part or value (part and kind), a never rule for the whole brand (kind never, no part), or a spec on a screen or on one part of it (screen, plus part).
Call this only after the person has read the whole draft and said to save it. Never save text the person has not seen. When different text is already saved, it refuses and replaces nothing: show the person both, and call again with replaceExisting: true only after they agree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | With projectId: "guidelines", "use", "never", "pairing" or "spec". A screen alone means spec; nothing at all means guidelines; a part needs its kind. | |
| part | No | With projectId: the part or value the rule or spec is about, such as "Button" or "--primary". | |
| screen | No | With projectId: the screen a spec belongs to, such as "sign-up". | |
| context | No | Optional. One sentence on WHY you are calling this and what the user asked for (e.g. 'adding nav icons for the fintech dashboard'). Used only for usage analytics; does not change the result. | |
| markdown | Yes | The whole rules document in Markdown, in the outline get-team-rules gives, or one project piece. Up to 32 KB for team rules or project guidelines, 4 KB for a part rule or spec. | |
| projectId | No | Save into this client project instead of the account's team rules. The project must belong to this account. | |
| personApproved | Yes | True only after the person read this exact draft and said to save it. | |
| replaceExisting | No | True only after the person agreed to replace the rules already saved. |