save_rule
Save mandatory rules that apply to every session, bypassing scoring and decay. Use for absolute requirements like 'ALWAYS do Y' or 'NEVER do X'.
Instructions
Save a mandatory rule that will ALWAYS be followed in every session. Rules bypass scoring and decay — they are injected into every conversation, every time. Use for absolute requirements like "NEVER do X" or "ALWAYS do Y".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The rule to enforce (e.g., "NEVER use -latest model aliases", "ALWAYS apply changes to both class-chat.php AND class-maas.php") | |
| subject | No | Short label for the rule, e.g. "model_aliases", "companions_parity" | |
| scope | No | global = applies to all projects, project = only this codebase | project |
| category | No | Category for organization: frontend, backend, security, general, etc. | general |
| tags | No | Optional tags for grouping rules | |
| project_id | No | Project identifier override (auto-detected from CLAUDE_PROJECT_DIR or git remote if omitted) |